blob: ec10e67c1056f2597694380fd4a86750a34b7745 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: mixed
7execute: yes
8wrap: no
9test function name: f
10
11---
12snippet: "
13 function f() { %TheHole() }
14 f();
15"
16frame size: 0
17parameter count: 1
18bytecode array length: 8
19bytecodes: [
20 B(StackCheck),
21 B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0),
22 B(LdaUndefined),
23 B(Return),
24]
25constant pool: [
26]
27handlers: [
28]
29
30---
31snippet: "
32 function f(a) { return %IsArray(a) }
33 f(undefined);
34"
35frame size: 1
36parameter count: 2
37bytecode array length: 11
38bytecodes: [
39 B(StackCheck),
40 B(Ldar), R(arg0),
41 B(Star), R(0),
42 B(CallRuntime), U16(Runtime::kIsArray), R(0), U8(1),
43 B(Return),
44]
45constant pool: [
46]
47handlers: [
48]
49
50---
51snippet: "
52 function f() { return %Add(1, 2) }
53 f();
54"
55frame size: 2
56parameter count: 1
57bytecode array length: 15
58bytecodes: [
59 B(StackCheck),
60 B(LdaSmi), U8(1),
61 B(Star), R(0),
62 B(LdaSmi), U8(2),
63 B(Star), R(1),
64 B(CallRuntime), U16(Runtime::kAdd), R(0), U8(2),
65 B(Return),
66]
67constant pool: [
68]
69handlers: [
70]
71
72---
73snippet: "
74 function f() { return %spread_iterable([1]) }
75 f();
76"
77frame size: 2
78parameter count: 1
79bytecode array length: 15
80bytecodes: [
81 B(StackCheck),
82 B(LdaUndefined),
83 B(Star), R(0),
84 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
85 B(Star), R(1),
86 B(CallJSRuntime), U8(115), R(0), U8(2),
87 B(Return),
88]
89constant pool: [
90 InstanceType::FIXED_ARRAY_TYPE,
91]
92handlers: [
93]
94