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

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

Powered by Google App Engine
This is Rietveld 408576698