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: 54 | 27 bytecode array length: 53 |
28 bytecodes: [ | 28 bytecodes: [ |
29 B(Mov), R(closure), R(0), | 29 B(Mov), R(closure), R(0), |
30 /* 99 E> */ B(StackCheck), | 30 /* 99 E> */ B(StackCheck), |
31 /* 104 S> */ B(Mov), R(this), R(3), | 31 /* 104 S> */ B(Mov), R(this), R(3), |
32 B(Ldar), R(closure), | 32 B(Ldar), R(closure), |
33 B(JumpIfNotHole), U8(11), | 33 B(JumpIfNotHole), U8(11), |
34 B(LdaConstant), U8(0), | 34 B(LdaConstant), U8(0), |
35 B(Star), R(6), | 35 B(Star), R(6), |
36 /* 111 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), | 36 /* 111 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
37 B(Star), R(6), | 37 B(Star), R(6), |
38 B(LdaConstant), U8(1), | 38 B(LdaConstant), U8(1), |
39 /* 111 E> */ B(LdrKeyedProperty), R(6), U8(3), R(4), | 39 /* 111 E> */ B(LdrKeyedProperty), R(6), U8(3), R(4), |
40 B(LdaConstant), U8(2), | 40 B(LdaConstant), U8(2), |
41 B(Star), R(5), | 41 B(Star), R(5), |
42 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), | 42 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3), |
43 B(Mov), R(3), R(2), | 43 B(Mov), R(3), R(2), |
44 B(Star), R(1), | 44 B(Star), R(1), |
45 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1), | 45 /* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1), |
46 B(Star), R(3), | 46 B(Star), R(3), |
47 B(LdaSmi), U8(1), | 47 B(AddSmi), U8(1), R(3), |
48 B(Add), R(3), | |
49 /* 131 S> */ B(Return), | 48 /* 131 S> */ B(Return), |
50 ] | 49 ] |
51 constant pool: [ | 50 constant pool: [ |
52 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 51 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
53 InstanceType::SYMBOL_TYPE, | 52 InstanceType::SYMBOL_TYPE, |
54 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 53 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
55 ] | 54 ] |
56 handlers: [ | 55 handlers: [ |
57 ] | 56 ] |
58 | 57 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 ] | 239 ] |
241 constant pool: [ | 240 constant pool: [ |
242 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 241 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
243 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 242 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
244 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 243 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
245 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 244 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
246 ] | 245 ] |
247 handlers: [ | 246 handlers: [ |
248 ] | 247 ] |
249 | 248 |
OLD | NEW |