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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bytecodes: [ | 67 bytecodes: [ |
68 B(CreateFunctionContext), U8(1), | 68 B(CreateFunctionContext), U8(1), |
69 B(PushContext), R(1), | 69 B(PushContext), R(1), |
70 B(LdaTheHole), | 70 B(LdaTheHole), |
71 B(StaCurrentContextSlot), U8(4), | 71 B(StaCurrentContextSlot), U8(4), |
72 B(CreateClosure), U8(0), U8(2), | 72 B(CreateClosure), U8(0), U8(2), |
73 B(Star), R(0), | 73 B(Star), R(0), |
74 /* 30 E> */ B(StackCheck), | 74 /* 30 E> */ B(StackCheck), |
75 /* 47 S> */ B(LdaSmi), U8(20), | 75 /* 47 S> */ B(LdaSmi), U8(20), |
76 B(Star), R(2), | 76 B(Star), R(2), |
77 /* 47 E> */ B(LdaCurrentContextSlot), U8(4), | 77 B(LdaCurrentContextSlot), U8(4), |
78 B(JumpIfNotHole), U8(11), | 78 B(JumpIfNotHole), U8(11), |
79 B(LdaConstant), U8(1), | 79 B(LdaConstant), U8(1), |
80 B(Star), R(3), | 80 B(Star), R(3), |
81 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), | 81 /* 47 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
82 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 82 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
83 /* 47 E> */ B(StaCurrentContextSlot), U8(4), | 83 /* 47 E> */ B(StaCurrentContextSlot), U8(4), |
84 B(LdaUndefined), | 84 B(LdaUndefined), |
85 /* 80 S> */ B(Return), | 85 /* 80 S> */ B(Return), |
86 ] | 86 ] |
87 constant pool: [ | 87 constant pool: [ |
88 SHARED_FUNCTION_INFO_TYPE, | 88 SHARED_FUNCTION_INFO_TYPE, |
89 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 89 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
90 ] | 90 ] |
91 handlers: [ | 91 handlers: [ |
(...skipping 20 matching lines...) Expand all 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 |