blob: acec42f2e02165dc3dc1c41f7833c0c00ab16633 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: string
7execute: yes
8wrap: yes
9
10---
11snippet: "
12 eval('var x = 10;'); return x;
13"
14frame size: 9
15parameter count: 1
16bytecode array length: 67
17bytecodes: [
18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
19 B(PushContext), R(0),
20 B(Ldar), R(this),
21 B(StaContextSlot), R(context), U8(4),
22 B(CreateMappedArguments),
23 B(StaContextSlot), R(context), U8(5),
24 B(Ldar), R(new_target),
25 B(StaContextSlot), R(context), U8(6),
26 B(StackCheck),
27 B(LdaConstant), U8(0),
28 B(Star), R(3),
29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1),
30 B(LdaConstant), U8(1),
31 B(Star), R(3),
32 B(Mov), R(1), R(4),
33 B(Mov), R(3), R(5),
34 B(Mov), R(closure), R(6),
35 B(LdaZero),
36 B(Star), R(7),
37 B(LdaSmi), U8(30),
38 B(Star), R(8),
39 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5),
40 B(Star), R(1),
41 B(Call), R(1), R(2), U8(2), U8(0),
42 B(LdaLookupSlot), U8(2),
43 B(Return),
44]
45constant pool: [
46 "eval",
47 "var x = 10;",
48 "x",
49]
50handlers: [
51]
52
53---
54snippet: "
55 eval('var x = 10;'); return typeof x;
56"
57frame size: 9
58parameter count: 1
59bytecode array length: 68
60bytecodes: [
61 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
62 B(PushContext), R(0),
63 B(Ldar), R(this),
64 B(StaContextSlot), R(context), U8(4),
65 B(CreateMappedArguments),
66 B(StaContextSlot), R(context), U8(5),
67 B(Ldar), R(new_target),
68 B(StaContextSlot), R(context), U8(6),
69 B(StackCheck),
70 B(LdaConstant), U8(0),
71 B(Star), R(3),
72 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1),
73 B(LdaConstant), U8(1),
74 B(Star), R(3),
75 B(Mov), R(1), R(4),
76 B(Mov), R(3), R(5),
77 B(Mov), R(closure), R(6),
78 B(LdaZero),
79 B(Star), R(7),
80 B(LdaSmi), U8(30),
81 B(Star), R(8),
82 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5),
83 B(Star), R(1),
84 B(Call), R(1), R(2), U8(2), U8(0),
85 B(LdaLookupSlotInsideTypeof), U8(2),
86 B(TypeOf),
87 B(Return),
88]
89constant pool: [
90 "eval",
91 "var x = 10;",
92 "x",
93]
94handlers: [
95]
96
97---
98snippet: "
99 x = 20; return eval('');
100"
101frame size: 9
102parameter count: 1
103bytecode array length: 69
104bytecodes: [
105 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
106 B(PushContext), R(0),
107 B(Ldar), R(this),
108 B(StaContextSlot), R(context), U8(4),
109 B(CreateMappedArguments),
110 B(StaContextSlot), R(context), U8(5),
111 B(Ldar), R(new_target),
112 B(StaContextSlot), R(context), U8(6),
113 B(StackCheck),
114 B(LdaSmi), U8(20),
115 B(StaLookupSlotSloppy), U8(0),
116 B(LdaConstant), U8(1),
117 B(Star), R(3),
118 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1),
119 B(LdaConstant), U8(2),
120 B(Star), R(3),
121 B(Mov), R(1), R(4),
122 B(Mov), R(3), R(5),
123 B(Mov), R(closure), R(6),
124 B(LdaZero),
125 B(Star), R(7),
126 B(LdaSmi), U8(30),
127 B(Star), R(8),
128 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5),
129 B(Star), R(1),
130 B(Call), R(1), R(2), U8(2), U8(0),
131 B(Return),
132]
133constant pool: [
134 "x",
135 "eval",
136 "",
137]
138handlers: [
139]
140