summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden
blob: a316cfdceb942a941e5b9c31315269045e2634eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#
# Autogenerated by generate-bytecode-expectations.
#

---
wrap: no
test function name: test

---
snippet: "
  var test;
  (function() {
    class A {
      constructor(...args) { this.baseArgs = args; }
    }
    class B extends A {}
    test = new B(1, 2, 3).constructor;
  })();
"
frame size: 5
parameter count: 1
bytecode array length: 18
bytecodes: [
  /*   93 E> */ B(CreateRestParameter),
                B(Star), R(2),
                B(Mov), R(closure), R(1),
  /*   93 S> */ B(Ldar), R(1),
                B(GetSuperConstructor), R(4),
                B(Ldar), R(0),
  /*   93 E> */ B(ConstructWithSpread), R(4), R(2), U8(1), U8(0),
  /*   93 S> */ B(Return),
]
constant pool: [
]
handlers: [
]

---
snippet: "
  var test;
  (function() {
    class A {
      constructor(...args) { this.baseArgs = args; }
    }
    class B extends A {
      constructor(...args) { super(1, ...args); }
    }
    test = new B(1, 2, 3).constructor;
  })();
"
frame size: 9
parameter count: 1
bytecode array length: 39
bytecodes: [
  /*  128 E> */ B(CreateRestParameter),
                B(Star), R(3),
                B(Mov), R(closure), R(1),
                B(Mov), R(3), R(2),
  /*  140 S> */ B(Ldar), R(closure),
                B(GetSuperConstructor), R(5),
                B(LdaSmi), I8(1),
                B(Star), R(6),
                B(Ldar), R(0),
                B(Mov), R(3), R(7),
  /*  140 E> */ B(ConstructWithSpread), R(5), R(6), U8(2), U8(0),
                B(Star), R(8),
                B(Ldar), R(this),
                B(ThrowSuperAlreadyCalledIfNotHole),
                B(Mov), R(8), R(this),
                B(Ldar), R(this),
                B(ThrowSuperNotCalledIfHole),
  /*  159 S> */ B(Return),
]
constant pool: [
]
handlers: [
]

---
snippet: "
  var test;
  (function() {
    class A {
      constructor(...args) { this.baseArgs = args; }
    }
    class B extends A {
      constructor(...args) { super(1, ...args, 1); }
    }
    test = new B(1, 2, 3).constructor;
  })();
"
frame size: 11
parameter count: 1
bytecode array length: 118
bytecodes: [
  /*  128 E> */ B(CreateRestParameter),
                B(Star), R(3),
                B(Mov), R(closure), R(1),
                B(Mov), R(3), R(2),
  /*  140 S> */ B(Ldar), R(closure),
                B(GetSuperConstructor), R(5),
                B(CreateEmptyArrayLiteral), U8(0),
                B(Star), R(7),
                B(LdaZero),
                B(Star), R(6),
                B(LdaSmi), I8(1),
                B(StaInArrayLiteral), R(7), R(6), U8(1),
                B(Ldar), R(6),
                B(Inc), U8(3),
  /*  152 S> */ B(Star), R(6),
  /*  152 E> */ B(GetIterator), R(3), U8(4), U8(6),
                B(Mov), R(1), R(4),
                B(JumpIfJSReceiver), U8(7),
                B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
                B(Star), R(9),
                B(LdaNamedProperty), R(9), U8(0), U8(8),
                B(Star), R(8),
                B(CallProperty0), R(8), R(9), U8(14),
                B(Star), R(10),
                B(JumpIfJSReceiver), U8(7),
                B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(10), U8(1),
                B(LdaNamedProperty), R(10), U8(1), U8(16),
                B(JumpIfToBooleanTrue), U8(19),
                B(LdaNamedProperty), R(10), U8(2), U8(10),
                B(StaInArrayLiteral), R(7), R(6), U8(1),
                B(Ldar), R(6),
                B(Inc), U8(3),
                B(Star), R(6),
                B(JumpLoop), U8(33), I8(0),
                B(LdaSmi), I8(1),
                B(StaInArrayLiteral), R(7), R(6), U8(1),
                B(Mov), R(5), R(6),
                B(Mov), R(0), R(8),
  /*  140 E> */ B(CallJSRuntime), U8(%reflect_construct), R(6), U8(3),
                B(Star), R(9),
                B(Ldar), R(this),
                B(ThrowSuperAlreadyCalledIfNotHole),
                B(Mov), R(9), R(this),
                B(Ldar), R(this),
                B(ThrowSuperNotCalledIfHole),
  /*  162 S> */ B(Return),
]
constant pool: [
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
]
handlers: [
]