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

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

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: std::vector instead of initializer_list, golden path as constant. 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 # in multiples of sizeof(void*)
15 parameter count: 1
16 bytecodes: [
17 B(CallRuntime), U16(461), R(closure), U8(1),
18 B(PushContext), R(0),
19 B(StackCheck),
20 B(CreateClosure), U8(0), U8(0),
21 B(Return),
22 ]
23 constant pool: [
24 InstanceType::SHARED_FUNCTION_INFO_TYPE,
25 ]
26 handlers: [
27 ]
28
29 ---
30 snippet: "
31 var a = 1; return function() { a = 2; };
32 "
33 frame size: 1 # in multiples of sizeof(void*)
34 parameter count: 1
35 bytecodes: [
36 B(CallRuntime), U16(461), R(closure), U8(1),
37 B(PushContext), R(0),
38 B(StackCheck),
39 B(LdaSmi8), U8(1),
40 B(StaContextSlot), R(context), U8(4),
41 B(CreateClosure), U8(0), U8(0),
42 B(Return),
43 ]
44 constant pool: [
45 InstanceType::SHARED_FUNCTION_INFO_TYPE,
46 ]
47 handlers: [
48 ]
49
50 ---
51 snippet: "
52 var a = 1; var b = 2; return function() { a = 2; b = 3 };
53 "
54 frame size: 1 # in multiples of sizeof(void*)
55 parameter count: 1
56 bytecodes: [
57 B(CallRuntime), U16(461), R(closure), U8(1),
58 B(PushContext), R(0),
59 B(StackCheck),
60 B(LdaSmi8), U8(1),
61 B(StaContextSlot), R(context), U8(4),
62 B(LdaSmi8), U8(2),
63 B(StaContextSlot), R(context), U8(5),
64 B(CreateClosure), U8(0), U8(0),
65 B(Return),
66 ]
67 constant pool: [
68 InstanceType::SHARED_FUNCTION_INFO_TYPE,
69 ]
70 handlers: [
71 ]
72
73 ---
74 snippet: "
75 var a; (function() { a = 2; })(); return a;
76 "
77 frame size: 3 # in multiples of sizeof(void*)
78 parameter count: 1
79 bytecodes: [
80 B(CallRuntime), U16(461), R(closure), U8(1),
81 B(PushContext), R(0),
82 B(StackCheck),
83 B(LdaUndefined),
84 B(Star), R(2),
85 B(CreateClosure), U8(0), U8(0),
86 B(Star), R(1),
87 B(Call), R(1), R(2), U8(1), U8(1),
88 B(LdaContextSlot), R(context), U8(4),
89 B(Return),
90 ]
91 constant pool: [
92 InstanceType::SHARED_FUNCTION_INFO_TYPE,
93 ]
94 handlers: [
95 ]
96
97 ---
98 snippet: "
99 'use strict'; let a = 1; { let b = 2; return function() { a + b; }; }
100 "
101 frame size: 4 # in multiples of sizeof(void*)
102 parameter count: 1
103 bytecodes: [
104 B(CallRuntime), U16(461), R(closure), U8(1),
105 B(PushContext), R(0),
106 B(LdaTheHole),
107 B(StaContextSlot), R(context), U8(4),
108 B(StackCheck),
109 B(LdaSmi8), U8(1),
110 B(StaContextSlot), R(context), U8(4),
111 B(LdaConstant), U8(0),
112 B(Star), R(2),
113 B(Ldar), R(closure),
114 B(Star), R(3),
115 B(CallRuntime), U16(464), R(2), U8(2),
116 B(PushContext), R(1),
117 B(LdaTheHole),
118 B(StaContextSlot), R(context), U8(4),
119 B(LdaSmi8), U8(2),
120 B(StaContextSlot), R(context), U8(4),
121 B(CreateClosure), U8(1), U8(0),
122 B(PopContext), R(0),
123 B(Return),
124 ]
125 constant pool: [
126 InstanceType::FIXED_ARRAY_TYPE,
127 InstanceType::SHARED_FUNCTION_INFO_TYPE,
128 ]
129 handlers: [
130 ]
131
132 ---
133 snippet: "
134 'use strict';
135 "
136 frame size: 0
137 parameter count: 1
138 bytecodes: [
139 B(StackCheck),
140 B(LdaUndefined),
141 B(Return),
142 ]
143 constant pool: [
144 ]
145 handlers: [
146 ]
147
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698