blob: 4fc5c4ff99ce070a1592d9fdb129b43d5452ef8b [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: yes
9
10---
11snippet: "
12 let x = 10; function f1() {return x;}
13"
14frame size: 2
15parameter count: 1
16bytecode array length: 24
17bytecodes: [
18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
19 B(PushContext), R(1),
20 B(LdaTheHole),
21 B(StaContextSlot), R(context), U8(4),
22 B(CreateClosure), U8(0), U8(0),
23 B(Star), R(0),
24 B(StackCheck),
25 B(LdaSmi), U8(10),
26 B(StaContextSlot), R(context), U8(4),
27 B(LdaUndefined),
28 B(Return),
29]
30constant pool: [
31 InstanceType::SHARED_FUNCTION_INFO_TYPE,
32]
33handlers: [
34]
35
36---
37snippet: "
38 let x = 10; function f1() {return x;} return x;
39"
40frame size: 3
41parameter count: 1
42bytecode array length: 37
43bytecodes: [
44 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
45 B(PushContext), R(1),
46 B(LdaTheHole),
47 B(StaContextSlot), R(context), U8(4),
48 B(CreateClosure), U8(0), U8(0),
49 B(Star), R(0),
50 B(StackCheck),
51 B(LdaSmi), U8(10),
52 B(StaContextSlot), R(context), U8(4),
53 B(LdaContextSlot), R(context), U8(4),
54 B(JumpIfNotHole), U8(11),
55 B(LdaConstant), U8(1),
56 B(Star), R(2),
57 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
58 B(Return),
59]
60constant pool: [
61 InstanceType::SHARED_FUNCTION_INFO_TYPE,
62 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
63]
64handlers: [
65]
66
67---
68snippet: "
69 let x = (x = 20); function f1() {return x;}
70"
71frame size: 4
72parameter count: 1
73bytecode array length: 45
74bytecodes: [
75 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
76 B(PushContext), R(1),
77 B(LdaTheHole),
78 B(StaContextSlot), R(context), U8(4),
79 B(CreateClosure), U8(0), U8(0),
80 B(Star), R(0),
81 B(StackCheck),
82 B(LdaSmi), U8(20),
83 B(Star), R(2),
84 B(LdaContextSlot), R(context), U8(4),
85 B(JumpIfNotHole), U8(11),
86 B(LdaConstant), U8(1),
87 B(Star), R(3),
88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
89 B(Ldar), R(2),
90 B(StaContextSlot), R(context), U8(4),
91 B(StaContextSlot), R(context), U8(4),
92 B(LdaUndefined),
93 B(Return),
94]
95constant pool: [
96 InstanceType::SHARED_FUNCTION_INFO_TYPE,
97 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
98]
99handlers: [
100]
101
102---
103snippet: "
104 let x = 10; x = 20; function f1() {return x;}
105"
106frame size: 4
107parameter count: 1
108bytecode array length: 47
109bytecodes: [
110 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
111 B(PushContext), R(1),
112 B(LdaTheHole),
113 B(StaContextSlot), R(context), U8(4),
114 B(CreateClosure), U8(0), U8(0),
115 B(Star), R(0),
116 B(StackCheck),
117 B(LdaSmi), U8(10),
118 B(StaContextSlot), R(context), U8(4),
119 B(LdaSmi), U8(20),
120 B(Star), R(2),
121 B(LdaContextSlot), R(context), U8(4),
122 B(JumpIfNotHole), U8(11),
123 B(LdaConstant), U8(1),
124 B(Star), R(3),
125 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
126 B(Ldar), R(2),
127 B(StaContextSlot), R(context), U8(4),
128 B(LdaUndefined),
129 B(Return),
130]
131constant pool: [
132 InstanceType::SHARED_FUNCTION_INFO_TYPE,
133 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
134]
135handlers: [
136]
137