| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: no | 6 wrap: no |
| 7 top level: yes | 7 top level: yes |
| 8 | 8 |
| 9 --- | 9 --- |
| 10 snippet: " | 10 snippet: " |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 handlers: [ | 62 handlers: [ |
| 63 ] | 63 ] |
| 64 | 64 |
| 65 --- | 65 --- |
| 66 snippet: " | 66 snippet: " |
| 67 var a = 1; | 67 var a = 1; |
| 68 a=2; | 68 a=2; |
| 69 " | 69 " |
| 70 frame size: 4 | 70 frame size: 4 |
| 71 parameter count: 1 | 71 parameter count: 1 |
| 72 bytecode array length: 40 | 72 bytecode array length: 48 |
| 73 bytecodes: [ | 73 bytecodes: [ |
| 74 B(LdaConstant), U8(0), | 74 B(LdaConstant), U8(0), |
| 75 B(Star), R(1), | 75 B(Star), R(1), |
| 76 B(LdaZero), | 76 B(LdaZero), |
| 77 B(Star), R(2), | 77 B(Star), R(2), |
| 78 B(Mov), R(closure), R(3), | 78 B(Mov), R(closure), R(3), |
| 79 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), | 79 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), |
| 80 /* 0 E> */ B(StackCheck), | 80 /* 0 E> */ B(StackCheck), |
| 81 /* 8 S> */ B(LdaConstant), U8(1), | 81 /* 8 S> */ B(LdaConstant), U8(1), |
| 82 B(Star), R(1), | 82 B(Star), R(1), |
| 83 B(LdaZero), | 83 B(LdaZero), |
| 84 B(Star), R(2), | 84 B(Star), R(2), |
| 85 B(LdaSmi), I8(1), | 85 B(LdaSmi), I8(1), |
| 86 B(Star), R(3), | 86 B(Star), R(3), |
| 87 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), | 87 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
| 88 /* 11 S> */ B(LdaSmi), I8(2), | 88 /* 11 S> */ B(LdaConstant), U8(2), |
| 89 B(Star), R(1), |
| 90 B(LdaConstant), U8(1), |
| 91 B(Star), R(2), |
| 92 B(LdaSmi), I8(2), |
| 89 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(4), | 93 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(4), |
| 90 B(Star), R(0), | 94 B(Star), R(0), |
| 91 /* 15 S> */ B(Return), | 95 /* 15 S> */ B(Return), |
| 92 ] | 96 ] |
| 93 constant pool: [ | 97 constant pool: [ |
| 94 FIXED_ARRAY_TYPE, | 98 FIXED_ARRAY_TYPE, |
| 95 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], | 99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
| 100 ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"], |
| 96 ] | 101 ] |
| 97 handlers: [ | 102 handlers: [ |
| 98 ] | 103 ] |
| 99 | 104 |
| 100 --- | 105 --- |
| 101 snippet: " | 106 snippet: " |
| 102 function f() {} | 107 function f() {} |
| 103 f(); | 108 f(); |
| 104 " | 109 " |
| 105 frame size: 4 | 110 frame size: 4 |
| 106 parameter count: 1 | 111 parameter count: 1 |
| 107 bytecode array length: 32 | 112 bytecode array length: 36 |
| 108 bytecodes: [ | 113 bytecodes: [ |
| 109 B(LdaConstant), U8(0), | 114 B(LdaConstant), U8(0), |
| 110 B(Star), R(1), | 115 B(Star), R(1), |
| 111 B(LdaZero), | 116 B(LdaZero), |
| 112 B(Star), R(2), | 117 B(Star), R(2), |
| 113 B(Mov), R(closure), R(3), | 118 B(Mov), R(closure), R(3), |
| 114 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), | 119 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), |
| 115 /* 0 E> */ B(StackCheck), | 120 /* 0 E> */ B(StackCheck), |
| 116 /* 16 S> */ B(LdaUndefined), | 121 /* 16 S> */ B(LdaConstant), U8(1), |
| 122 B(Star), R(1), |
| 123 B(LdaUndefined), |
| 124 B(Star), R(3), |
| 125 B(LdaGlobal), U8(2), U8(2), |
| 117 B(Star), R(2), | 126 B(Star), R(2), |
| 118 B(LdaGlobal), U8(1), U8(2), | 127 /* 16 E> */ B(Call), R(2), R(3), U8(1), U8(5), |
| 119 B(Star), R(1), | |
| 120 /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(5), | |
| 121 B(Star), R(0), | 128 B(Star), R(0), |
| 122 /* 20 S> */ B(Return), | 129 /* 20 S> */ B(Return), |
| 123 ] | 130 ] |
| 124 constant pool: [ | 131 constant pool: [ |
| 125 FIXED_ARRAY_TYPE, | 132 FIXED_ARRAY_TYPE, |
| 133 ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"], |
| 126 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], | 134 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], |
| 127 ] | 135 ] |
| 128 handlers: [ | 136 handlers: [ |
| 129 ] | 137 ] |
| 130 | 138 |
| OLD | NEW |