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/BasicBlockToBoolean.golden

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

Powered by Google App Engine
This is Rietveld 408576698