| 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: yes | 7 execute: yes |
| 8 wrap: yes | 8 wrap: yes |
| 9 | 9 |
| 10 --- | 10 --- |
| 11 snippet: " | 11 snippet: " |
| 12 const x = 10; function f1() {return x;} | 12 const x = 10; function f1() {return x;} |
| 13 " | 13 " |
| 14 frame size: 2 | 14 frame size: 2 |
| 15 parameter count: 1 | 15 parameter count: 1 |
| 16 bytecode array length: 24 | 16 bytecode array length: 24 |
| 17 bytecodes: [ | 17 bytecodes: [ |
| 18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 19 B(PushContext), R(1), | 19 B(PushContext), R(1), |
| 20 B(LdaTheHole), | 20 B(LdaTheHole), |
| 21 B(StaContextSlot), R(context), U8(4), | 21 B(StaContextSlot), R(context), U8(4), |
| 22 B(CreateClosure), U8(0), U8(0), | 22 B(CreateClosure), U8(0), U8(0), |
| 23 B(Star), R(0), | 23 B(Star), R(0), |
| 24 B(StackCheck), | 24 B(StackCheck), |
| 25 B(LdaSmi8), U8(10), | 25 B(LdaSmi), U8(10), |
| 26 B(StaContextSlot), R(context), U8(4), | 26 B(StaContextSlot), R(context), U8(4), |
| 27 B(LdaUndefined), | 27 B(LdaUndefined), |
| 28 B(Return), | 28 B(Return), |
| 29 ] | 29 ] |
| 30 constant pool: [ | 30 constant pool: [ |
| 31 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 31 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 32 ] | 32 ] |
| 33 handlers: [ | 33 handlers: [ |
| 34 ] | 34 ] |
| 35 | 35 |
| 36 --- | 36 --- |
| 37 snippet: " | 37 snippet: " |
| 38 const x = 10; function f1() {return x;} return x; | 38 const x = 10; function f1() {return x;} return x; |
| 39 " | 39 " |
| 40 frame size: 3 | 40 frame size: 3 |
| 41 parameter count: 1 | 41 parameter count: 1 |
| 42 bytecode array length: 37 | 42 bytecode array length: 37 |
| 43 bytecodes: [ | 43 bytecodes: [ |
| 44 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 44 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 45 B(PushContext), R(1), | 45 B(PushContext), R(1), |
| 46 B(LdaTheHole), | 46 B(LdaTheHole), |
| 47 B(StaContextSlot), R(context), U8(4), | 47 B(StaContextSlot), R(context), U8(4), |
| 48 B(CreateClosure), U8(0), U8(0), | 48 B(CreateClosure), U8(0), U8(0), |
| 49 B(Star), R(0), | 49 B(Star), R(0), |
| 50 B(StackCheck), | 50 B(StackCheck), |
| 51 B(LdaSmi8), U8(10), | 51 B(LdaSmi), U8(10), |
| 52 B(StaContextSlot), R(context), U8(4), | 52 B(StaContextSlot), R(context), U8(4), |
| 53 B(LdaContextSlot), R(context), U8(4), | 53 B(LdaContextSlot), R(context), U8(4), |
| 54 B(JumpIfNotHole), U8(11), | 54 B(JumpIfNotHole), U8(11), |
| 55 B(LdaConstant), U8(1), | 55 B(LdaConstant), U8(1), |
| 56 B(Star), R(2), | 56 B(Star), R(2), |
| 57 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 57 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
| 58 B(Return), | 58 B(Return), |
| 59 ] | 59 ] |
| 60 constant pool: [ | 60 constant pool: [ |
| 61 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 61 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 72 parameter count: 1 | 72 parameter count: 1 |
| 73 bytecode array length: 50 | 73 bytecode array length: 50 |
| 74 bytecodes: [ | 74 bytecodes: [ |
| 75 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 75 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 76 B(PushContext), R(1), | 76 B(PushContext), R(1), |
| 77 B(LdaTheHole), | 77 B(LdaTheHole), |
| 78 B(StaContextSlot), R(context), U8(4), | 78 B(StaContextSlot), R(context), U8(4), |
| 79 B(CreateClosure), U8(0), U8(0), | 79 B(CreateClosure), U8(0), U8(0), |
| 80 B(Star), R(0), | 80 B(Star), R(0), |
| 81 B(StackCheck), | 81 B(StackCheck), |
| 82 B(LdaSmi8), U8(20), | 82 B(LdaSmi), U8(20), |
| 83 B(Star), R(2), | 83 B(Star), R(2), |
| 84 B(LdaContextSlot), R(context), U8(4), | 84 B(LdaContextSlot), R(context), U8(4), |
| 85 B(JumpIfNotHole), U8(11), | 85 B(JumpIfNotHole), U8(11), |
| 86 B(LdaConstant), U8(1), | 86 B(LdaConstant), U8(1), |
| 87 B(Star), R(3), | 87 B(Star), R(3), |
| 88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 89 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), | 89 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), |
| 90 B(Ldar), R(2), | 90 B(Ldar), R(2), |
| 91 B(StaContextSlot), R(context), U8(4), | 91 B(StaContextSlot), R(context), U8(4), |
| 92 B(StaContextSlot), R(context), U8(4), | 92 B(StaContextSlot), R(context), U8(4), |
| (...skipping 15 matching lines...) Expand all Loading... |
| 108 parameter count: 1 | 108 parameter count: 1 |
| 109 bytecode array length: 52 | 109 bytecode array length: 52 |
| 110 bytecodes: [ | 110 bytecodes: [ |
| 111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
| 112 B(PushContext), R(1), | 112 B(PushContext), R(1), |
| 113 B(LdaTheHole), | 113 B(LdaTheHole), |
| 114 B(StaContextSlot), R(context), U8(4), | 114 B(StaContextSlot), R(context), U8(4), |
| 115 B(CreateClosure), U8(0), U8(0), | 115 B(CreateClosure), U8(0), U8(0), |
| 116 B(Star), R(0), | 116 B(Star), R(0), |
| 117 B(StackCheck), | 117 B(StackCheck), |
| 118 B(LdaSmi8), U8(10), | 118 B(LdaSmi), U8(10), |
| 119 B(StaContextSlot), R(context), U8(4), | 119 B(StaContextSlot), R(context), U8(4), |
| 120 B(LdaSmi8), U8(20), | 120 B(LdaSmi), U8(20), |
| 121 B(Star), R(2), | 121 B(Star), R(2), |
| 122 B(LdaContextSlot), R(context), U8(4), | 122 B(LdaContextSlot), R(context), U8(4), |
| 123 B(JumpIfNotHole), U8(11), | 123 B(JumpIfNotHole), U8(11), |
| 124 B(LdaConstant), U8(1), | 124 B(LdaConstant), U8(1), |
| 125 B(Star), R(3), | 125 B(Star), R(3), |
| 126 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 126 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
| 127 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), | 127 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), |
| 128 B(Ldar), R(2), | 128 B(Ldar), R(2), |
| 129 B(StaContextSlot), R(context), U8(4), | 129 B(StaContextSlot), R(context), U8(4), |
| 130 B(LdaUndefined), | 130 B(LdaUndefined), |
| 131 B(Return), | 131 B(Return), |
| 132 ] | 132 ] |
| 133 constant pool: [ | 133 constant pool: [ |
| 134 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 134 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
| 135 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 135 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 136 ] | 136 ] |
| 137 handlers: [ | 137 handlers: [ |
| 138 ] | 138 ] |
| 139 | 139 |
| OLD | NEW |