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

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

Issue 2804813003: [turbofan] Collect and use type feedback on ToNumber. (Closed)
Patch Set: Address Michis feedback. Created 3 years, 8 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: no 6 wrap: no
7 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
(...skipping 18 matching lines...) Expand all
29 ] 29 ]
30 30
31 --- 31 ---
32 snippet: " 32 snippet: "
33 var global = 1; 33 var global = 1;
34 function f() { return global--; } 34 function f() { return global--; }
35 f(); 35 f();
36 " 36 "
37 frame size: 1 37 frame size: 1
38 parameter count: 1 38 parameter count: 1
39 bytecode array length: 16 39 bytecode array length: 17
40 bytecodes: [ 40 bytecodes: [
41 /* 26 E> */ B(StackCheck), 41 /* 26 E> */ B(StackCheck),
42 /* 31 S> */ B(LdaGlobal), U8(0), U8(2), 42 /* 31 S> */ B(LdaGlobal), U8(0), U8(2),
43 B(ToNumber), R(0), 43 B(ToNumber), R(0), U8(6),
44 B(Ldar), R(0), 44 B(Ldar), R(0),
45 B(Dec), U8(6), 45 B(Dec), U8(6),
46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4), 46 /* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4),
47 B(Ldar), R(0), 47 B(Ldar), R(0),
48 /* 48 S> */ B(Return), 48 /* 48 S> */ B(Return),
49 ] 49 ]
50 constant pool: [ 50 constant pool: [
51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"], 51 ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
52 ] 52 ]
53 handlers: [ 53 handlers: [
(...skipping 22 matching lines...) Expand all
76 ] 76 ]
77 77
78 --- 78 ---
79 snippet: " 79 snippet: "
80 unallocated = 1; 80 unallocated = 1;
81 function f() { return unallocated++; } 81 function f() { return unallocated++; }
82 f(); 82 f();
83 " 83 "
84 frame size: 1 84 frame size: 1
85 parameter count: 1 85 parameter count: 1
86 bytecode array length: 16 86 bytecode array length: 17
87 bytecodes: [ 87 bytecodes: [
88 /* 27 E> */ B(StackCheck), 88 /* 27 E> */ B(StackCheck),
89 /* 32 S> */ B(LdaGlobal), U8(0), U8(2), 89 /* 32 S> */ B(LdaGlobal), U8(0), U8(2),
90 B(ToNumber), R(0), 90 B(ToNumber), R(0), U8(6),
91 B(Ldar), R(0), 91 B(Ldar), R(0),
92 B(Inc), U8(6), 92 B(Inc), U8(6),
93 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4), 93 /* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4),
94 B(Ldar), R(0), 94 B(Ldar), R(0),
95 /* 54 S> */ B(Return), 95 /* 54 S> */ B(Return),
96 ] 96 ]
97 constant pool: [ 97 constant pool: [
98 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"], 98 ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
99 ] 99 ]
100 handlers: [ 100 handlers: [
101 ] 101 ]
102 102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698