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

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

Issue 2640273002: [ignition] Expect 'I' for signed bytecode operands (Closed)
Patch Set: Rebase Created 3 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
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 var x = 0; 10 var x = 0;
11 while (x != 10) { 11 while (x != 10) {
12 x = x + 10; 12 x = x + 10;
13 } 13 }
14 return x; 14 return x;
15 " 15 "
16 frame size: 1 16 frame size: 1
17 parameter count: 1 17 parameter count: 1
18 bytecode array length: 25 18 bytecode array length: 25
19 bytecodes: [ 19 bytecodes: [
20 /* 30 E> */ B(StackCheck), 20 /* 30 E> */ B(StackCheck),
21 /* 42 S> */ B(LdaZero), 21 /* 42 S> */ B(LdaZero),
22 B(Star), R(0), 22 B(Star), R(0),
23 /* 54 S> */ B(LdaSmi), U8(10), 23 /* 54 S> */ B(LdaSmi), I8(10),
24 /* 54 E> */ B(TestEqual), R(0), U8(2), 24 /* 54 E> */ B(TestEqual), R(0), U8(2),
25 B(JumpIfTrue), U8(13), 25 B(JumpIfTrue), U8(13),
26 /* 45 E> */ B(StackCheck), 26 /* 45 E> */ B(StackCheck),
27 /* 65 S> */ B(LdaSmi), U8(10), 27 /* 65 S> */ B(LdaSmi), I8(10),
28 /* 71 E> */ B(Add), R(0), U8(3), 28 /* 71 E> */ B(Add), R(0), U8(3),
29 B(Star), R(0), 29 B(Star), R(0),
30 B(JumpLoop), U8(15), U8(0), 30 B(JumpLoop), U8(15), I8(0),
31 /* 79 S> */ B(Ldar), R(0), 31 /* 79 S> */ B(Ldar), R(0),
32 /* 89 S> */ B(Return), 32 /* 89 S> */ B(Return),
33 ] 33 ]
34 constant pool: [ 34 constant pool: [
35 ] 35 ]
36 handlers: [ 36 handlers: [
37 ] 37 ]
38 38
39 --- 39 ---
40 snippet: " 40 snippet: "
(...skipping 10 matching lines...) Expand all
51 /* 30 E> */ B(StackCheck), 51 /* 30 E> */ B(StackCheck),
52 /* 42 S> */ B(LdaFalse), 52 /* 42 S> */ B(LdaFalse),
53 B(Star), R(0), 53 B(Star), R(0),
54 /* 49 E> */ B(StackCheck), 54 /* 49 E> */ B(StackCheck),
55 /* 56 S> */ B(Ldar), R(0), 55 /* 56 S> */ B(Ldar), R(0),
56 B(ToBooleanLogicalNot), 56 B(ToBooleanLogicalNot),
57 B(Star), R(0), 57 B(Star), R(0),
58 /* 74 S> */ B(LdaFalse), 58 /* 74 S> */ B(LdaFalse),
59 /* 74 E> */ B(TestEqual), R(0), U8(2), 59 /* 74 E> */ B(TestEqual), R(0), U8(2),
60 B(JumpIfFalse), U8(5), 60 B(JumpIfFalse), U8(5),
61 B(JumpLoop), U8(12), U8(0), 61 B(JumpLoop), U8(12), I8(0),
62 /* 85 S> */ B(Ldar), R(0), 62 /* 85 S> */ B(Ldar), R(0),
63 /* 95 S> */ B(Return), 63 /* 95 S> */ B(Return),
64 ] 64 ]
65 constant pool: [ 65 constant pool: [
66 ] 66 ]
67 handlers: [ 67 handlers: [
68 ] 68 ]
69 69
70 --- 70 ---
71 snippet: " 71 snippet: "
72 var x = 101; 72 var x = 101;
73 return void(x * 3); 73 return void(x * 3);
74 " 74 "
75 frame size: 1 75 frame size: 1
76 parameter count: 1 76 parameter count: 1
77 bytecode array length: 12 77 bytecode array length: 12
78 bytecodes: [ 78 bytecodes: [
79 /* 30 E> */ B(StackCheck), 79 /* 30 E> */ B(StackCheck),
80 /* 42 S> */ B(LdaSmi), U8(101), 80 /* 42 S> */ B(LdaSmi), I8(101),
81 B(Star), R(0), 81 B(Star), R(0),
82 /* 47 S> */ B(LdaSmi), U8(3), 82 /* 47 S> */ B(LdaSmi), I8(3),
83 /* 61 E> */ B(Mul), R(0), U8(2), 83 /* 61 E> */ B(Mul), R(0), U8(2),
84 B(LdaUndefined), 84 B(LdaUndefined),
85 /* 67 S> */ B(Return), 85 /* 67 S> */ B(Return),
86 ] 86 ]
87 constant pool: [ 87 constant pool: [
88 ] 88 ]
89 handlers: [ 89 handlers: [
90 ] 90 ]
91 91
92 --- 92 ---
93 snippet: " 93 snippet: "
94 var x = 1234; 94 var x = 1234;
95 var y = void (x * x - 1); 95 var y = void (x * x - 1);
96 return y; 96 return y;
97 " 97 "
98 frame size: 3 98 frame size: 3
99 parameter count: 1 99 parameter count: 1
100 bytecode array length: 22 100 bytecode array length: 22
101 bytecodes: [ 101 bytecodes: [
102 /* 30 E> */ B(StackCheck), 102 /* 30 E> */ B(StackCheck),
103 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234), 103 /* 42 S> */ B(Wide), B(LdaSmi), I16(1234),
104 B(Star), R(0), 104 B(Star), R(0),
105 /* 56 S> */ B(Nop), 105 /* 56 S> */ B(Nop),
106 /* 64 E> */ B(Mul), R(0), U8(2), 106 /* 64 E> */ B(Mul), R(0), U8(2),
107 B(Star), R(2), 107 B(Star), R(2),
108 /* 68 E> */ B(SubSmi), U8(1), R(2), U8(3), 108 /* 68 E> */ B(SubSmi), I8(1), R(2), U8(3),
109 B(LdaUndefined), 109 B(LdaUndefined),
110 B(Star), R(1), 110 B(Star), R(1),
111 /* 74 S> */ B(Nop), 111 /* 74 S> */ B(Nop),
112 /* 84 S> */ B(Return), 112 /* 84 S> */ B(Return),
113 ] 113 ]
114 constant pool: [ 114 constant pool: [
115 ] 115 ]
116 handlers: [ 116 handlers: [
117 ] 117 ]
118 118
119 --- 119 ---
120 snippet: " 120 snippet: "
121 var x = 13; 121 var x = 13;
122 return ~x; 122 return ~x;
123 " 123 "
124 frame size: 1 124 frame size: 1
125 parameter count: 1 125 parameter count: 1
126 bytecode array length: 11 126 bytecode array length: 11
127 bytecodes: [ 127 bytecodes: [
128 /* 30 E> */ B(StackCheck), 128 /* 30 E> */ B(StackCheck),
129 /* 42 S> */ B(LdaSmi), U8(13), 129 /* 42 S> */ B(LdaSmi), I8(13),
130 B(Star), R(0), 130 B(Star), R(0),
131 /* 46 S> */ B(LdaSmi), U8(-1), 131 /* 46 S> */ B(LdaSmi), I8(-1),
132 /* 53 E> */ B(BitwiseXor), R(0), U8(2), 132 /* 53 E> */ B(BitwiseXor), R(0), U8(2),
133 /* 57 S> */ B(Return), 133 /* 57 S> */ B(Return),
134 ] 134 ]
135 constant pool: [ 135 constant pool: [
136 ] 136 ]
137 handlers: [ 137 handlers: [
138 ] 138 ]
139 139
140 --- 140 ---
141 snippet: " 141 snippet: "
142 var x = 13; 142 var x = 13;
143 return +x; 143 return +x;
144 " 144 "
145 frame size: 1 145 frame size: 1
146 parameter count: 1 146 parameter count: 1
147 bytecode array length: 11 147 bytecode array length: 11
148 bytecodes: [ 148 bytecodes: [
149 /* 30 E> */ B(StackCheck), 149 /* 30 E> */ B(StackCheck),
150 /* 42 S> */ B(LdaSmi), U8(13), 150 /* 42 S> */ B(LdaSmi), I8(13),
151 B(Star), R(0), 151 B(Star), R(0),
152 /* 46 S> */ B(LdaSmi), U8(1), 152 /* 46 S> */ B(LdaSmi), I8(1),
153 /* 53 E> */ B(Mul), R(0), U8(2), 153 /* 53 E> */ B(Mul), R(0), U8(2),
154 /* 57 S> */ B(Return), 154 /* 57 S> */ B(Return),
155 ] 155 ]
156 constant pool: [ 156 constant pool: [
157 ] 157 ]
158 handlers: [ 158 handlers: [
159 ] 159 ]
160 160
161 --- 161 ---
162 snippet: " 162 snippet: "
163 var x = 13; 163 var x = 13;
164 return -x; 164 return -x;
165 " 165 "
166 frame size: 1 166 frame size: 1
167 parameter count: 1 167 parameter count: 1
168 bytecode array length: 11 168 bytecode array length: 11
169 bytecodes: [ 169 bytecodes: [
170 /* 30 E> */ B(StackCheck), 170 /* 30 E> */ B(StackCheck),
171 /* 42 S> */ B(LdaSmi), U8(13), 171 /* 42 S> */ B(LdaSmi), I8(13),
172 B(Star), R(0), 172 B(Star), R(0),
173 /* 46 S> */ B(LdaSmi), U8(-1), 173 /* 46 S> */ B(LdaSmi), I8(-1),
174 /* 53 E> */ B(Mul), R(0), U8(2), 174 /* 53 E> */ B(Mul), R(0), U8(2),
175 /* 57 S> */ B(Return), 175 /* 57 S> */ B(Return),
176 ] 176 ]
177 constant pool: [ 177 constant pool: [
178 ] 178 ]
179 handlers: [ 179 handlers: [
180 ] 180 ]
181 181
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698