Changes in / [1c85ffc:2b12d6e]


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Chain.hpp

    r1c85ffc r2b12d6e  
    3333        template<typename actual_node_t, typename child_t>
    3434        auto operator()( child_t actual_node_t::*child ) {
    35                 node_t * n = base.get_and_mutate();
     35                auto n = mutate(base.get());
    3636                actual_node_t * node = strict_dynamic_cast<actual_node_t *>(n);
     37                base = node;
    3738                return _chain_mutator< typename std::remove_reference< decltype(node->*child) >::type >{node->*child};
    3839        }
    3940
    4041        node_t * operator->() {
    41                 return base.get_and_mutate();
     42                auto n = mutate(base.get());
     43                base = n;
     44                return n;
    4245        }
    4346};
  • src/ResolvExpr/Resolver.cc

    r1c85ffc r2b12d6e  
    2929#include "Unify.h"                       // for unify
    3030#include "CompilationState.h"
     31#include "AST/Chain.hpp"
    3132#include "AST/Decl.hpp"
    3233#include "AST/Init.hpp"
     
    103104                                                                }
    104105                                                        }
    105                                                 }
    106                                         }
     106                                                } 
     107                                        } 
    107108                                        visit_children = false;
    108109                                }
     
    606607                                ( objectDecl->get_type() )->base->base ) {
    607608                                objectDecl = fixObjectType( objectDecl, context );
    608                                 currentObject = ast::CurrentObject{
    609                                         objectDecl->location,
     609                                currentObject = ast::CurrentObject{ 
     610                                        objectDecl->location, 
    610611                                        enumBase
    611612                                };
  • tests/.expect/PRNG.x86.txt

    r1c85ffc r2b12d6e  
    2626
    2727Sequential
    28 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
     28trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
    2929
    3030Concurrent
    31 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
    32 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
    33 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
    34 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
     31trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
     32trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
     33trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
     34trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
    3535
    3636                    prng()     prng(5)   prng(0,5)
     
    5858
    5959Sequential
    60 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%
     60trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1%
    6161
    6262Concurrent
    63 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%
    64 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%
    65 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%
    66 trials 2000000 buckets 100000 min 3 max 42 avg 20.0 std 4.5 rstd 22.4%
     63trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1%
     64trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1%
     65trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1%
     66trials 20000000 buckets 100000 min 144 max 270 avg 200.0 std 14.1 rstd 7.1%
    6767
    6868                   prng(t)   prng(t,5) prng(t,0,5)
     
    9090
    9191Sequential
    92 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
     92trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
    9393
    9494Concurrent
    95 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
    96 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
    97 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
    98 trials 10000000 buckets 100000 min 62 max 144 avg 100.0 std 10.0 rstd 10.0%
     95trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
     96trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
     97trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
     98trials 100000000 buckets 100000 min 858 max 1147 avg 1000.0 std 31.5 rstd 3.2%
Note: See TracChangeset for help on using the changeset viewer.