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

Side by Side Diff: test/cctest/interpreter/LetVariableContextSlot.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 let 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 let 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 let 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(Ldar), R(2),
87 B(StaContextSlot), R(context), U8(4),
88 B(StaContextSlot), R(context), U8(4),
89 B(LdaUndefined),
90 B(Return),
91 ]
92 constant pool: [
93 InstanceType::SHARED_FUNCTION_INFO_TYPE,
94 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
95 ]
96 handlers: [
97 ]
98
99 ---
100 snippet: "
101 let x = 10; x = 20; function f1() {return x;}
102 "
103 frame size: 4 # in multiples of sizeof(void*)
104 parameter count: 1
105 bytecodes: [
106 B(CallRuntime), U16(461), R(closure), U8(1),
107 B(PushContext), R(1),
108 B(LdaTheHole),
109 B(StaContextSlot), R(context), U8(4),
110 B(CreateClosure), U8(0), U8(0),
111 B(Star), R(0),
112 B(StackCheck),
113 B(LdaSmi8), U8(10),
114 B(StaContextSlot), R(context), U8(4),
115 B(LdaSmi8), U8(20),
116 B(Star), R(2),
117 B(LdaContextSlot), R(context), U8(4),
118 B(JumpIfNotHole), U8(11),
119 B(LdaConstant), U8(1),
120 B(Star), R(3),
121 B(CallRuntime), U16(257), R(3), U8(1),
122 B(Ldar), R(2),
123 B(StaContextSlot), R(context), U8(4),
124 B(LdaUndefined),
125 B(Return),
126 ]
127 constant pool: [
128 InstanceType::SHARED_FUNCTION_INFO_TYPE,
129 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
130 ]
131 handlers: [
132 ]
133
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698