| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: yes | 6 wrap: yes |
| 7 | 7 |
| 8 --- | 8 --- |
| 9 snippet: " | 9 snippet: " |
| 10 const x = 10; function f1() {return x;} | 10 const x = 10; function f1() {return x;} |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 bytecodes: [ | 41 bytecodes: [ |
| 42 B(CreateFunctionContext), U8(1), | 42 B(CreateFunctionContext), U8(1), |
| 43 B(PushContext), R(1), | 43 B(PushContext), R(1), |
| 44 B(LdaTheHole), | 44 B(LdaTheHole), |
| 45 B(StaCurrentContextSlot), U8(4), | 45 B(StaCurrentContextSlot), U8(4), |
| 46 B(CreateClosure), U8(0), U8(2), U8(2), | 46 B(CreateClosure), U8(0), U8(2), U8(2), |
| 47 B(Star), R(0), | 47 B(Star), R(0), |
| 48 /* 30 E> */ B(StackCheck), | 48 /* 30 E> */ B(StackCheck), |
| 49 /* 44 S> */ B(LdaSmi), I8(10), | 49 /* 44 S> */ B(LdaSmi), I8(10), |
| 50 /* 44 E> */ B(StaCurrentContextSlot), U8(4), | 50 /* 44 E> */ B(StaCurrentContextSlot), U8(4), |
| 51 /* 74 S> */ B(LdaCurrentContextSlot), U8(4), | 51 /* 74 S> */ B(LdaImmutableCurrentContextSlot), U8(4), |
| 52 /* 84 S> */ B(Return), | 52 /* 84 S> */ B(Return), |
| 53 ] | 53 ] |
| 54 constant pool: [ | 54 constant pool: [ |
| 55 SHARED_FUNCTION_INFO_TYPE, | 55 SHARED_FUNCTION_INFO_TYPE, |
| 56 ] | 56 ] |
| 57 handlers: [ | 57 handlers: [ |
| 58 ] | 58 ] |
| 59 | 59 |
| 60 --- | 60 --- |
| 61 snippet: " | 61 snippet: " |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 112 /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 113 B(LdaUndefined), | 113 B(LdaUndefined), |
| 114 /* 82 S> */ B(Return), | 114 /* 82 S> */ B(Return), |
| 115 ] | 115 ] |
| 116 constant pool: [ | 116 constant pool: [ |
| 117 SHARED_FUNCTION_INFO_TYPE, | 117 SHARED_FUNCTION_INFO_TYPE, |
| 118 ] | 118 ] |
| 119 handlers: [ | 119 handlers: [ |
| 120 ] | 120 ] |
| 121 | 121 |
| OLD | NEW |