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

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

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reflow REPEAT_249 macro. 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: number
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 var a = 1; if (a || a < 0) { return 1; }
13 "
14 frame size: 2
15 parameter count: 1
16 bytecode array length: 21
17 bytecodes: [
18 B(StackCheck),
19 B(LdaSmi8), U8(1),
20 B(Star), R(0),
21 B(JumpIfToBooleanTrue), U8(9),
22 B(Ldar), R(0),
23 B(Star), R(1),
24 B(LdaZero),
25 B(TestLessThan), R(1),
26 B(JumpIfToBooleanFalse), U8(5),
27 B(LdaSmi8), U8(1),
28 B(Return),
29 B(LdaUndefined),
30 B(Return),
31 ]
32 constant pool: [
33 ]
34 handlers: [
35 ]
36
37 ---
38 snippet: "
39 var a = 1; if (a && a < 0) { return 1; }
40 "
41 frame size: 2
42 parameter count: 1
43 bytecode array length: 21
44 bytecodes: [
45 B(StackCheck),
46 B(LdaSmi8), U8(1),
47 B(Star), R(0),
48 B(JumpIfToBooleanFalse), U8(9),
49 B(Ldar), R(0),
50 B(Star), R(1),
51 B(LdaZero),
52 B(TestLessThan), R(1),
53 B(JumpIfToBooleanFalse), U8(5),
54 B(LdaSmi8), U8(1),
55 B(Return),
56 B(LdaUndefined),
57 B(Return),
58 ]
59 constant pool: [
60 ]
61 handlers: [
62 ]
63
64 ---
65 snippet: "
66 var a = 1; a = (a || a < 0) ? 2 : 3;
67 "
68 frame size: 2
69 parameter count: 1
70 bytecode array length: 26
71 bytecodes: [
72 B(StackCheck),
73 B(LdaSmi8), U8(1),
74 B(Star), R(0),
75 B(JumpIfToBooleanTrue), U8(9),
76 B(Ldar), R(0),
77 B(Star), R(1),
78 B(LdaZero),
79 B(TestLessThan), R(1),
80 B(JumpIfToBooleanFalse), U8(6),
81 B(LdaSmi8), U8(2),
82 B(Jump), U8(4),
83 B(LdaSmi8), U8(3),
84 B(Star), R(0),
85 B(LdaUndefined),
86 B(Return),
87 ]
88 constant pool: [
89 ]
90 handlers: [
91 ]
92
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698