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: f | 7 test function name: f |
8 | 8 |
9 --- | 9 --- |
10 snippet: " | 10 snippet: " |
11 function bar() { this.value = 0; } | 11 function bar() { this.value = 0; } |
12 function f() { return new bar(); } | 12 function f() { return new bar(); } |
13 f(); | 13 f(); |
14 " | 14 " |
15 frame size: 1 | 15 frame size: 1 |
16 parameter count: 1 | 16 parameter count: 1 |
17 bytecode array length: 11 | 17 bytecode array length: 12 |
18 bytecodes: [ | 18 bytecodes: [ |
19 /* 45 E> */ B(StackCheck), | 19 /* 45 E> */ B(StackCheck), |
20 /* 50 S> */ B(LdaGlobal), U8(4), | 20 /* 50 S> */ B(LdaGlobal), U8(0), U8(4), |
21 B(Star), R(0), | 21 B(Star), R(0), |
22 /* 57 E> */ B(New), R(0), R(0), U8(0), U8(2), | 22 /* 57 E> */ B(New), R(0), R(0), U8(0), U8(2), |
23 /* 68 S> */ B(Return), | 23 /* 68 S> */ B(Return), |
24 ] | 24 ] |
25 constant pool: [ | 25 constant pool: [ |
| 26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], |
26 ] | 27 ] |
27 handlers: [ | 28 handlers: [ |
28 ] | 29 ] |
29 | 30 |
30 --- | 31 --- |
31 snippet: " | 32 snippet: " |
32 function bar(x) { this.value = 18; this.x = x;} | 33 function bar(x) { this.value = 18; this.x = x;} |
33 function f() { return new bar(3); } | 34 function f() { return new bar(3); } |
34 f(); | 35 f(); |
35 " | 36 " |
36 frame size: 2 | 37 frame size: 2 |
37 parameter count: 1 | 38 parameter count: 1 |
38 bytecode array length: 17 | 39 bytecode array length: 18 |
39 bytecodes: [ | 40 bytecodes: [ |
40 /* 58 E> */ B(StackCheck), | 41 /* 58 E> */ B(StackCheck), |
41 /* 63 S> */ B(LdaGlobal), U8(4), | 42 /* 63 S> */ B(LdaGlobal), U8(0), U8(4), |
42 B(Star), R(0), | 43 B(Star), R(0), |
43 B(LdaSmi), U8(3), | 44 B(LdaSmi), U8(3), |
44 B(Star), R(1), | 45 B(Star), R(1), |
45 B(Ldar), R(0), | 46 B(Ldar), R(0), |
46 /* 70 E> */ B(New), R(0), R(1), U8(1), U8(2), | 47 /* 70 E> */ B(New), R(0), R(1), U8(1), U8(2), |
47 /* 82 S> */ B(Return), | 48 /* 82 S> */ B(Return), |
48 ] | 49 ] |
49 constant pool: [ | 50 constant pool: [ |
| 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], |
50 ] | 52 ] |
51 handlers: [ | 53 handlers: [ |
52 ] | 54 ] |
53 | 55 |
54 --- | 56 --- |
55 snippet: " | 57 snippet: " |
56 function bar(w, x, y, z) { | 58 function bar(w, x, y, z) { |
57 this.value = 18; | 59 this.value = 18; |
58 this.x = x; | 60 this.x = x; |
59 this.y = y; | 61 this.y = y; |
60 this.z = z; | 62 this.z = z; |
61 } | 63 } |
62 function f() { return new bar(3, 4, 5); } | 64 function f() { return new bar(3, 4, 5); } |
63 f(); | 65 f(); |
64 " | 66 " |
65 frame size: 4 | 67 frame size: 4 |
66 parameter count: 1 | 68 parameter count: 1 |
67 bytecode array length: 25 | 69 bytecode array length: 26 |
68 bytecodes: [ | 70 bytecodes: [ |
69 /* 100 E> */ B(StackCheck), | 71 /* 100 E> */ B(StackCheck), |
70 /* 105 S> */ B(LdaGlobal), U8(4), | 72 /* 105 S> */ B(LdaGlobal), U8(0), U8(4), |
71 B(Star), R(0), | 73 B(Star), R(0), |
72 B(LdaSmi), U8(3), | 74 B(LdaSmi), U8(3), |
73 B(Star), R(1), | 75 B(Star), R(1), |
74 B(LdaSmi), U8(4), | 76 B(LdaSmi), U8(4), |
75 B(Star), R(2), | 77 B(Star), R(2), |
76 B(LdaSmi), U8(5), | 78 B(LdaSmi), U8(5), |
77 B(Star), R(3), | 79 B(Star), R(3), |
78 B(Ldar), R(0), | 80 B(Ldar), R(0), |
79 /* 112 E> */ B(New), R(0), R(1), U8(3), U8(2), | 81 /* 112 E> */ B(New), R(0), R(1), U8(3), U8(2), |
80 /* 130 S> */ B(Return), | 82 /* 130 S> */ B(Return), |
81 ] | 83 ] |
82 constant pool: [ | 84 constant pool: [ |
| 85 ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"], |
83 ] | 86 ] |
84 handlers: [ | 87 handlers: [ |
85 ] | 88 ] |
86 | 89 |
OLD | NEW |