blob: bedbe31a956cc17269f06edfcf44f32cf76c36a3 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: mixed
7execute: no
8wrap: no
9top level: yes
10
11---
12snippet: "
13 var a = 1;
14"
15frame size: 4
16parameter count: 1
17bytecode array length: 31
18bytecodes: [
19 B(LdaConstant), U8(0),
20 B(Star), R(1),
21 B(LdaZero),
22 B(Star), R(2),
23 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
24 B(StackCheck),
25 B(LdaConstant), U8(1),
26 B(Star), R(1),
27 B(LdaZero),
28 B(Star), R(2),
29 B(LdaSmi), U8(1),
30 B(Star), R(3),
31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
32 B(LdaUndefined),
33 B(Return),
34]
35constant pool: [
36 InstanceType::FIXED_ARRAY_TYPE,
37 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
38]
39handlers: [
40]
41
42---
43snippet: "
44 function f() {}
45"
46frame size: 2
47parameter count: 1
48bytecode array length: 15
49bytecodes: [
50 B(LdaConstant), U8(0),
51 B(Star), R(0),
52 B(LdaZero),
53 B(Star), R(1),
54 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2),
55 B(StackCheck),
56 B(LdaUndefined),
57 B(Return),
58]
59constant pool: [
60 InstanceType::FIXED_ARRAY_TYPE,
61]
62handlers: [
63]
64
65---
66snippet: "
67 var a = 1;
68 a=2;
69"
70frame size: 4
71parameter count: 1
72bytecode array length: 37
73bytecodes: [
74 B(LdaConstant), U8(0),
75 B(Star), R(1),
76 B(LdaZero),
77 B(Star), R(2),
78 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
79 B(StackCheck),
80 B(LdaConstant), U8(1),
81 B(Star), R(1),
82 B(LdaZero),
83 B(Star), R(2),
84 B(LdaSmi), U8(1),
85 B(Star), R(3),
86 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
87 B(LdaSmi), U8(2),
88 B(StaGlobalSloppy), U8(1), U8(3),
89 B(Star), R(0),
90 B(Return),
91]
92constant pool: [
93 InstanceType::FIXED_ARRAY_TYPE,
94 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
95]
96handlers: [
97]
98
99---
100snippet: "
101 function f() {}
102 f();
103"
104frame size: 3
105parameter count: 1
106bytecode array length: 29
107bytecodes: [
108 B(LdaConstant), U8(0),
109 B(Star), R(1),
110 B(LdaZero),
111 B(Star), R(2),
112 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
113 B(StackCheck),
114 B(LdaUndefined),
115 B(Star), R(2),
116 B(LdaGlobal), U8(1), U8(1),
117 B(Star), R(1),
118 B(Call), R(1), R(2), U8(1), U8(3),
119 B(Star), R(0),
120 B(Return),
121]
122constant pool: [
123 InstanceType::FIXED_ARRAY_TYPE,
124 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
125]
126handlers: [
127]
128