| 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 | |
| 7 execute: yes | 6 execute: yes |
| 8 wrap: yes | 7 wrap: yes |
| 9 | 8 |
| 10 --- | 9 --- |
| 11 snippet: " | 10 snippet: " |
| 12 let x = 10; function f1() {return x;} | 11 let x = 10; function f1() {return x;} |
| 13 " | 12 " |
| 14 frame size: 2 | 13 frame size: 2 |
| 15 parameter count: 1 | 14 parameter count: 1 |
| 16 bytecode array length: 21 | 15 bytecode array length: 21 |
| 17 bytecodes: [ | 16 bytecodes: [ |
| 18 B(CreateFunctionContext), U8(1), | 17 B(CreateFunctionContext), U8(1), |
| 19 B(PushContext), R(1), | 18 B(PushContext), R(1), |
| 20 B(LdaTheHole), | 19 B(LdaTheHole), |
| 21 B(StaContextSlot), R(context), U8(4), | 20 B(StaContextSlot), R(context), U8(4), |
| 22 B(CreateClosure), U8(0), U8(2), | 21 B(CreateClosure), U8(0), U8(2), |
| 23 B(Star), R(0), | 22 B(Star), R(0), |
| 24 /* 30 E> */ B(StackCheck), | 23 /* 30 E> */ B(StackCheck), |
| 25 /* 42 S> */ B(LdaSmi), U8(10), | 24 /* 42 S> */ B(LdaSmi), U8(10), |
| 26 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 25 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
| 27 B(LdaUndefined), | 26 B(LdaUndefined), |
| 28 /* 72 S> */ B(Return), | 27 /* 72 S> */ B(Return), |
| 29 ] | 28 ] |
| 30 constant pool: [ | 29 constant pool: [ |
| 31 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 30 SHARED_FUNCTION_INFO_TYPE, |
| 32 ] | 31 ] |
| 33 handlers: [ | 32 handlers: [ |
| 34 ] | 33 ] |
| 35 | 34 |
| 36 --- | 35 --- |
| 37 snippet: " | 36 snippet: " |
| 38 let x = 10; function f1() {return x;} return x; | 37 let x = 10; function f1() {return x;} return x; |
| 39 " | 38 " |
| 40 frame size: 3 | 39 frame size: 3 |
| 41 parameter count: 1 | 40 parameter count: 1 |
| 42 bytecode array length: 34 | 41 bytecode array length: 34 |
| 43 bytecodes: [ | 42 bytecodes: [ |
| 44 B(CreateFunctionContext), U8(1), | 43 B(CreateFunctionContext), U8(1), |
| 45 B(PushContext), R(1), | 44 B(PushContext), R(1), |
| 46 B(LdaTheHole), | 45 B(LdaTheHole), |
| 47 B(StaContextSlot), R(context), U8(4), | 46 B(StaContextSlot), R(context), U8(4), |
| 48 B(CreateClosure), U8(0), U8(2), | 47 B(CreateClosure), U8(0), U8(2), |
| 49 B(Star), R(0), | 48 B(Star), R(0), |
| 50 /* 30 E> */ B(StackCheck), | 49 /* 30 E> */ B(StackCheck), |
| 51 /* 42 S> */ B(LdaSmi), U8(10), | 50 /* 42 S> */ B(LdaSmi), U8(10), |
| 52 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 51 /* 42 E> */ B(StaContextSlot), R(context), U8(4), |
| 53 /* 72 S> */ B(LdaContextSlot), R(context), U8(4), | 52 /* 72 S> */ B(LdaContextSlot), R(context), U8(4), |
| 54 B(JumpIfNotHole), U8(11), | 53 B(JumpIfNotHole), U8(11), |
| 55 B(LdaConstant), U8(1), | 54 B(LdaConstant), U8(1), |
| 56 B(Star), R(2), | 55 B(Star), R(2), |
| 57 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 56 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
| 58 /* 82 S> */ B(Return), | 57 /* 82 S> */ B(Return), |
| 59 ] | 58 ] |
| 60 constant pool: [ | 59 constant pool: [ |
| 61 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 60 SHARED_FUNCTION_INFO_TYPE, |
| 62 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 61 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 63 ] | 62 ] |
| 64 handlers: [ | 63 handlers: [ |
| 65 ] | 64 ] |
| 66 | 65 |
| 67 --- | 66 --- |
| 68 snippet: " | 67 snippet: " |
| 69 let x = (x = 20); function f1() {return x;} | 68 let x = (x = 20); function f1() {return x;} |
| 70 " | 69 " |
| 71 frame size: 4 | 70 frame size: 4 |
| 72 parameter count: 1 | 71 parameter count: 1 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 86 B(LdaConstant), U8(1), | 85 B(LdaConstant), U8(1), |
| 87 B(Star), R(3), | 86 B(Star), R(3), |
| 88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 87 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 89 B(Ldar), R(2), | 88 B(Ldar), R(2), |
| 90 B(StaContextSlot), R(context), U8(4), | 89 B(StaContextSlot), R(context), U8(4), |
| 91 /* 45 E> */ B(StaContextSlot), R(context), U8(4), | 90 /* 45 E> */ B(StaContextSlot), R(context), U8(4), |
| 92 B(LdaUndefined), | 91 B(LdaUndefined), |
| 93 /* 78 S> */ B(Return), | 92 /* 78 S> */ B(Return), |
| 94 ] | 93 ] |
| 95 constant pool: [ | 94 constant pool: [ |
| 96 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 95 SHARED_FUNCTION_INFO_TYPE, |
| 97 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 96 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 98 ] | 97 ] |
| 99 handlers: [ | 98 handlers: [ |
| 100 ] | 99 ] |
| 101 | 100 |
| 102 --- | 101 --- |
| 103 snippet: " | 102 snippet: " |
| 104 let x = 10; x = 20; function f1() {return x;} | 103 let x = 10; x = 20; function f1() {return x;} |
| 105 " | 104 " |
| 106 frame size: 4 | 105 frame size: 4 |
| 107 parameter count: 1 | 106 parameter count: 1 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 122 B(JumpIfNotHole), U8(11), | 121 B(JumpIfNotHole), U8(11), |
| 123 B(LdaConstant), U8(1), | 122 B(LdaConstant), U8(1), |
| 124 B(Star), R(3), | 123 B(Star), R(3), |
| 125 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 124 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 126 B(Ldar), R(2), | 125 B(Ldar), R(2), |
| 127 B(StaContextSlot), R(context), U8(4), | 126 B(StaContextSlot), R(context), U8(4), |
| 128 B(LdaUndefined), | 127 B(LdaUndefined), |
| 129 /* 80 S> */ B(Return), | 128 /* 80 S> */ B(Return), |
| 130 ] | 129 ] |
| 131 constant pool: [ | 130 constant pool: [ |
| 132 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 131 SHARED_FUNCTION_INFO_TYPE, |
| 133 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 132 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 134 ] | 133 ] |
| 135 handlers: [ | 134 handlers: [ |
| 136 ] | 135 ] |
| 137 | 136 |
| OLD | NEW |