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

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

Issue 1805503003: [Interpreter] Add bytecode generator expectations for super calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
(Empty)
1 #
2 # Autogenerated by generate-bytecode-expectations.
3 #
4
5 ---
6 pool type: mixed
7 execute: yes
8 wrap: no
9 test function name: test
10
11 ---
12 snippet: "
13 var test;
14 (function() {
15 class A {
16 method(x) { return 2; }
17 }
18 class B extends A {
19 method(x) { return super.method() + 1; }
20 }
21 test = new B().method;
22 test();
23 })();
24 "
25 frame size: 7
26 parameter count: 2
27 bytecode array length: 57
28 bytecodes: [
29 B(Ldar), R(closure),
30 B(Star), R(0),
31 B(StackCheck),
32 B(Ldar), R(this),
33 B(Star), R(3),
34 B(Ldar), R(0),
35 B(JumpIfNotHole), U8(11),
36 B(LdaConstant), U8(0),
37 B(Star), R(6),
38 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
39 B(Star), R(6),
40 B(LdaConstant), U8(1),
41 B(KeyedLoadIC), R(6), U8(3),
42 B(Star), R(4),
43 B(LdaConstant), U8(2),
44 B(Star), R(5),
45 B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3),
46 B(Mov), R(3), R(2),
47 B(Star), R(1),
48 B(Call), R(1), R(2), U8(1), U8(1),
49 B(Star), R(3),
50 B(LdaSmi8), U8(1),
51 B(Add), R(3),
52 B(Return),
53 ]
54 constant pool: [
55 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
56 InstanceType::SYMBOL_TYPE,
57 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
58 ]
59 handlers: [
60 ]
61
62 ---
63 snippet: "
64 var test;
65 (function() {
66 class A {
67 constructor() { this.x_ = 1; }
68 }
69 class B extends A {
70 constructor() { super(); this.y_ = 2; }
71 }
72 test = new B().constructor;
73 })();
74 "
75 frame size: 4
76 parameter count: 1
77 bytecode array length: 102
78 bytecodes: [
79 B(Ldar), R(closure),
80 B(Star), R(1),
81 B(Ldar), R(new_target),
82 B(Star), R(0),
83 B(StackCheck),
84 B(Ldar), R(1),
85 B(JumpIfNotHole), U8(11),
86 B(LdaConstant), U8(0),
87 B(Star), R(3),
88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
89 B(Star), R(2),
90 B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1),
91 B(Star), R(2),
92 B(Ldar), R(0),
93 B(JumpIfNotHole), U8(11),
94 B(LdaConstant), U8(1),
95 B(Star), R(3),
96 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
97 B(New), R(2), R(0), U8(0),
98 B(Star), R(2),
99 B(Ldar), R(this),
100 B(JumpIfNotHole), U8(4),
101 B(Jump), U8(11),
102 B(LdaConstant), U8(2),
103 B(Star), R(3),
104 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
105 B(Ldar), R(2),
106 B(Star), R(this),
107 B(JumpIfNotHole), U8(11),
108 B(LdaConstant), U8(2),
109 B(Star), R(2),
110 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
111 B(Star), R(2),
112 B(LdaSmi8), U8(2),
113 B(StoreICStrict), R(2), U8(3), U8(4),
114 B(Ldar), R(this),
115 B(JumpIfNotHole), U8(11),
116 B(LdaConstant), U8(2),
117 B(Star), R(2),
118 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
119 B(Return),
120 ]
121 constant pool: [
122 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
123 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
124 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
125 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
126 ]
127 handlers: [
128 ]
129
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698