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

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

Powered by Google App Engine
This is Rietveld 408576698