Home | History | Annotate | Download | only in bytecode_expectations
      1 #
      2 # Autogenerated by generate-bytecode-expectations.
      3 #
      4 
      5 ---
      6 pool type: mixed
      7 execute: yes
      8 wrap: yes
      9 
     10 ---
     11 snippet: "
     12   var global = 1;
     13   function f() { return global &= 1; }
     14   f();
     15 "
     16 frame size: 4
     17 parameter count: 1
     18 bytecode array length: 27
     19 bytecodes: [
     20                 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
     21                 B(PushContext), R(1),
     22                 B(CreateClosure), U8(0), U8(0),
     23                 B(Star), R(0),
     24   /*   30 E> */ B(StackCheck),
     25   /*   47 S> */ B(LdaSmi), U8(1),
     26   /*   47 E> */ B(StaContextSlot), R(context), U8(4),
     27   /*   87 S> */ B(LdrUndefined), R(3),
     28   /*   87 E> */ B(Call), R(0), R(3), U8(1), U8(1),
     29                 B(LdaUndefined),
     30   /*   92 S> */ B(Return),
     31 ]
     32 constant pool: [
     33   InstanceType::SHARED_FUNCTION_INFO_TYPE,
     34 ]
     35 handlers: [
     36 ]
     37 
     38 ---
     39 snippet: "
     40   unallocated = 1;
     41   function f() { return unallocated += 1; }
     42   f();
     43 "
     44 frame size: 3
     45 parameter count: 1
     46 bytecode array length: 20
     47 bytecodes: [
     48                 B(CreateClosure), U8(0), U8(0),
     49                 B(Star), R(0),
     50   /*   30 E> */ B(StackCheck),
     51   /*   34 S> */ B(LdaSmi), U8(1),
     52   /*   46 E> */ B(StaGlobalSloppy), U8(1), U8(1),
     53   /*   93 S> */ B(LdrUndefined), R(2),
     54   /*   93 E> */ B(Call), R(0), R(2), U8(1), U8(3),
     55                 B(LdaUndefined),
     56   /*   98 S> */ B(Return),
     57 ]
     58 constant pool: [
     59   InstanceType::SHARED_FUNCTION_INFO_TYPE,
     60   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
     61 ]
     62 handlers: [
     63 ]
     64 
     65