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

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

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: MIPS64 port Created 3 years, 11 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
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | test/mjsunit/es6/spread-call-new-class.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: test 7 test function name: test
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 var test; 11 var test;
12 (function() { 12 (function() {
13 class A { 13 class A {
14 constructor(...args) { this.baseArgs = args; } 14 constructor(...args) { this.baseArgs = args; }
15 } 15 }
16 class B extends A {} 16 class B extends A {}
17 test = new B(1, 2, 3).constructor; 17 test = new B(1, 2, 3).constructor;
18 })(); 18 })();
19 " 19 "
20 frame size: 7 20 frame size: 4
21 parameter count: 1 21 parameter count: 1
22 bytecode array length: 29 22 bytecode array length: 23
23 bytecodes: [ 23 bytecodes: [
24 B(CreateRestParameter), 24 B(CreateRestParameter),
25 B(Star), R(2), 25 B(Star), R(2),
26 B(Mov), R(closure), R(1), 26 B(Mov), R(closure), R(1),
27 B(Mov), R(new_target), R(0), 27 B(Mov), R(new_target), R(0),
28 B(Ldar), R(new_target), 28 B(Ldar), R(new_target),
29 /* 93 E> */ B(StackCheck), 29 /* 93 E> */ B(StackCheck),
30 /* 93 S> */ B(Ldar), R(1), 30 /* 93 S> */ B(Ldar), R(1),
31 B(GetSuperConstructor), R(3), 31 B(GetSuperConstructor), R(3),
32 B(Mov), R(3), R(4), 32 B(Ldar), R(0),
33 B(Mov), R(0), R(5), 33 /* 93 E> */ B(NewWithSpread), R(3), R(2), U8(1),
34 B(Mov), R(2), R(6),
35 /* 93 E> */ B(NewWithSpread), R(4), U8(3),
36 /* 93 S> */ B(Return), 34 /* 93 S> */ B(Return),
37 ] 35 ]
38 constant pool: [ 36 constant pool: [
39 ] 37 ]
40 handlers: [ 38 handlers: [
41 ] 39 ]
42 40
43 --- 41 ---
44 snippet: " 42 snippet: "
45 var test; 43 var test;
46 (function() { 44 (function() {
47 class A { 45 class A {
48 constructor(...args) { this.baseArgs = args; } 46 constructor(...args) { this.baseArgs = args; }
49 } 47 }
50 class B extends A { 48 class B extends A {
51 constructor(...args) { super(1, ...args); } 49 constructor(...args) { super(1, ...args); }
52 } 50 }
53 test = new B(1, 2, 3).constructor; 51 test = new B(1, 2, 3).constructor;
54 })(); 52 })();
55 " 53 "
56 frame size: 8 54 frame size: 6
57 parameter count: 1 55 parameter count: 1
58 bytecode array length: 62 56 bytecode array length: 59
59 bytecodes: [ 57 bytecodes: [
60 B(CreateRestParameter), 58 B(CreateRestParameter),
61 B(Star), R(2), 59 B(Star), R(2),
62 B(Mov), R(closure), R(1), 60 B(Mov), R(closure), R(1),
63 B(Mov), R(new_target), R(0), 61 B(Mov), R(new_target), R(0),
64 B(Ldar), R(new_target), 62 B(Ldar), R(new_target),
65 /* 128 E> */ B(StackCheck), 63 /* 128 E> */ B(StackCheck),
66 /* 140 S> */ B(Ldar), R(1), 64 /* 140 S> */ B(Ldar), R(1),
67 B(GetSuperConstructor), R(3), 65 B(GetSuperConstructor), R(3),
68 B(LdaSmi), U8(1), 66 B(LdaSmi), U8(1),
69 B(Star), R(6), 67 B(Star), R(4),
70 B(Mov), R(3), R(4), 68 B(Ldar), R(0),
71 B(Mov), R(0), R(5), 69 B(Mov), R(2), R(5),
72 B(Mov), R(2), R(7), 70 /* 140 E> */ B(NewWithSpread), R(3), R(4), U8(2),
73 /* 140 E> */ B(NewWithSpread), R(4), U8(4),
74 B(Star), R(3), 71 B(Star), R(3),
75 B(Ldar), R(this), 72 B(Ldar), R(this),
76 B(JumpIfNotHole), U8(4), 73 B(JumpIfNotHole), U8(4),
77 B(Jump), U8(7), 74 B(Jump), U8(7),
78 /* 140 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0 ), U8(0), 75 /* 140 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0 ), U8(0),
79 B(Mov), R(3), R(this), 76 B(Mov), R(3), R(this),
80 B(Ldar), R(this), 77 B(Ldar), R(this),
81 B(JumpIfNotHole), U8(11), 78 B(JumpIfNotHole), U8(11),
82 B(LdaConstant), U8(0), 79 B(LdaConstant), U8(0),
83 B(Star), R(3), 80 B(Star), R(3),
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 /* 162 S> */ B(Return), 143 /* 162 S> */ B(Return),
147 ] 144 ]
148 constant pool: [ 145 constant pool: [
149 CONSTANT_ELEMENTS_PAIR_TYPE, 146 CONSTANT_ELEMENTS_PAIR_TYPE,
150 CONSTANT_ELEMENTS_PAIR_TYPE, 147 CONSTANT_ELEMENTS_PAIR_TYPE,
151 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"], 148 ONE_BYTE_INTERNALIZED_STRING_TYPE ["this"],
152 ] 149 ]
153 handlers: [ 150 handlers: [
154 ] 151 ]
155 152
OLDNEW
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | test/mjsunit/es6/spread-call-new-class.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698