Home | History | Annotate | Download | only in bytecode_expectations
      1 #
      2 # Autogenerated by generate-bytecode-expectations.
      3 #
      4 
      5 ---
      6 pool type: string
      7 execute: yes
      8 wrap: yes
      9 
     10 ---
     11 snippet: "
     12   eval('var x = 10;'); return x;
     13 "
     14 frame size: 10
     15 parameter count: 1
     16 bytecode array length: 71
     17 bytecodes: [
     18                 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
     19                 B(PushContext), R(0),
     20                 B(Ldar), R(this),
     21                 B(StaContextSlot), R(context), U8(4),
     22                 B(CreateMappedArguments),
     23                 B(StaContextSlot), R(context), U8(5),
     24                 B(Ldar), R(new_target),
     25                 B(StaContextSlot), R(context), U8(6),
     26   /*   30 E> */ B(StackCheck),
     27   /*   34 S> */ B(LdaConstant), U8(0),
     28                 B(Star), R(3),
     29                 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1),
     30                 B(LdaConstant), U8(1),
     31                 B(Star), R(3),
     32                 B(LdaZero),
     33                 B(Star), R(7),
     34                 B(LdaSmi), U8(30),
     35                 B(Star), R(8),
     36                 B(LdaSmi), U8(34),
     37                 B(Star), R(9),
     38                 B(Mov), R(1), R(4),
     39                 B(Mov), R(3), R(5),
     40                 B(Mov), R(closure), R(6),
     41                 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(6),
     42                 B(Star), R(1),
     43   /*   34 E> */ B(Call), R(1), R(2), U8(2), U8(0),
     44   /*   55 S> */ B(LdaLookupSlot), U8(2),
     45   /*   65 S> */ B(Return),
     46 ]
     47 constant pool: [
     48   "eval",
     49   "var x = 10;",
     50   "x",
     51 ]
     52 handlers: [
     53 ]
     54 
     55 ---
     56 snippet: "
     57   eval('var x = 10;'); return typeof x;
     58 "
     59 frame size: 10
     60 parameter count: 1
     61 bytecode array length: 72
     62 bytecodes: [
     63                 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
     64                 B(PushContext), R(0),
     65                 B(Ldar), R(this),
     66                 B(StaContextSlot), R(context), U8(4),
     67                 B(CreateMappedArguments),
     68                 B(StaContextSlot), R(context), U8(5),
     69                 B(Ldar), R(new_target),
     70                 B(StaContextSlot), R(context), U8(6),
     71   /*   30 E> */ B(StackCheck),
     72   /*   34 S> */ B(LdaConstant), U8(0),
     73                 B(Star), R(3),
     74                 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1),
     75                 B(LdaConstant), U8(1),
     76                 B(Star), R(3),
     77                 B(LdaZero),
     78                 B(Star), R(7),
     79                 B(LdaSmi), U8(30),
     80                 B(Star), R(8),
     81                 B(LdaSmi), U8(34),
     82                 B(Star), R(9),
     83                 B(Mov), R(1), R(4),
     84                 B(Mov), R(3), R(5),
     85                 B(Mov), R(closure), R(6),
     86                 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(6),
     87                 B(Star), R(1),
     88   /*   34 E> */ B(Call), R(1), R(2), U8(2), U8(0),
     89   /*   55 S> */ B(LdaLookupSlotInsideTypeof), U8(2),
     90                 B(TypeOf),
     91   /*   72 S> */ B(Return),
     92 ]
     93 constant pool: [
     94   "eval",
     95   "var x = 10;",
     96   "x",
     97 ]
     98 handlers: [
     99 ]
    100 
    101 ---
    102 snippet: "
    103   x = 20; return eval('');
    104 "
    105 frame size: 10
    106 parameter count: 1
    107 bytecode array length: 73
    108 bytecodes: [
    109                 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
    110                 B(PushContext), R(0),
    111                 B(Ldar), R(this),
    112                 B(StaContextSlot), R(context), U8(4),
    113                 B(CreateMappedArguments),
    114                 B(StaContextSlot), R(context), U8(5),
    115                 B(Ldar), R(new_target),
    116                 B(StaContextSlot), R(context), U8(6),
    117   /*   30 E> */ B(StackCheck),
    118   /*   34 S> */ B(LdaSmi), U8(20),
    119   /*   36 E> */ B(StaLookupSlotSloppy), U8(0),
    120   /*   42 S> */ B(LdaConstant), U8(1),
    121                 B(Star), R(3),
    122                 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1),
    123                 B(LdaConstant), U8(2),
    124                 B(Star), R(3),
    125                 B(LdaZero),
    126                 B(Star), R(7),
    127                 B(LdaSmi), U8(30),
    128                 B(Star), R(8),
    129                 B(LdaSmi), U8(49),
    130                 B(Star), R(9),
    131                 B(Mov), R(1), R(4),
    132                 B(Mov), R(3), R(5),
    133                 B(Mov), R(closure), R(6),
    134                 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(6),
    135                 B(Star), R(1),
    136   /*   49 E> */ B(Call), R(1), R(2), U8(2), U8(0),
    137   /*   59 S> */ B(Return),
    138 ]
    139 constant pool: [
    140   "x",
    141   "eval",
    142   "",
    143 ]
    144 handlers: [
    145 ]
    146 
    147