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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/RemoveRedundantLdar.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 ld_a = 1; 10 var ld_a = 1;
11 while(true) { 11 while(true) {
12 ld_a = ld_a + ld_a; 12 ld_a = ld_a + ld_a;
13 if (ld_a > 10) break; 13 if (ld_a > 10) break;
14 } 14 }
15 return ld_a; 15 return ld_a;
16 " 16 "
17 frame size: 1 17 frame size: 2
18 parameter count: 1 18 parameter count: 1
19 bytecode array length: 28 19 bytecode array length: 36
20 bytecodes: [ 20 bytecodes: [
21 /* 30 E> */ B(StackCheck), 21 /* 30 E> */ B(StackCheck),
22 /* 45 S> */ B(LdaSmi), I8(1), 22 /* 45 S> */ B(LdaConstant), U8(0),
23 B(Star), R(1),
24 B(LdaSmi), I8(1),
23 B(Star), R(0), 25 B(Star), R(0),
24 /* 48 E> */ B(StackCheck), 26 /* 48 E> */ B(StackCheck),
25 /* 64 S> */ B(Ldar), R(0), 27 /* 64 S> */ B(LdaConstant), U8(0),
26 /* 76 E> */ B(Add), R(0), U8(2), 28 B(Star), R(1),
29 B(Ldar), R(0),
30 /* 76 E> */ B(Add), R(0), U8(4),
27 B(Star), R(0), 31 B(Star), R(0),
28 /* 86 S> */ B(LdaSmi), I8(10), 32 /* 86 S> */ B(LdaSmi), I8(10),
29 /* 95 E> */ B(TestGreaterThan), R(0), U8(3), 33 /* 95 E> */ B(TestGreaterThan), R(0), U8(7),
30 B(JumpIfFalse), U8(4), 34 B(JumpIfFalse), U8(4),
31 /* 101 S> */ B(Jump), U8(5), 35 /* 101 S> */ B(Jump), U8(5),
32 B(JumpLoop), U8(17), I8(0), 36 B(JumpLoop), U8(21), I8(0),
33 /* 110 S> */ B(Ldar), R(0), 37 /* 110 S> */ B(Ldar), R(0),
34 /* 123 S> */ B(Return), 38 /* 123 S> */ B(Return),
35 ] 39 ]
36 constant pool: [ 40 constant pool: [
41 ONE_BYTE_INTERNALIZED_STRING_TYPE ["ld_a"],
37 ] 42 ]
38 handlers: [ 43 handlers: [
39 ] 44 ]
40 45
41 --- 46 ---
42 snippet: " 47 snippet: "
43 var ld_a = 1; 48 var ld_a = 1;
44 do { 49 do {
45 ld_a = ld_a + ld_a; 50 ld_a = ld_a + ld_a;
46 if (ld_a > 10) continue; 51 if (ld_a > 10) continue;
47 } while(false); 52 } while(false);
48 return ld_a; 53 return ld_a;
49 " 54 "
50 frame size: 1 55 frame size: 2
51 parameter count: 1 56 parameter count: 1
52 bytecode array length: 24 57 bytecode array length: 33
53 bytecodes: [ 58 bytecodes: [
54 /* 30 E> */ B(StackCheck), 59 /* 30 E> */ B(StackCheck),
55 /* 45 S> */ B(LdaSmi), I8(1), 60 /* 45 S> */ B(LdaConstant), U8(0),
61 B(Star), R(1),
62 B(LdaSmi), I8(1),
56 B(Star), R(0), 63 B(Star), R(0),
57 /* 48 E> */ B(StackCheck), 64 /* 48 E> */ B(StackCheck),
58 /* 55 S> */ B(Nop), 65 /* 55 S> */ B(LdaConstant), U8(0),
59 /* 67 E> */ B(Add), R(0), U8(2), 66 B(Star), R(1),
67 B(Ldar), R(0),
68 /* 67 E> */ B(Add), R(0), U8(4),
60 B(Star), R(0), 69 B(Star), R(0),
61 /* 77 S> */ B(LdaSmi), I8(10), 70 /* 77 S> */ B(LdaSmi), I8(10),
62 /* 86 E> */ B(TestGreaterThan), R(0), U8(3), 71 /* 86 E> */ B(TestGreaterThan), R(0), U8(7),
63 B(JumpIfFalse), U8(4), 72 B(JumpIfFalse), U8(4),
64 /* 92 S> */ B(Jump), U8(2), 73 /* 92 S> */ B(Jump), U8(2),
65 /* 118 S> */ B(Ldar), R(0), 74 /* 118 S> */ B(Ldar), R(0),
66 /* 131 S> */ B(Return), 75 /* 131 S> */ B(Return),
67 ] 76 ]
68 constant pool: [ 77 constant pool: [
78 ONE_BYTE_INTERNALIZED_STRING_TYPE ["ld_a"],
69 ] 79 ]
70 handlers: [ 80 handlers: [
71 ] 81 ]
72 82
73 --- 83 ---
74 snippet: " 84 snippet: "
75 var ld_a = 1; 85 var ld_a = 1;
76 ld_a = ld_a + ld_a; 86 ld_a = ld_a + ld_a;
77 return ld_a; 87 return ld_a;
78 " 88 "
79 frame size: 1 89 frame size: 2
80 parameter count: 1 90 parameter count: 1
81 bytecode array length: 13 91 bytecode array length: 22
82 bytecodes: [ 92 bytecodes: [
83 /* 30 E> */ B(StackCheck), 93 /* 30 E> */ B(StackCheck),
84 /* 45 S> */ B(LdaSmi), I8(1), 94 /* 45 S> */ B(LdaConstant), U8(0),
95 B(Star), R(1),
96 B(LdaSmi), I8(1),
85 B(Star), R(0), 97 B(Star), R(0),
86 /* 50 S> */ B(Nop), 98 /* 50 S> */ B(LdaConstant), U8(0),
87 /* 62 E> */ B(Add), R(0), U8(2), 99 B(Star), R(1),
100 B(Ldar), R(0),
101 /* 62 E> */ B(Add), R(0), U8(4),
88 B(Star), R(0), 102 B(Star), R(0),
89 /* 72 S> */ B(Nop), 103 /* 72 S> */ B(Nop),
90 /* 85 S> */ B(Return), 104 /* 85 S> */ B(Return),
91 ] 105 ]
92 constant pool: [ 106 constant pool: [
107 ONE_BYTE_INTERNALIZED_STRING_TYPE ["ld_a"],
93 ] 108 ]
94 handlers: [ 109 handlers: [
95 ] 110 ]
96 111
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698