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: f | 9 test function name: f |
10 | 10 |
11 --- | 11 --- |
12 snippet: " | 12 snippet: " |
13 function f() { %TheHole() } | 13 function f() { %TheHole() } |
14 f(); | 14 f(); |
15 " | 15 " |
16 frame size: 0 | 16 frame size: 0 |
17 parameter count: 1 | 17 parameter count: 1 |
18 bytecode array length: 8 | 18 bytecode array length: 8 |
19 bytecodes: [ | 19 bytecodes: [ |
20 B(StackCheck), | 20 /* 10 E> */ B(StackCheck), |
21 B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0), | 21 /* 15 S> */ B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0), |
22 B(LdaUndefined), | 22 B(LdaUndefined), |
23 B(Return), | 23 /* 26 S> */ B(Return), |
24 ] | 24 ] |
25 constant pool: [ | 25 constant pool: [ |
26 ] | 26 ] |
27 handlers: [ | 27 handlers: [ |
28 ] | 28 ] |
29 | 29 |
30 --- | 30 --- |
31 snippet: " | 31 snippet: " |
32 function f(a) { return %IsArray(a) } | 32 function f(a) { return %IsArray(a) } |
33 f(undefined); | 33 f(undefined); |
34 " | 34 " |
35 frame size: 1 | 35 frame size: 1 |
36 parameter count: 2 | 36 parameter count: 2 |
37 bytecode array length: 11 | 37 bytecode array length: 11 |
38 bytecodes: [ | 38 bytecodes: [ |
39 B(StackCheck), | 39 /* 10 E> */ B(StackCheck), |
40 B(Ldar), R(arg0), | 40 /* 16 S> */ B(Ldar), R(arg0), |
41 B(Star), R(0), | 41 B(Star), R(0), |
42 B(CallRuntime), U16(Runtime::kIsArray), R(0), U8(1), | 42 B(CallRuntime), U16(Runtime::kIsArray), R(0), U8(1), |
43 B(Return), | 43 /* 35 S> */ B(Return), |
44 ] | 44 ] |
45 constant pool: [ | 45 constant pool: [ |
46 ] | 46 ] |
47 handlers: [ | 47 handlers: [ |
48 ] | 48 ] |
49 | 49 |
50 --- | 50 --- |
51 snippet: " | 51 snippet: " |
52 function f() { return %Add(1, 2) } | 52 function f() { return %Add(1, 2) } |
53 f(); | 53 f(); |
54 " | 54 " |
55 frame size: 2 | 55 frame size: 2 |
56 parameter count: 1 | 56 parameter count: 1 |
57 bytecode array length: 15 | 57 bytecode array length: 15 |
58 bytecodes: [ | 58 bytecodes: [ |
59 B(StackCheck), | 59 /* 10 E> */ B(StackCheck), |
60 B(LdaSmi), U8(1), | 60 /* 15 S> */ B(LdaSmi), U8(1), |
61 B(Star), R(0), | 61 B(Star), R(0), |
62 B(LdaSmi), U8(2), | 62 B(LdaSmi), U8(2), |
63 B(Star), R(1), | 63 B(Star), R(1), |
64 B(CallRuntime), U16(Runtime::kAdd), R(0), U8(2), | 64 B(CallRuntime), U16(Runtime::kAdd), R(0), U8(2), |
65 B(Return), | 65 /* 33 S> */ B(Return), |
66 ] | 66 ] |
67 constant pool: [ | 67 constant pool: [ |
68 ] | 68 ] |
69 handlers: [ | 69 handlers: [ |
70 ] | 70 ] |
71 | 71 |
72 --- | 72 --- |
73 snippet: " | 73 snippet: " |
74 function f() { return %spread_iterable([1]) } | 74 function f() { return %spread_iterable([1]) } |
75 f(); | 75 f(); |
76 " | 76 " |
77 frame size: 2 | 77 frame size: 2 |
78 parameter count: 1 | 78 parameter count: 1 |
79 bytecode array length: 15 | 79 bytecode array length: 15 |
80 bytecodes: [ | 80 bytecodes: [ |
81 B(StackCheck), | 81 /* 10 E> */ B(StackCheck), |
82 B(LdaUndefined), | 82 /* 15 S> */ B(LdaUndefined), |
83 B(Star), R(0), | 83 B(Star), R(0), |
84 B(CreateArrayLiteral), U8(0), U8(0), U8(3), | 84 B(CreateArrayLiteral), U8(0), U8(0), U8(3), |
85 B(Star), R(1), | 85 B(Star), R(1), |
86 B(CallJSRuntime), U8(120), R(0), U8(2), | 86 B(CallJSRuntime), U8(120), R(0), U8(2), |
87 B(Return), | 87 /* 44 S> */ B(Return), |
88 ] | 88 ] |
89 constant pool: [ | 89 constant pool: [ |
90 InstanceType::FIXED_ARRAY_TYPE, | 90 InstanceType::FIXED_ARRAY_TYPE, |
91 ] | 91 ] |
92 handlers: [ | 92 handlers: [ |
93 ] | 93 ] |
94 | 94 |
OLD | NEW |