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: no | 7 wrap: no |
9 test function name: f | 8 test function name: f |
10 | 9 |
11 --- | 10 --- |
12 snippet: " | 11 snippet: " |
13 function f(a) { return a.func(); } | 12 function f(a) { return a.func(); } |
14 f(new (function Obj() { this.func = function() { return; }})()) | 13 f(new (function Obj() { this.func = function() { return; }})()) |
15 " | 14 " |
16 frame size: 1 | 15 frame size: 1 |
17 parameter count: 2 | 16 parameter count: 2 |
18 bytecode array length: 13 | 17 bytecode array length: 13 |
19 bytecodes: [ | 18 bytecodes: [ |
20 /* 10 E> */ B(StackCheck), | 19 /* 10 E> */ B(StackCheck), |
21 /* 16 S> */ B(Nop), | 20 /* 16 S> */ B(Nop), |
22 /* 24 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(3), R(0), | 21 /* 24 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(3), R(0), |
23 /* 25 E> */ B(Call), R(0), R(arg0), U8(1), U8(1), | 22 /* 25 E> */ B(Call), R(0), R(arg0), U8(1), U8(1), |
24 /* 33 S> */ B(Return), | 23 /* 33 S> */ B(Return), |
25 ] | 24 ] |
26 constant pool: [ | 25 constant pool: [ |
27 "func", | 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
28 ] | 27 ] |
29 handlers: [ | 28 handlers: [ |
30 ] | 29 ] |
31 | 30 |
32 --- | 31 --- |
33 snippet: " | 32 snippet: " |
34 function f(a, b, c) { return a.func(b, c); } | 33 function f(a, b, c) { return a.func(b, c); } |
35 f(new (function Obj() { this.func = function() { return; }})(), 1, 2) | 34 f(new (function Obj() { this.func = function() { return; }})(), 1, 2) |
36 " | 35 " |
37 frame size: 4 | 36 frame size: 4 |
38 parameter count: 4 | 37 parameter count: 4 |
39 bytecode array length: 24 | 38 bytecode array length: 24 |
40 bytecodes: [ | 39 bytecodes: [ |
41 /* 10 E> */ B(StackCheck), | 40 /* 10 E> */ B(StackCheck), |
42 /* 22 S> */ B(Nop), | 41 /* 22 S> */ B(Nop), |
43 /* 30 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(3), R(0), | 42 /* 30 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(3), R(0), |
44 B(Ldar), R(0), | 43 B(Ldar), R(0), |
45 B(Mov), R(arg0), R(1), | 44 B(Mov), R(arg0), R(1), |
46 B(Mov), R(arg1), R(2), | 45 B(Mov), R(arg1), R(2), |
47 B(Mov), R(arg2), R(3), | 46 B(Mov), R(arg2), R(3), |
48 /* 31 E> */ B(Call), R(0), R(1), U8(3), U8(1), | 47 /* 31 E> */ B(Call), R(0), R(1), U8(3), U8(1), |
49 /* 43 S> */ B(Return), | 48 /* 43 S> */ B(Return), |
50 ] | 49 ] |
51 constant pool: [ | 50 constant pool: [ |
52 "func", | 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
53 ] | 52 ] |
54 handlers: [ | 53 handlers: [ |
55 ] | 54 ] |
56 | 55 |
57 --- | 56 --- |
58 snippet: " | 57 snippet: " |
59 function f(a, b) { return a.func(b + b, b); } | 58 function f(a, b) { return a.func(b + b, b); } |
60 f(new (function Obj() { this.func = function() { return; }})(), 1) | 59 f(new (function Obj() { this.func = function() { return; }})(), 1) |
61 " | 60 " |
62 frame size: 4 | 61 frame size: 4 |
63 parameter count: 3 | 62 parameter count: 3 |
64 bytecode array length: 26 | 63 bytecode array length: 26 |
65 bytecodes: [ | 64 bytecodes: [ |
66 /* 10 E> */ B(StackCheck), | 65 /* 10 E> */ B(StackCheck), |
67 /* 19 S> */ B(Nop), | 66 /* 19 S> */ B(Nop), |
68 /* 27 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(3), R(0), | 67 /* 27 E> */ B(LdrNamedProperty), R(arg0), U8(0), U8(3), R(0), |
69 B(Ldar), R(arg1), | 68 B(Ldar), R(arg1), |
70 /* 37 E> */ B(Add), R(arg1), U8(5), | 69 /* 37 E> */ B(Add), R(arg1), U8(5), |
71 B(Star), R(2), | 70 B(Star), R(2), |
72 B(Mov), R(arg0), R(1), | 71 B(Mov), R(arg0), R(1), |
73 B(Mov), R(arg1), R(3), | 72 B(Mov), R(arg1), R(3), |
74 /* 28 E> */ B(Call), R(0), R(1), U8(3), U8(1), | 73 /* 28 E> */ B(Call), R(0), R(1), U8(3), U8(1), |
75 /* 44 S> */ B(Return), | 74 /* 44 S> */ B(Return), |
76 ] | 75 ] |
77 constant pool: [ | 76 constant pool: [ |
78 "func", | 77 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
79 ] | 78 ] |
80 handlers: [ | 79 handlers: [ |
81 ] | 80 ] |
82 | 81 |
83 --- | 82 --- |
84 snippet: " | 83 snippet: " |
85 function f(a) { | 84 function f(a) { |
86 a.func; | 85 a.func; |
87 a.func; | 86 a.func; |
88 a.func; | 87 a.func; |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 /* 1151 S> */ B(Nop), | 473 /* 1151 S> */ B(Nop), |
475 /* 1152 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(253), | 474 /* 1152 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(253), |
476 /* 1160 S> */ B(Nop), | 475 /* 1160 S> */ B(Nop), |
477 /* 1161 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(255), | 476 /* 1161 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(255), |
478 /* 1169 S> */ B(Nop), | 477 /* 1169 S> */ B(Nop), |
479 /* 1177 E> */ B(Wide), B(LdrNamedProperty), R16(arg0), U16(0), U16(259), R16(0
), | 478 /* 1177 E> */ B(Wide), B(LdrNamedProperty), R16(arg0), U16(0), U16(259), R16(0
), |
480 /* 1178 E> */ B(Wide), B(Call), R16(0), R16(arg0), U16(1), U16(257), | 479 /* 1178 E> */ B(Wide), B(Call), R16(0), R16(arg0), U16(1), U16(257), |
481 /* 1186 S> */ B(Return), | 480 /* 1186 S> */ B(Return), |
482 ] | 481 ] |
483 constant pool: [ | 482 constant pool: [ |
484 "func", | 483 ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"], |
485 ] | 484 ] |
486 handlers: [ | 485 handlers: [ |
487 ] | 486 ] |
488 | 487 |
OLD | NEW |