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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ArrayLiterals.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
rmcilroy 2016/02/24 08:55:34 nit - fullstop at the end of the header.
Stefano Sanfilippo 2016/02/24 14:55:01 Done.
3 #
4
5 ---
6 pool type: mixed
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 return [ 1, 2 ];
13 "
14 frame size: 0
15 parameter count: 1
16 bytecode array length: 6
17 bytecodes: [
18 B(StackCheck),
19 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
20 B(Return),
21 ]
22 constant pool: [
23 InstanceType::FIXED_ARRAY_TYPE,
24 ]
25 handlers: [
26 ]
27
28 ---
29 snippet: "
30 var a = 1; return [ a, a + 1 ];
31 "
32 frame size: 4
33 parameter count: 1
34 bytecode array length: 39
35 bytecodes: [
36 B(StackCheck),
37 B(LdaSmi8), U8(1),
38 B(Star), R(0),
39 B(CreateArrayLiteral), U8(0), U8(0), U8(3),
40 B(Star), R(2),
41 B(LdaZero),
42 B(Star), R(1),
43 B(Ldar), R(0),
44 B(KeyedStoreICSloppy), R(2), R(1), U8(1),
45 B(LdaSmi8), U8(1),
46 B(Star), R(1),
47 B(Ldar), R(0),
48 B(Star), R(3),
49 B(LdaSmi8), U8(1),
50 B(Add), R(3),
51 B(KeyedStoreICSloppy), R(2), R(1), U8(1),
52 B(Ldar), R(2),
53 B(Return),
54 ]
55 constant pool: [
56 InstanceType::FIXED_ARRAY_TYPE,
57 ]
58 handlers: [
59 ]
60
61 ---
62 snippet: "
63 return [ [ 1, 2 ], [ 3 ] ];
64 "
65 frame size: 0
66 parameter count: 1
67 bytecode array length: 6
68 bytecodes: [
69 B(StackCheck),
70 B(CreateArrayLiteral), U8(0), U8(2), U8(2),
71 B(Return),
72 ]
73 constant pool: [
74 InstanceType::FIXED_ARRAY_TYPE,
75 ]
76 handlers: [
77 ]
78
79 ---
80 snippet: "
81 var a = 1; return [ [ a, 2 ], [ a + 2 ] ];
82 "
83 frame size: 6
84 parameter count: 1
85 bytecode array length: 69
86 bytecodes: [
87 B(StackCheck),
88 B(LdaSmi8), U8(1),
89 B(Star), R(0),
90 B(CreateArrayLiteral), U8(0), U8(2), U8(2),
91 B(Star), R(2),
92 B(LdaZero),
93 B(Star), R(1),
94 B(CreateArrayLiteral), U8(1), U8(0), U8(3),
95 B(Star), R(4),
96 B(LdaZero),
97 B(Star), R(3),
98 B(Ldar), R(0),
99 B(KeyedStoreICSloppy), R(4), R(3), U8(1),
100 B(Ldar), R(4),
101 B(KeyedStoreICSloppy), R(2), R(1), U8(5),
102 B(LdaSmi8), U8(1),
103 B(Star), R(1),
104 B(CreateArrayLiteral), U8(2), U8(1), U8(3),
105 B(Star), R(4),
106 B(LdaZero),
107 B(Star), R(3),
108 B(Ldar), R(0),
109 B(Star), R(5),
110 B(LdaSmi8), U8(2),
111 B(Add), R(5),
112 B(KeyedStoreICSloppy), R(4), R(3), U8(3),
113 B(Ldar), R(4),
114 B(KeyedStoreICSloppy), R(2), R(1), U8(5),
115 B(Ldar), R(2),
116 B(Return),
117 ]
118 constant pool: [
119 InstanceType::FIXED_ARRAY_TYPE,
120 InstanceType::FIXED_ARRAY_TYPE,
121 InstanceType::FIXED_ARRAY_TYPE,
122 ]
123 handlers: [
124 ]
125
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698