Home | History | Annotate | Download | only in bytecode_expectations
      1 #
      2 # Autogenerated by generate-bytecode-expectations.
      3 #
      4 
      5 ---
      6 pool type: mixed
      7 execute: no
      8 wrap: no
      9 top level: yes
     10 
     11 ---
     12 snippet: "
     13   var a = 1;
     14 "
     15 frame size: 4
     16 parameter count: 1
     17 bytecode array length: 31
     18 bytecodes: [
     19                 B(LdaConstant), U8(0),
     20                 B(Star), R(1),
     21                 B(LdaZero),
     22                 B(Star), R(2),
     23                 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
     24   /*    0 E> */ B(StackCheck),
     25   /*    8 S> */ B(LdaConstant), U8(1),
     26                 B(Star), R(1),
     27                 B(LdaZero),
     28                 B(Star), R(2),
     29                 B(LdaSmi), U8(1),
     30                 B(Star), R(3),
     31                 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
     32                 B(LdaUndefined),
     33   /*   10 S> */ B(Return),
     34 ]
     35 constant pool: [
     36   InstanceType::FIXED_ARRAY_TYPE,
     37   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
     38 ]
     39 handlers: [
     40 ]
     41 
     42 ---
     43 snippet: "
     44   function f() {}
     45 "
     46 frame size: 2
     47 parameter count: 1
     48 bytecode array length: 15
     49 bytecodes: [
     50                 B(LdaConstant), U8(0),
     51                 B(Star), R(0),
     52                 B(LdaZero),
     53                 B(Star), R(1),
     54                 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2),
     55   /*    0 E> */ B(StackCheck),
     56                 B(LdaUndefined),
     57   /*   15 S> */ B(Return),
     58 ]
     59 constant pool: [
     60   InstanceType::FIXED_ARRAY_TYPE,
     61 ]
     62 handlers: [
     63 ]
     64 
     65 ---
     66 snippet: "
     67   var a = 1;
     68   a=2;
     69 "
     70 frame size: 4
     71 parameter count: 1
     72 bytecode array length: 37
     73 bytecodes: [
     74                 B(LdaConstant), U8(0),
     75                 B(Star), R(1),
     76                 B(LdaZero),
     77                 B(Star), R(2),
     78                 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
     79   /*    0 E> */ B(StackCheck),
     80   /*    8 S> */ B(LdaConstant), U8(1),
     81                 B(Star), R(1),
     82                 B(LdaZero),
     83                 B(Star), R(2),
     84                 B(LdaSmi), U8(1),
     85                 B(Star), R(3),
     86                 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
     87   /*   11 S> */ B(LdaSmi), U8(2),
     88   /*   12 E> */ B(StaGlobalSloppy), U8(1), U8(3),
     89                 B(Star), R(0),
     90   /*   15 S> */ B(Return),
     91 ]
     92 constant pool: [
     93   InstanceType::FIXED_ARRAY_TYPE,
     94   InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
     95 ]
     96 handlers: [
     97 ]
     98 
     99 ---
    100 snippet: "
    101   function f() {}
    102   f();
    103 "
    104 frame size: 3
    105 parameter count: 1
    106 bytecode array length: 26
    107 bytecodes: [
    108                 B(LdaConstant), U8(0),
    109                 B(Star), R(1),
    110                 B(LdaZero),
    111                 B(Star), R(2),
    112                 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
    113   /*    0 E> */ B(StackCheck),
    114   /*   16 S> */ B(LdrUndefined), R(2),
    115                 B(LdrGlobal), U8(1), R(1),
    116   /*   16 E> */ B(Call), R(1), R(2), U8(1), U8(3),
    117                 B(Star), R(0),
    118   /*   20 S> */ B(Return),
    119 ]
    120 constant pool: [
    121   InstanceType::FIXED_ARRAY_TYPE,
    122 ]
    123 handlers: [
    124 ]
    125 
    126