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

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

Issue 2489513005: [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. (Closed)
Patch Set: Created 4 years, 1 month 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: "
11 function bar() { this.value = 0; } 11 function bar() { this.value = 0; }
12 function f() { return new bar(); } 12 function f() { return new bar(); }
13 f(); 13 f();
14 " 14 "
15 frame size: 1 15 frame size: 1
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 12 17 bytecode array length: 11
18 bytecodes: [ 18 bytecodes: [
19 /* 45 E> */ B(StackCheck), 19 /* 45 E> */ B(StackCheck),
20 /* 50 S> */ B(LdrGlobal), U8(4), R(0), 20 /* 50 S> */ B(LdaGlobal), U8(4),
21 B(Ldar), R(0), 21 B(Star), R(0),
22 /* 57 E> */ B(New), R(0), R(0), U8(0), U8(2), 22 /* 57 E> */ B(New), R(0), R(0), U8(0), U8(2),
23 /* 68 S> */ B(Return), 23 /* 68 S> */ B(Return),
24 ] 24 ]
25 constant pool: [ 25 constant pool: [
26 ] 26 ]
27 handlers: [ 27 handlers: [
28 ] 28 ]
29 29
30 --- 30 ---
31 snippet: " 31 snippet: "
32 function bar(x) { this.value = 18; this.x = x;} 32 function bar(x) { this.value = 18; this.x = x;}
33 function f() { return new bar(3); } 33 function f() { return new bar(3); }
34 f(); 34 f();
35 " 35 "
36 frame size: 2 36 frame size: 2
37 parameter count: 1 37 parameter count: 1
38 bytecode array length: 16 38 bytecode array length: 17
39 bytecodes: [ 39 bytecodes: [
40 /* 58 E> */ B(StackCheck), 40 /* 58 E> */ B(StackCheck),
41 /* 63 S> */ B(LdrGlobal), U8(4), R(0), 41 /* 63 S> */ B(LdaGlobal), U8(4),
42 B(Star), R(0),
42 B(LdaSmi), U8(3), 43 B(LdaSmi), U8(3),
43 B(Star), R(1), 44 B(Star), R(1),
44 B(Ldar), R(0), 45 B(Ldar), R(0),
45 /* 70 E> */ B(New), R(0), R(1), U8(1), U8(2), 46 /* 70 E> */ B(New), R(0), R(1), U8(1), U8(2),
46 /* 82 S> */ B(Return), 47 /* 82 S> */ B(Return),
47 ] 48 ]
48 constant pool: [ 49 constant pool: [
49 ] 50 ]
50 handlers: [ 51 handlers: [
51 ] 52 ]
52 53
53 --- 54 ---
54 snippet: " 55 snippet: "
55 function bar(w, x, y, z) { 56 function bar(w, x, y, z) {
56 this.value = 18; 57 this.value = 18;
57 this.x = x; 58 this.x = x;
58 this.y = y; 59 this.y = y;
59 this.z = z; 60 this.z = z;
60 } 61 }
61 function f() { return new bar(3, 4, 5); } 62 function f() { return new bar(3, 4, 5); }
62 f(); 63 f();
63 " 64 "
64 frame size: 4 65 frame size: 4
65 parameter count: 1 66 parameter count: 1
66 bytecode array length: 24 67 bytecode array length: 25
67 bytecodes: [ 68 bytecodes: [
68 /* 100 E> */ B(StackCheck), 69 /* 100 E> */ B(StackCheck),
69 /* 105 S> */ B(LdrGlobal), U8(4), R(0), 70 /* 105 S> */ B(LdaGlobal), U8(4),
71 B(Star), R(0),
70 B(LdaSmi), U8(3), 72 B(LdaSmi), U8(3),
71 B(Star), R(1), 73 B(Star), R(1),
72 B(LdaSmi), U8(4), 74 B(LdaSmi), U8(4),
73 B(Star), R(2), 75 B(Star), R(2),
74 B(LdaSmi), U8(5), 76 B(LdaSmi), U8(5),
75 B(Star), R(3), 77 B(Star), R(3),
76 B(Ldar), R(0), 78 B(Ldar), R(0),
77 /* 112 E> */ B(New), R(0), R(1), U8(3), U8(2), 79 /* 112 E> */ B(New), R(0), R(1), U8(3), U8(2),
78 /* 130 S> */ B(Return), 80 /* 130 S> */ B(Return),
79 ] 81 ]
80 constant pool: [ 82 constant pool: [
81 ] 83 ]
82 handlers: [ 84 handlers: [
83 ] 85 ]
84 86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698