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