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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Rebased. Created 4 years 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
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 return [ 1, 2 ]; 10 return [ 1, 2 ];
11 " 11 "
12 frame size: 0 12 frame size: 0
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 6 14 bytecode array length: 6
15 bytecodes: [ 15 bytecodes: [
16 /* 30 E> */ B(StackCheck), 16 /* 30 E> */ B(StackCheck),
17 /* 34 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 17 /* 34 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
18 /* 51 S> */ B(Return), 18 /* 51 S> */ B(Return),
19 ] 19 ]
20 constant pool: [ 20 constant pool: [
21 FIXED_ARRAY_TYPE, 21 CONSTANT_ELEMENTS_PAIR_TYPE,
22 ] 22 ]
23 handlers: [ 23 handlers: [
24 ] 24 ]
25 25
26 --- 26 ---
27 snippet: " 27 snippet: "
28 var a = 1; return [ a, a + 1 ]; 28 var a = 1; return [ a, a + 1 ];
29 " 29 "
30 frame size: 3 30 frame size: 3
31 parameter count: 1 31 parameter count: 1
32 bytecode array length: 35 32 bytecode array length: 35
33 bytecodes: [ 33 bytecodes: [
34 /* 30 E> */ B(StackCheck), 34 /* 30 E> */ B(StackCheck),
35 /* 42 S> */ B(LdaSmi), U8(1), 35 /* 42 S> */ B(LdaSmi), U8(1),
36 B(Star), R(0), 36 B(Star), R(0),
37 /* 45 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 37 /* 45 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
38 B(Star), R(2), 38 B(Star), R(2),
39 B(LdaZero), 39 B(LdaZero),
40 B(Star), R(1), 40 B(Star), R(1),
41 B(Ldar), R(0), 41 B(Ldar), R(0),
42 /* 54 E> */ B(StaKeyedPropertySloppy), R(2), R(1), U8(3), 42 /* 54 E> */ B(StaKeyedPropertySloppy), R(2), R(1), U8(3),
43 B(LdaSmi), U8(1), 43 B(LdaSmi), U8(1),
44 B(Star), R(1), 44 B(Star), R(1),
45 /* 59 E> */ B(AddSmi), U8(1), R(0), U8(2), 45 /* 59 E> */ B(AddSmi), U8(1), R(0), U8(2),
46 B(StaKeyedPropertySloppy), R(2), R(1), U8(3), 46 B(StaKeyedPropertySloppy), R(2), R(1), U8(3),
47 B(Ldar), R(2), 47 B(Ldar), R(2),
48 /* 66 S> */ B(Return), 48 /* 66 S> */ B(Return),
49 ] 49 ]
50 constant pool: [ 50 constant pool: [
51 FIXED_ARRAY_TYPE, 51 CONSTANT_ELEMENTS_PAIR_TYPE,
52 ] 52 ]
53 handlers: [ 53 handlers: [
54 ] 54 ]
55 55
56 --- 56 ---
57 snippet: " 57 snippet: "
58 return [ [ 1, 2 ], [ 3 ] ]; 58 return [ [ 1, 2 ], [ 3 ] ];
59 " 59 "
60 frame size: 0 60 frame size: 0
61 parameter count: 1 61 parameter count: 1
62 bytecode array length: 6 62 bytecode array length: 6
63 bytecodes: [ 63 bytecodes: [
64 /* 30 E> */ B(StackCheck), 64 /* 30 E> */ B(StackCheck),
65 /* 34 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(0), 65 /* 34 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(0),
66 /* 62 S> */ B(Return), 66 /* 62 S> */ B(Return),
67 ] 67 ]
68 constant pool: [ 68 constant pool: [
69 FIXED_ARRAY_TYPE, 69 CONSTANT_ELEMENTS_PAIR_TYPE,
70 ] 70 ]
71 handlers: [ 71 handlers: [
72 ] 72 ]
73 73
74 --- 74 ---
75 snippet: " 75 snippet: "
76 var a = 1; return [ [ a, 2 ], [ a + 2 ] ]; 76 var a = 1; return [ [ a, 2 ], [ a + 2 ] ];
77 " 77 "
78 frame size: 5 78 frame size: 5
79 parameter count: 1 79 parameter count: 1
(...skipping 21 matching lines...) Expand all
101 B(LdaZero), 101 B(LdaZero),
102 B(Star), R(3), 102 B(Star), R(3),
103 /* 68 E> */ B(AddSmi), U8(2), R(0), U8(4), 103 /* 68 E> */ B(AddSmi), U8(2), R(0), U8(4),
104 B(StaKeyedPropertySloppy), R(4), R(3), U8(5), 104 B(StaKeyedPropertySloppy), R(4), R(3), U8(5),
105 B(Ldar), R(4), 105 B(Ldar), R(4),
106 B(StaKeyedPropertySloppy), R(2), R(1), U8(7), 106 B(StaKeyedPropertySloppy), R(2), R(1), U8(7),
107 B(Ldar), R(2), 107 B(Ldar), R(2),
108 /* 77 S> */ B(Return), 108 /* 77 S> */ B(Return),
109 ] 109 ]
110 constant pool: [ 110 constant pool: [
111 FIXED_ARRAY_TYPE, 111 CONSTANT_ELEMENTS_PAIR_TYPE,
112 FIXED_ARRAY_TYPE, 112 CONSTANT_ELEMENTS_PAIR_TYPE,
113 FIXED_ARRAY_TYPE, 113 CONSTANT_ELEMENTS_PAIR_TYPE,
114 ] 114 ]
115 handlers: [ 115 handlers: [
116 ] 116 ]
117 117
OLDNEW
« no previous file with comments | « src/runtime/runtime-literals.cc ('k') | test/cctest/interpreter/bytecode_expectations/ArrayLiteralsWide.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698