OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: no | 6 wrap: no |
7 test function name: test | 7 test function name: test |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
11 var test; | 11 var test; |
12 (function() { | 12 (function() { |
13 class A { | 13 class A { |
14 method() { return 2; } | 14 method() { return 2; } |
15 } | 15 } |
16 class B extends A { | 16 class B extends A { |
17 method() { return super.method() + 1; } | 17 method() { return super.method() + 1; } |
18 } | 18 } |
19 test = new B().method; | 19 test = new B().method; |
20 test(); | 20 test(); |
21 })(); | 21 })(); |
22 " | 22 " |
23 frame size: 6 | 23 frame size: 6 |
24 parameter count: 1 | 24 parameter count: 1 |
25 bytecode array length: 36 | 25 bytecode array length: 37 |
26 bytecodes: [ | 26 bytecodes: [ |
27 B(Mov), R(closure), R(0), | 27 B(Mov), R(closure), R(0), |
28 /* 99 E> */ B(StackCheck), | 28 /* 99 E> */ B(StackCheck), |
29 /* 104 S> */ B(LdaConstant), U8(0), | 29 /* 104 S> */ B(LdaConstant), U8(0), |
30 /* 111 E> */ B(LdrKeyedProperty), R(closure), U8(4), R(4), | 30 /* 111 E> */ B(LdaKeyedProperty), R(closure), U8(4), |
| 31 B(Star), R(4), |
31 B(LdaConstant), U8(1), | 32 B(LdaConstant), U8(1), |
32 B(Star), R(5), | 33 B(Star), R(5), |
33 B(Mov), R(this), R(3), | 34 B(Mov), R(this), R(3), |
34 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), | 35 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), |
35 B(Star), R(1), | 36 B(Star), R(1), |
36 /* 117 E> */ B(Call), R(1), R(this), U8(1), U8(2), | 37 /* 117 E> */ B(Call), R(1), R(this), U8(1), U8(2), |
37 B(Star), R(1), | 38 B(Star), R(1), |
38 B(AddSmi), U8(1), R(1), U8(8), | 39 B(AddSmi), U8(1), R(1), U8(8), |
39 /* 131 S> */ B(Return), | 40 /* 131 S> */ B(Return), |
40 ] | 41 ] |
(...skipping 14 matching lines...) Expand all Loading... |
55 } | 56 } |
56 class B extends A { | 57 class B extends A { |
57 method() { super.x = 2; return super.x; } | 58 method() { super.x = 2; return super.x; } |
58 } | 59 } |
59 test = new B().method; | 60 test = new B().method; |
60 test(); | 61 test(); |
61 })(); | 62 })(); |
62 " | 63 " |
63 frame size: 5 | 64 frame size: 5 |
64 parameter count: 1 | 65 parameter count: 1 |
65 bytecode array length: 45 | 66 bytecode array length: 47 |
66 bytecodes: [ | 67 bytecodes: [ |
67 B(Mov), R(closure), R(0), | 68 B(Mov), R(closure), R(0), |
68 /* 125 E> */ B(StackCheck), | 69 /* 125 E> */ B(StackCheck), |
69 /* 130 S> */ B(LdaConstant), U8(0), | 70 /* 130 S> */ B(LdaConstant), U8(0), |
70 /* 130 E> */ B(LdrKeyedProperty), R(closure), U8(2), R(2), | 71 /* 130 E> */ B(LdaKeyedProperty), R(closure), U8(2), |
| 72 B(Star), R(2), |
71 B(LdaConstant), U8(1), | 73 B(LdaConstant), U8(1), |
72 B(Star), R(3), | 74 B(Star), R(3), |
73 B(LdaSmi), U8(2), | 75 B(LdaSmi), U8(2), |
74 B(Star), R(4), | 76 B(Star), R(4), |
75 B(Mov), R(this), R(1), | 77 B(Mov), R(this), R(1), |
76 /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), | 78 /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), |
77 /* 143 S> */ B(LdaConstant), U8(0), | 79 /* 143 S> */ B(LdaConstant), U8(0), |
78 /* 150 E> */ B(LdrKeyedProperty), R(closure), U8(4), R(2), | 80 /* 150 E> */ B(LdaKeyedProperty), R(closure), U8(4), |
| 81 B(Star), R(2), |
79 B(LdaConstant), U8(1), | 82 B(LdaConstant), U8(1), |
80 B(Star), R(3), | 83 B(Star), R(3), |
81 B(Mov), R(this), R(1), | 84 B(Mov), R(this), R(1), |
82 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), | 85 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3), |
83 /* 159 S> */ B(Return), | 86 /* 159 S> */ B(Return), |
84 ] | 87 ] |
85 constant pool: [ | 88 constant pool: [ |
86 SYMBOL_TYPE, | 89 SYMBOL_TYPE, |
87 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 90 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
88 ] | 91 ] |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), | 197 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
195 /* 139 S> */ B(Return), | 198 /* 139 S> */ B(Return), |
196 ] | 199 ] |
197 constant pool: [ | 200 constant pool: [ |
198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], | 201 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], |
199 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], | 202 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"], |
200 ] | 203 ] |
201 handlers: [ | 204 handlers: [ |
202 ] | 205 ] |
203 | 206 |
OLD | NEW |