Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1016)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ContextVariables.golden

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move golden files to subdir, update golden format. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #
2 # Autogenerated by generate-bytecode-expectations
3 #
4
5 ---
6 pool type: mixed
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 var a; return function() { a = 1; };
13 "
14 frame size: 1
15 parameter count: 1
16 bytecode array length: 12
17 bytecodes: [
18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
19 B(PushContext), R(0),
20 B(StackCheck),
21 B(CreateClosure), U8(0), U8(0),
22 B(Return),
23 ]
24 constant pool: [
25 InstanceType::SHARED_FUNCTION_INFO_TYPE,
26 ]
27 handlers: [
28 ]
29
30 ---
31 snippet: "
32 var a = 1; return function() { a = 2; };
33 "
34 frame size: 1
35 parameter count: 1
36 bytecode array length: 17
37 bytecodes: [
38 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
39 B(PushContext), R(0),
40 B(StackCheck),
41 B(LdaSmi8), U8(1),
42 B(StaContextSlot), R(context), U8(4),
43 B(CreateClosure), U8(0), U8(0),
44 B(Return),
45 ]
46 constant pool: [
47 InstanceType::SHARED_FUNCTION_INFO_TYPE,
48 ]
49 handlers: [
50 ]
51
52 ---
53 snippet: "
54 var a = 1; var b = 2; return function() { a = 2; b = 3 };
55 "
56 frame size: 1
57 parameter count: 1
58 bytecode array length: 22
59 bytecodes: [
60 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
61 B(PushContext), R(0),
62 B(StackCheck),
63 B(LdaSmi8), U8(1),
64 B(StaContextSlot), R(context), U8(4),
65 B(LdaSmi8), U8(2),
66 B(StaContextSlot), R(context), U8(5),
67 B(CreateClosure), U8(0), U8(0),
68 B(Return),
69 ]
70 constant pool: [
71 InstanceType::SHARED_FUNCTION_INFO_TYPE,
72 ]
73 handlers: [
74 ]
75
76 ---
77 snippet: "
78 var a; (function() { a = 2; })(); return a;
79 "
80 frame size: 3
81 parameter count: 1
82 bytecode array length: 25
83 bytecodes: [
84 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
85 B(PushContext), R(0),
86 B(StackCheck),
87 B(LdaUndefined),
88 B(Star), R(2),
89 B(CreateClosure), U8(0), U8(0),
90 B(Star), R(1),
91 B(Call), R(1), R(2), U8(1), U8(1),
92 B(LdaContextSlot), R(context), U8(4),
93 B(Return),
94 ]
95 constant pool: [
96 InstanceType::SHARED_FUNCTION_INFO_TYPE,
97 ]
98 handlers: [
99 ]
100
101 ---
102 snippet: "
103 'use strict';
104 let a = 1;
105 { let b = 2; return function() { a + b; }; }
106 "
107 frame size: 4
108 parameter count: 1
109 bytecode array length: 47
110 bytecodes: [
111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
112 B(PushContext), R(0),
113 B(LdaTheHole),
114 B(StaContextSlot), R(context), U8(4),
115 B(StackCheck),
116 B(LdaSmi8), U8(1),
117 B(StaContextSlot), R(context), U8(4),
118 B(LdaConstant), U8(0),
119 B(Star), R(2),
120 B(Ldar), R(closure),
121 B(Star), R(3),
122 B(CallRuntime), U16(Runtime::kPushBlockContext), R(2), U8(2),
123 B(PushContext), R(1),
124 B(LdaTheHole),
125 B(StaContextSlot), R(context), U8(4),
126 B(LdaSmi8), U8(2),
127 B(StaContextSlot), R(context), U8(4),
128 B(CreateClosure), U8(1), U8(0),
129 B(PopContext), R(0),
130 B(Return),
131 ]
132 constant pool: [
133 InstanceType::FIXED_ARRAY_TYPE,
134 InstanceType::SHARED_FUNCTION_INFO_TYPE,
135 ]
136 handlers: [
137 ]
138
139 ---
140 snippet: "
141 'use strict';
142 "
143 frame size: 0
144 parameter count: 1
145 bytecode array length: 3
146 bytecodes: [
147 B(StackCheck),
148 B(LdaUndefined),
149 B(Return),
150 ]
151 constant pool: [
152 ]
153 handlers: [
154 ]
155
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698