| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 execute: yes | 6 execute: yes |
| 7 wrap: yes | 7 wrap: yes |
| 8 test function name: f | 8 test function name: f |
| 9 | 9 |
| 10 --- | 10 --- |
| 11 snippet: " | 11 snippet: " |
| 12 eval('var x = 10;'); return x; | 12 eval('var x = 10;'); return x; |
| 13 " | 13 " |
| 14 frame size: 10 | 14 frame size: 10 |
| 15 parameter count: 1 | 15 parameter count: 1 |
| 16 bytecode array length: 73 | 16 bytecode array length: 73 |
| 17 bytecodes: [ | 17 bytecodes: [ |
| 18 B(CreateFunctionContext), U8(3), | 18 B(CreateFunctionContext), U8(3), |
| 19 B(PushContext), R(0), | 19 B(PushContext), R(0), |
| 20 B(Ldar), R(this), | 20 B(Ldar), R(this), |
| 21 B(StaContextSlot), R(context), U8(4), U8(0), | 21 B(StaContextSlot), R(context), U8(4), U8(0), |
| 22 B(CreateMappedArguments), | 22 B(CreateMappedArguments), |
| 23 B(StaContextSlot), R(context), U8(6), U8(0), | 23 B(StaContextSlot), R(context), U8(6), U8(0), |
| 24 B(Ldar), R(new_target), | 24 B(Ldar), R(new_target), |
| 25 B(StaContextSlot), R(context), U8(5), U8(0), | 25 B(StaContextSlot), R(context), U8(5), U8(0), |
| 26 /* 10 E> */ B(StackCheck), | 26 /* 10 E> */ B(StackCheck), |
| 27 /* 14 S> */ B(LdaConstant), U8(0), | 27 /* 14 S> */ B(LdaConstant), U8(0), |
| 28 B(Star), R(3), | 28 B(Star), R(4), |
| 29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3
), U8(1), R(1), | 29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
| 30 B(LdaConstant), U8(1), | 30 B(LdaConstant), U8(1), |
| 31 B(Star), R(3), | 31 B(Star), R(3), |
| 32 B(LdaZero), | 32 B(LdaZero), |
| 33 B(Star), R(7), | 33 B(Star), R(7), |
| 34 B(LdaSmi), U8(10), | 34 B(LdaSmi), U8(10), |
| 35 B(Star), R(8), | 35 B(Star), R(8), |
| 36 B(LdaSmi), U8(14), | 36 B(LdaSmi), U8(14), |
| 37 B(Star), R(9), | 37 B(Star), R(9), |
| 38 B(Mov), R(1), R(4), | 38 B(Mov), R(1), R(4), |
| 39 B(Mov), R(3), R(5), | 39 B(Mov), R(3), R(5), |
| (...skipping 23 matching lines...) Expand all Loading... |
| 63 B(CreateFunctionContext), U8(3), | 63 B(CreateFunctionContext), U8(3), |
| 64 B(PushContext), R(0), | 64 B(PushContext), R(0), |
| 65 B(Ldar), R(this), | 65 B(Ldar), R(this), |
| 66 B(StaContextSlot), R(context), U8(4), U8(0), | 66 B(StaContextSlot), R(context), U8(4), U8(0), |
| 67 B(CreateMappedArguments), | 67 B(CreateMappedArguments), |
| 68 B(StaContextSlot), R(context), U8(6), U8(0), | 68 B(StaContextSlot), R(context), U8(6), U8(0), |
| 69 B(Ldar), R(new_target), | 69 B(Ldar), R(new_target), |
| 70 B(StaContextSlot), R(context), U8(5), U8(0), | 70 B(StaContextSlot), R(context), U8(5), U8(0), |
| 71 /* 10 E> */ B(StackCheck), | 71 /* 10 E> */ B(StackCheck), |
| 72 /* 14 S> */ B(LdaConstant), U8(0), | 72 /* 14 S> */ B(LdaConstant), U8(0), |
| 73 B(Star), R(3), | 73 B(Star), R(4), |
| 74 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3
), U8(1), R(1), | 74 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
| 75 B(LdaConstant), U8(1), | 75 B(LdaConstant), U8(1), |
| 76 B(Star), R(3), | 76 B(Star), R(3), |
| 77 B(LdaZero), | 77 B(LdaZero), |
| 78 B(Star), R(7), | 78 B(Star), R(7), |
| 79 B(LdaSmi), U8(10), | 79 B(LdaSmi), U8(10), |
| 80 B(Star), R(8), | 80 B(Star), R(8), |
| 81 B(LdaSmi), U8(14), | 81 B(LdaSmi), U8(14), |
| 82 B(Star), R(9), | 82 B(Star), R(9), |
| 83 B(Mov), R(1), R(4), | 83 B(Mov), R(1), R(4), |
| 84 B(Mov), R(3), R(5), | 84 B(Mov), R(3), R(5), |
| (...skipping 26 matching lines...) Expand all Loading... |
| 111 B(Ldar), R(this), | 111 B(Ldar), R(this), |
| 112 B(StaContextSlot), R(context), U8(4), U8(0), | 112 B(StaContextSlot), R(context), U8(4), U8(0), |
| 113 B(CreateMappedArguments), | 113 B(CreateMappedArguments), |
| 114 B(StaContextSlot), R(context), U8(6), U8(0), | 114 B(StaContextSlot), R(context), U8(6), U8(0), |
| 115 B(Ldar), R(new_target), | 115 B(Ldar), R(new_target), |
| 116 B(StaContextSlot), R(context), U8(5), U8(0), | 116 B(StaContextSlot), R(context), U8(5), U8(0), |
| 117 /* 10 E> */ B(StackCheck), | 117 /* 10 E> */ B(StackCheck), |
| 118 /* 14 S> */ B(LdaSmi), U8(20), | 118 /* 14 S> */ B(LdaSmi), U8(20), |
| 119 /* 16 E> */ B(StaLookupSlotSloppy), U8(0), | 119 /* 16 E> */ B(StaLookupSlotSloppy), U8(0), |
| 120 /* 22 S> */ B(LdaConstant), U8(1), | 120 /* 22 S> */ B(LdaConstant), U8(1), |
| 121 B(Star), R(3), | 121 B(Star), R(4), |
| 122 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3
), U8(1), R(1), | 122 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
| 123 B(LdaConstant), U8(2), | 123 B(LdaConstant), U8(2), |
| 124 B(Star), R(3), | 124 B(Star), R(3), |
| 125 B(LdaZero), | 125 B(LdaZero), |
| 126 B(Star), R(7), | 126 B(Star), R(7), |
| 127 B(LdaSmi), U8(10), | 127 B(LdaSmi), U8(10), |
| 128 B(Star), R(8), | 128 B(Star), R(8), |
| 129 B(LdaSmi), U8(29), | 129 B(LdaSmi), U8(29), |
| 130 B(Star), R(9), | 130 B(Star), R(9), |
| 131 B(Mov), R(1), R(4), | 131 B(Mov), R(1), R(4), |
| 132 B(Mov), R(3), R(5), | 132 B(Mov), R(3), R(5), |
| (...skipping 27 matching lines...) Expand all Loading... |
| 160 B(CreateFunctionContext), U8(3), | 160 B(CreateFunctionContext), U8(3), |
| 161 B(PushContext), R(0), | 161 B(PushContext), R(0), |
| 162 B(Ldar), R(this), | 162 B(Ldar), R(this), |
| 163 B(StaContextSlot), R(context), U8(4), U8(0), | 163 B(StaContextSlot), R(context), U8(4), U8(0), |
| 164 B(CreateMappedArguments), | 164 B(CreateMappedArguments), |
| 165 B(StaContextSlot), R(context), U8(6), U8(0), | 165 B(StaContextSlot), R(context), U8(6), U8(0), |
| 166 B(Ldar), R(new_target), | 166 B(Ldar), R(new_target), |
| 167 B(StaContextSlot), R(context), U8(5), U8(0), | 167 B(StaContextSlot), R(context), U8(5), U8(0), |
| 168 /* 38 E> */ B(StackCheck), | 168 /* 38 E> */ B(StackCheck), |
| 169 /* 44 S> */ B(LdaConstant), U8(0), | 169 /* 44 S> */ B(LdaConstant), U8(0), |
| 170 B(Star), R(3), | 170 B(Star), R(4), |
| 171 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3
), U8(1), R(1), | 171 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
| 172 B(LdaConstant), U8(1), | 172 B(LdaConstant), U8(1), |
| 173 B(Star), R(3), | 173 B(Star), R(3), |
| 174 B(LdaZero), | 174 B(LdaZero), |
| 175 B(Star), R(7), | 175 B(Star), R(7), |
| 176 B(LdaSmi), U8(38), | 176 B(LdaSmi), U8(38), |
| 177 B(Star), R(8), | 177 B(Star), R(8), |
| 178 B(LdaSmi), U8(44), | 178 B(LdaSmi), U8(44), |
| 179 B(Star), R(9), | 179 B(Star), R(9), |
| 180 B(Mov), R(1), R(4), | 180 B(Mov), R(1), R(4), |
| 181 B(Mov), R(3), R(5), | 181 B(Mov), R(3), R(5), |
| (...skipping 28 matching lines...) Expand all Loading... |
| 210 B(CreateFunctionContext), U8(3), | 210 B(CreateFunctionContext), U8(3), |
| 211 B(PushContext), R(0), | 211 B(PushContext), R(0), |
| 212 B(Ldar), R(this), | 212 B(Ldar), R(this), |
| 213 B(StaContextSlot), R(context), U8(4), U8(0), | 213 B(StaContextSlot), R(context), U8(4), U8(0), |
| 214 B(CreateMappedArguments), | 214 B(CreateMappedArguments), |
| 215 B(StaContextSlot), R(context), U8(6), U8(0), | 215 B(StaContextSlot), R(context), U8(6), U8(0), |
| 216 B(Ldar), R(new_target), | 216 B(Ldar), R(new_target), |
| 217 B(StaContextSlot), R(context), U8(5), U8(0), | 217 B(StaContextSlot), R(context), U8(5), U8(0), |
| 218 /* 34 E> */ B(StackCheck), | 218 /* 34 E> */ B(StackCheck), |
| 219 /* 40 S> */ B(LdaConstant), U8(0), | 219 /* 40 S> */ B(LdaConstant), U8(0), |
| 220 B(Star), R(3), | 220 B(Star), R(4), |
| 221 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3
), U8(1), R(1), | 221 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4
), U8(1), R(1), |
| 222 B(LdaConstant), U8(1), | 222 B(LdaConstant), U8(1), |
| 223 B(Star), R(3), | 223 B(Star), R(3), |
| 224 B(LdaZero), | 224 B(LdaZero), |
| 225 B(Star), R(7), | 225 B(Star), R(7), |
| 226 B(LdaSmi), U8(34), | 226 B(LdaSmi), U8(34), |
| 227 B(Star), R(8), | 227 B(Star), R(8), |
| 228 B(LdaSmi), U8(40), | 228 B(LdaSmi), U8(40), |
| 229 B(Star), R(9), | 229 B(Star), R(9), |
| 230 B(Mov), R(1), R(4), | 230 B(Mov), R(1), R(4), |
| 231 B(Mov), R(3), R(5), | 231 B(Mov), R(3), R(5), |
| 232 B(Mov), R(closure), R(6), | 232 B(Mov), R(closure), R(6), |
| 233 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), | 233 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), |
| 234 B(Star), R(1), | 234 B(Star), R(1), |
| 235 /* 40 E> */ B(Call), R(1), R(2), U8(2), U8(0), | 235 /* 40 E> */ B(Call), R(1), R(2), U8(2), U8(0), |
| 236 /* 62 S> */ B(LdaLookupGlobalSlot), U8(2), U8(4), U8(1), | 236 /* 62 S> */ B(LdaLookupGlobalSlot), U8(2), U8(4), U8(1), |
| 237 /* 72 S> */ B(Return), | 237 /* 72 S> */ B(Return), |
| 238 ] | 238 ] |
| 239 constant pool: [ | 239 constant pool: [ |
| 240 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 240 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], |
| 241 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"], | 241 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"], |
| 242 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 242 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 243 ] | 243 ] |
| 244 handlers: [ | 244 handlers: [ |
| 245 ] | 245 ] |
| 246 | 246 |
| OLD | NEW |