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

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

Powered by Google App Engine
This is Rietveld 408576698