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

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

Powered by Google App Engine
This is Rietveld 408576698