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