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: no | 8 wrap: no |
9 test function name: test | 9 test function name: test |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 var test; | 13 var test; |
14 (function() { | 14 (function() { |
15 class A { | 15 class A { |
16 method() { return 2; } | 16 method() { return 2; } |
17 } | 17 } |
18 class B extends A { | 18 class B extends A { |
19 method() { return super.method() + 1; } | 19 method() { return super.method() + 1; } |
20 } | 20 } |
21 test = new B().method; | 21 test = new B().method; |
22 test(); | 22 test(); |
23 })(); | 23 })(); |
24 " | 24 " |
25 frame size: 7 | 25 frame size: 7 |
26 parameter count: 1 | 26 parameter count: 1 |
27 bytecode array length: 57 | 27 bytecode array length: 56 |
28 bytecodes: [ | 28 bytecodes: [ |
29 B(Ldar), R(closure), | 29 B(Ldar), R(closure), |
30 B(Star), R(0), | 30 B(Star), R(0), |
31 /* 99 E> */ B(StackCheck), | 31 /* 99 E> */ B(StackCheck), |
32 /* 104 S> */ B(Ldar), R(this), | 32 /* 104 S> */ B(Ldar), R(this), |
33 B(Star), R(3), | 33 B(Star), R(3), |
34 /* 111 E> */ B(Ldar), R(0), | 34 /* 111 E> */ B(Ldar), R(0), |
35 B(JumpIfNotHole), U8(11), | 35 B(JumpIfNotHole), U8(11), |
36 B(LdaConstant), U8(0), | 36 B(LdaConstant), U8(0), |
37 B(Star), R(6), | 37 B(Star), R(6), |
38 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), | 38 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
39 B(Star), R(6), | 39 B(Star), R(6), |
40 /* 111 E> */ B(LdaConstant), U8(1), | 40 /* 111 E> */ B(LdaConstant), U8(1), |
41 B(KeyedLoadIC), R(6), U8(3), | 41 B(LdrKeyedProperty), R(6), U8(3), R(4), |
42 B(Star), R(4), | |
43 B(LdaConstant), U8(2), | 42 B(LdaConstant), U8(2), |
44 B(Star), R(5), | 43 B(Star), R(5), |
45 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), | 44 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), |
46 B(Mov), R(3), R(2), | 45 B(Mov), R(3), R(2), |
47 B(Star), R(1), | 46 B(Star), R(1), |
48 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1), | 47 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1), |
49 B(Star), R(3), | 48 B(Star), R(3), |
50 B(LdaSmi), U8(1), | 49 B(LdaSmi), U8(1), |
51 B(Add), R(3), | 50 B(Add), R(3), |
52 /* 131 S> */ B(Return), | 51 /* 131 S> */ B(Return), |
(...skipping 16 matching lines...) Expand all Loading... |
69 } | 68 } |
70 class B extends A { | 69 class B extends A { |
71 method() { super.x = 2; return super.x; } | 70 method() { super.x = 2; return super.x; } |
72 } | 71 } |
73 test = new B().method; | 72 test = new B().method; |
74 test(); | 73 test(); |
75 })(); | 74 })(); |
76 " | 75 " |
77 frame size: 6 | 76 frame size: 6 |
78 parameter count: 1 | 77 parameter count: 1 |
79 bytecode array length: 80 | 78 bytecode array length: 78 |
80 bytecodes: [ | 79 bytecodes: [ |
81 B(Ldar), R(closure), | 80 B(Ldar), R(closure), |
82 B(Star), R(0), | 81 B(Star), R(0), |
83 /* 125 E> */ B(StackCheck), | 82 /* 125 E> */ B(StackCheck), |
84 /* 130 S> */ B(Ldar), R(this), | 83 /* 130 S> */ B(Ldar), R(this), |
85 B(Star), R(1), | 84 B(Star), R(1), |
86 /* 130 E> */ B(Ldar), R(0), | 85 /* 130 E> */ B(Ldar), R(0), |
87 B(JumpIfNotHole), U8(11), | 86 B(JumpIfNotHole), U8(11), |
88 B(LdaConstant), U8(0), | 87 B(LdaConstant), U8(0), |
89 B(Star), R(5), | 88 B(Star), R(5), |
90 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 89 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
91 B(Star), R(5), | 90 B(Star), R(5), |
92 /* 130 E> */ B(LdaConstant), U8(1), | 91 /* 130 E> */ B(LdaConstant), U8(1), |
93 B(KeyedLoadIC), R(5), U8(1), | 92 B(LdrKeyedProperty), R(5), U8(1), R(2), |
94 B(Star), R(2), | |
95 B(LdaConstant), U8(2), | 93 B(LdaConstant), U8(2), |
96 B(Star), R(3), | 94 B(Star), R(3), |
97 B(LdaSmi), U8(2), | 95 B(LdaSmi), U8(2), |
98 /* 138 E> */ B(Star), R(4), | 96 /* 138 E> */ B(Star), R(4), |
99 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), | 97 B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), |
100 /* 143 S> */ B(Ldar), R(this), | 98 /* 143 S> */ B(Ldar), R(this), |
101 B(Star), R(1), | 99 B(Star), R(1), |
102 /* 150 E> */ B(Ldar), R(0), | 100 /* 150 E> */ B(Ldar), R(0), |
103 B(JumpIfNotHole), U8(11), | 101 B(JumpIfNotHole), U8(11), |
104 B(LdaConstant), U8(0), | 102 B(LdaConstant), U8(0), |
105 B(Star), R(4), | 103 B(Star), R(4), |
106 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 104 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
107 B(Star), R(4), | 105 B(Star), R(4), |
108 /* 150 E> */ B(LdaConstant), U8(1), | 106 /* 150 E> */ B(LdaConstant), U8(1), |
109 B(KeyedLoadIC), R(4), U8(3), | 107 B(LdrKeyedProperty), R(4), U8(3), R(2), |
110 B(Star), R(2), | |
111 B(LdaConstant), U8(2), | 108 B(LdaConstant), U8(2), |
112 B(Star), R(3), | 109 B(Star), R(3), |
113 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), | 110 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), |
114 /* 159 S> */ B(Return), | 111 /* 159 S> */ B(Return), |
115 ] | 112 ] |
116 constant pool: [ | 113 constant pool: [ |
117 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 114 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
118 InstanceType::SYMBOL_TYPE, | 115 InstanceType::SYMBOL_TYPE, |
119 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 116 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
120 ] | 117 ] |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 ] | 249 ] |
253 constant pool: [ | 250 constant pool: [ |
254 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 251 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
255 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 252 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
256 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 253 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
257 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 254 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
258 ] | 255 ] |
259 handlers: [ | 256 handlers: [ |
260 ] | 257 ] |
261 | 258 |
OLD | NEW |