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

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

Issue 1985753002: [interpreter] Introduce fused bytecodes for common sequences. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: no 8 wrap: no
9 test function name: f 9 test function name: f
10 10
11 --- 11 ---
12 snippet: " 12 snippet: "
13 function bar() { this.value = 0; } 13 function bar() { this.value = 0; }
14 function f() { return new bar(); } 14 function f() { return new bar(); }
15 f(); 15 f();
16 " 16 "
17 frame size: 1 17 frame size: 1
18 parameter count: 1 18 parameter count: 1
19 bytecode array length: 11 19 bytecode array length: 12
20 bytecodes: [ 20 bytecodes: [
21 /* 45 E> */ B(StackCheck), 21 /* 45 E> */ B(StackCheck),
22 /* 50 S> */ B(LdaGlobal), U8(0), U8(3), 22 /* 50 S> */ B(LdrGlobal), U8(0), U8(3), R(0),
23 B(Star), R(0), 23 B(Ldar), R(0),
24 /* 57 E> */ B(New), R(0), R(0), U8(0), 24 /* 57 E> */ B(New), R(0), R(0), U8(0),
25 /* 68 S> */ B(Return), 25 /* 68 S> */ B(Return),
26 ] 26 ]
27 constant pool: [ 27 constant pool: [
28 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 28 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
29 ] 29 ]
30 handlers: [ 30 handlers: [
31 ] 31 ]
32 32
33 --- 33 ---
34 snippet: " 34 snippet: "
35 function bar(x) { this.value = 18; this.x = x;} 35 function bar(x) { this.value = 18; this.x = x;}
36 function f() { return new bar(3); } 36 function f() { return new bar(3); }
37 f(); 37 f();
38 " 38 "
39 frame size: 2 39 frame size: 2
40 parameter count: 1 40 parameter count: 1
41 bytecode array length: 17 41 bytecode array length: 16
42 bytecodes: [ 42 bytecodes: [
43 /* 58 E> */ B(StackCheck), 43 /* 58 E> */ B(StackCheck),
44 /* 63 S> */ B(LdaGlobal), U8(0), U8(3), 44 /* 63 S> */ B(LdrGlobal), U8(0), U8(3), R(0),
45 B(Star), R(0),
46 B(LdaSmi), U8(3), 45 B(LdaSmi), U8(3),
47 B(Star), R(1), 46 B(Star), R(1),
48 /* 70 E> */ B(Ldar), R(0), 47 /* 70 E> */ B(Ldar), R(0),
49 B(New), R(0), R(1), U8(1), 48 B(New), R(0), R(1), U8(1),
50 /* 82 S> */ B(Return), 49 /* 82 S> */ B(Return),
51 ] 50 ]
52 constant pool: [ 51 constant pool: [
53 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 52 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
54 ] 53 ]
55 handlers: [ 54 handlers: [
56 ] 55 ]
57 56
58 --- 57 ---
59 snippet: " 58 snippet: "
60 function bar(w, x, y, z) { 59 function bar(w, x, y, z) {
61 this.value = 18; 60 this.value = 18;
62 this.x = x; 61 this.x = x;
63 this.y = y; 62 this.y = y;
64 this.z = z; 63 this.z = z;
65 } 64 }
66 function f() { return new bar(3, 4, 5); } 65 function f() { return new bar(3, 4, 5); }
67 f(); 66 f();
68 " 67 "
69 frame size: 4 68 frame size: 4
70 parameter count: 1 69 parameter count: 1
71 bytecode array length: 25 70 bytecode array length: 24
72 bytecodes: [ 71 bytecodes: [
73 /* 100 E> */ B(StackCheck), 72 /* 100 E> */ B(StackCheck),
74 /* 105 S> */ B(LdaGlobal), U8(0), U8(3), 73 /* 105 S> */ B(LdrGlobal), U8(0), U8(3), R(0),
75 B(Star), R(0),
76 B(LdaSmi), U8(3), 74 B(LdaSmi), U8(3),
77 B(Star), R(1), 75 B(Star), R(1),
78 B(LdaSmi), U8(4), 76 B(LdaSmi), U8(4),
79 B(Star), R(2), 77 B(Star), R(2),
80 B(LdaSmi), U8(5), 78 B(LdaSmi), U8(5),
81 B(Star), R(3), 79 B(Star), R(3),
82 /* 112 E> */ B(Ldar), R(0), 80 /* 112 E> */ B(Ldar), R(0),
83 B(New), R(0), R(1), U8(3), 81 B(New), R(0), R(1), U8(3),
84 /* 130 S> */ B(Return), 82 /* 130 S> */ B(Return),
85 ] 83 ]
86 constant pool: [ 84 constant pool: [
87 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 85 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
88 ] 86 ]
89 handlers: [ 87 handlers: [
90 ] 88 ]
91 89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698