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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. 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 a = 1; if (a || a < 0) { return 1; } 10 var a = 1; if (a || a < 0) { return 1; }
11 " 11 "
12 frame size: 1 12 frame size: 2
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 18 14 bytecode array length: 22
15 bytecodes: [ 15 bytecodes: [
16 /* 30 E> */ B(StackCheck), 16 /* 30 E> */ B(StackCheck),
17 /* 42 S> */ B(LdaSmi), I8(1), 17 /* 42 S> */ B(LdaConstant), U8(0),
18 B(Star), R(1),
19 B(LdaSmi), I8(1),
18 B(Star), R(0), 20 B(Star), R(0),
19 /* 45 S> */ B(JumpIfToBooleanTrue), U8(8), 21 /* 45 S> */ B(JumpIfToBooleanTrue), U8(8),
20 B(LdaZero), 22 B(LdaZero),
21 /* 56 E> */ B(TestLessThan), R(0), U8(2), 23 /* 56 E> */ B(TestLessThan), R(0), U8(4),
22 B(JumpIfFalse), U8(5), 24 B(JumpIfFalse), U8(5),
23 /* 63 S> */ B(LdaSmi), I8(1), 25 /* 63 S> */ B(LdaSmi), I8(1),
24 /* 75 S> */ B(Return), 26 /* 75 S> */ B(Return),
25 B(LdaUndefined), 27 B(LdaUndefined),
26 /* 75 S> */ B(Return), 28 /* 75 S> */ B(Return),
27 ] 29 ]
28 constant pool: [ 30 constant pool: [
31 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
29 ] 32 ]
30 handlers: [ 33 handlers: [
31 ] 34 ]
32 35
33 --- 36 ---
34 snippet: " 37 snippet: "
35 var a = 1; if (a && a < 0) { return 1; } 38 var a = 1; if (a && a < 0) { return 1; }
36 " 39 "
37 frame size: 1 40 frame size: 2
38 parameter count: 1 41 parameter count: 1
39 bytecode array length: 18 42 bytecode array length: 22
40 bytecodes: [ 43 bytecodes: [
41 /* 30 E> */ B(StackCheck), 44 /* 30 E> */ B(StackCheck),
42 /* 42 S> */ B(LdaSmi), I8(1), 45 /* 42 S> */ B(LdaConstant), U8(0),
46 B(Star), R(1),
47 B(LdaSmi), I8(1),
43 B(Star), R(0), 48 B(Star), R(0),
44 /* 45 S> */ B(JumpIfToBooleanFalse), U8(11), 49 /* 45 S> */ B(JumpIfToBooleanFalse), U8(11),
45 B(LdaZero), 50 B(LdaZero),
46 /* 56 E> */ B(TestLessThan), R(0), U8(2), 51 /* 56 E> */ B(TestLessThan), R(0), U8(4),
47 B(JumpIfFalse), U8(5), 52 B(JumpIfFalse), U8(5),
48 /* 63 S> */ B(LdaSmi), I8(1), 53 /* 63 S> */ B(LdaSmi), I8(1),
49 /* 75 S> */ B(Return), 54 /* 75 S> */ B(Return),
50 B(LdaUndefined), 55 B(LdaUndefined),
51 /* 75 S> */ B(Return), 56 /* 75 S> */ B(Return),
52 ] 57 ]
53 constant pool: [ 58 constant pool: [
59 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
54 ] 60 ]
55 handlers: [ 61 handlers: [
56 ] 62 ]
57 63
58 --- 64 ---
59 snippet: " 65 snippet: "
60 var a = 1; a = (a || a < 0) ? 2 : 3; 66 var a = 1; a = (a || a < 0) ? 2 : 3;
61 " 67 "
62 frame size: 1 68 frame size: 2
63 parameter count: 1 69 parameter count: 1
64 bytecode array length: 23 70 bytecode array length: 33
65 bytecodes: [ 71 bytecodes: [
66 /* 30 E> */ B(StackCheck), 72 /* 30 E> */ B(StackCheck),
67 /* 42 S> */ B(LdaSmi), I8(1), 73 /* 42 S> */ B(LdaConstant), U8(0),
74 B(Star), R(1),
75 B(LdaSmi), I8(1),
68 B(Star), R(0), 76 B(Star), R(0),
69 /* 45 S> */ B(JumpIfToBooleanTrue), U8(8), 77 /* 45 S> */ B(LdaConstant), U8(0),
78 B(Star), R(1),
79 B(Ldar), R(0),
80 /* 50 E> */ B(JumpIfToBooleanTrue), U8(8),
70 B(LdaZero), 81 B(LdaZero),
71 /* 57 E> */ B(TestLessThan), R(0), U8(2), 82 /* 57 E> */ B(TestLessThan), R(0), U8(4),
72 B(JumpIfFalse), U8(6), 83 B(JumpIfFalse), U8(6),
73 B(LdaSmi), I8(2), 84 B(LdaSmi), I8(2),
74 B(Jump), U8(4), 85 B(Jump), U8(4),
75 B(LdaSmi), I8(3), 86 B(LdaSmi), I8(3),
76 B(Star), R(0), 87 B(Star), R(0),
77 B(LdaUndefined), 88 B(LdaUndefined),
78 /* 71 S> */ B(Return), 89 /* 71 S> */ B(Return),
79 ] 90 ]
80 constant pool: [ 91 constant pool: [
92 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
81 ] 93 ]
82 handlers: [ 94 handlers: [
83 ] 95 ]
84 96
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698