| 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: string | 6 pool type: string |
| 7 execute: yes | 7 execute: yes |
| 8 wrap: yes | 8 wrap: yes |
| 9 | 9 |
| 10 --- | 10 --- |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const x = 10; return x; | 33 const x = 10; return x; |
| 34 " | 34 " |
| 35 frame size: 2 | 35 frame size: 2 |
| 36 parameter count: 1 | 36 parameter count: 1 |
| 37 bytecode array length: 20 | 37 bytecode array length: 20 |
| 38 bytecodes: [ | 38 bytecodes: [ |
| 39 B(LdaTheHole), | 39 B(LdaTheHole), |
| 40 B(Star), R(0), | 40 B(Star), R(0), |
| 41 /* 30 E> */ B(StackCheck), | 41 /* 30 E> */ B(StackCheck), |
| 42 /* 44 S> */ B(LdaSmi), U8(10), | 42 /* 44 S> */ B(LdaSmi), U8(10), |
| 43 /* 44 E> */ B(Star), R(0), | 43 B(Star), R(0), |
| 44 /* 48 S> */ B(JumpIfNotHole), U8(11), | 44 /* 48 S> */ B(JumpIfNotHole), U8(11), |
| 45 B(LdaConstant), U8(0), | 45 B(LdaConstant), U8(0), |
| 46 B(Star), R(1), | 46 B(Star), R(1), |
| 47 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(1), U8(1), | 47 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(1), U8(1), |
| 48 /* 58 S> */ B(Return), | 48 /* 58 S> */ B(Return), |
| 49 ] | 49 ] |
| 50 constant pool: [ | 50 constant pool: [ |
| 51 "x", | 51 "x", |
| 52 ] | 52 ] |
| 53 handlers: [ | 53 handlers: [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 67 /* 48 S> */ B(LdaSmi), U8(20), | 67 /* 48 S> */ B(LdaSmi), U8(20), |
| 68 /* 48 E> */ B(Star), R(1), | 68 /* 48 E> */ B(Star), R(1), |
| 69 B(Ldar), R(0), | 69 B(Ldar), R(0), |
| 70 B(JumpIfNotHole), U8(11), | 70 B(JumpIfNotHole), U8(11), |
| 71 B(LdaConstant), U8(0), | 71 B(LdaConstant), U8(0), |
| 72 B(Star), R(2), | 72 B(Star), R(2), |
| 73 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 73 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
| 74 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 74 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 75 B(Ldar), R(1), | 75 B(Ldar), R(1), |
| 76 B(Star), R(0), | 76 B(Star), R(0), |
| 77 /* 48 E> */ B(LdaUndefined), | 77 B(LdaUndefined), |
| 78 /* 55 S> */ B(Return), | 78 /* 55 S> */ B(Return), |
| 79 ] | 79 ] |
| 80 constant pool: [ | 80 constant pool: [ |
| 81 "x", | 81 "x", |
| 82 ] | 82 ] |
| 83 handlers: [ | 83 handlers: [ |
| 84 ] | 84 ] |
| 85 | 85 |
| 86 --- | 86 --- |
| 87 snippet: " | 87 snippet: " |
| 88 const x = 10; x = 20; | 88 const x = 10; x = 20; |
| 89 " | 89 " |
| 90 frame size: 3 | 90 frame size: 3 |
| 91 parameter count: 1 | 91 parameter count: 1 |
| 92 bytecode array length: 36 | 92 bytecode array length: 36 |
| 93 bytecodes: [ | 93 bytecodes: [ |
| 94 B(LdaTheHole), | 94 B(LdaTheHole), |
| 95 B(Star), R(0), | 95 B(Star), R(0), |
| 96 /* 30 E> */ B(StackCheck), | 96 /* 30 E> */ B(StackCheck), |
| 97 /* 44 S> */ B(LdaSmi), U8(10), | 97 /* 44 S> */ B(LdaSmi), U8(10), |
| 98 /* 44 E> */ B(Star), R(0), | 98 B(Star), R(0), |
| 99 /* 48 S> */ B(LdaSmi), U8(20), | 99 /* 48 S> */ B(LdaSmi), U8(20), |
| 100 /* 50 E> */ B(Star), R(1), | 100 /* 50 E> */ B(Star), R(1), |
| 101 B(Ldar), R(0), | 101 B(Ldar), R(0), |
| 102 B(JumpIfNotHole), U8(11), | 102 B(JumpIfNotHole), U8(11), |
| 103 B(LdaConstant), U8(0), | 103 B(LdaConstant), U8(0), |
| 104 B(Star), R(2), | 104 B(Star), R(2), |
| 105 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 105 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
| 106 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 106 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 107 B(Ldar), R(1), | 107 B(Ldar), R(1), |
| 108 B(Star), R(0), | 108 B(Star), R(0), |
| 109 B(LdaUndefined), | 109 B(LdaUndefined), |
| 110 /* 56 S> */ B(Return), | 110 /* 56 S> */ B(Return), |
| 111 ] | 111 ] |
| 112 constant pool: [ | 112 constant pool: [ |
| 113 "x", | 113 "x", |
| 114 ] | 114 ] |
| 115 handlers: [ | 115 handlers: [ |
| 116 ] | 116 ] |
| 117 | 117 |
| OLD | NEW |