OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CODE_FACTORY_H_ | 5 #ifndef V8_CODE_FACTORY_H_ |
6 #define V8_CODE_FACTORY_H_ | 6 #define V8_CODE_FACTORY_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/callable.h" | 10 #include "src/callable.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 static Callable AllocateHeapNumber(Isolate* isolate); | 139 static Callable AllocateHeapNumber(Isolate* isolate); |
140 | 140 |
141 static Callable ArgumentAdaptor(Isolate* isolate); | 141 static Callable ArgumentAdaptor(Isolate* isolate); |
142 static Callable Call(Isolate* isolate, | 142 static Callable Call(Isolate* isolate, |
143 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 143 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
144 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 144 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
145 static Callable CallWithSpread(Isolate* isolate); | 145 static Callable CallWithSpread(Isolate* isolate); |
146 static Callable CallFunction( | 146 static Callable CallFunction( |
147 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 147 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
148 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 148 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
| 149 static Callable CallVarargs(Isolate* isolate); |
149 static Callable CallForwardVarargs(Isolate* isolate); | 150 static Callable CallForwardVarargs(Isolate* isolate); |
150 static Callable CallFunctionForwardVarargs(Isolate* isolate); | 151 static Callable CallFunctionForwardVarargs(Isolate* isolate); |
151 static Callable Construct(Isolate* isolate); | 152 static Callable Construct(Isolate* isolate); |
152 static Callable ConstructWithSpread(Isolate* isolate); | 153 static Callable ConstructWithSpread(Isolate* isolate); |
153 static Callable ConstructFunction(Isolate* isolate); | 154 static Callable ConstructFunction(Isolate* isolate); |
| 155 static Callable ConstructVarargs(Isolate* isolate); |
154 static Callable ConstructForwardVarargs(Isolate* isolate); | 156 static Callable ConstructForwardVarargs(Isolate* isolate); |
155 static Callable ConstructFunctionForwardVarargs(Isolate* isolate); | 157 static Callable ConstructFunctionForwardVarargs(Isolate* isolate); |
156 static Callable CreateIterResultObject(Isolate* isolate); | 158 static Callable CreateIterResultObject(Isolate* isolate); |
157 static Callable HasProperty(Isolate* isolate); | 159 static Callable HasProperty(Isolate* isolate); |
158 static Callable ForInFilter(Isolate* isolate); | 160 static Callable ForInFilter(Isolate* isolate); |
159 | 161 |
160 static Callable InterpreterPushArgsThenCall(Isolate* isolate, | 162 static Callable InterpreterPushArgsThenCall(Isolate* isolate, |
161 ConvertReceiverMode receiver_mode, | 163 ConvertReceiverMode receiver_mode, |
162 TailCallMode tail_call_mode, | 164 TailCallMode tail_call_mode, |
163 InterpreterPushArgsMode mode); | 165 InterpreterPushArgsMode mode); |
164 static Callable InterpreterPushArgsThenConstruct( | 166 static Callable InterpreterPushArgsThenConstruct( |
165 Isolate* isolate, InterpreterPushArgsMode mode); | 167 Isolate* isolate, InterpreterPushArgsMode mode); |
166 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate); | 168 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate); |
167 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 169 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
168 static Callable InterpreterOnStackReplacement(Isolate* isolate); | 170 static Callable InterpreterOnStackReplacement(Isolate* isolate); |
169 | 171 |
170 static Callable ArrayConstructor(Isolate* isolate); | 172 static Callable ArrayConstructor(Isolate* isolate); |
171 static Callable ArrayPop(Isolate* isolate); | 173 static Callable ArrayPop(Isolate* isolate); |
172 static Callable ArrayPush(Isolate* isolate); | 174 static Callable ArrayPush(Isolate* isolate); |
173 static Callable ArrayShift(Isolate* isolate); | 175 static Callable ArrayShift(Isolate* isolate); |
174 static Callable FunctionPrototypeBind(Isolate* isolate); | 176 static Callable FunctionPrototypeBind(Isolate* isolate); |
175 }; | 177 }; |
176 | 178 |
177 } // namespace internal | 179 } // namespace internal |
178 } // namespace v8 | 180 } // namespace v8 |
179 | 181 |
180 #endif // V8_CODE_FACTORY_H_ | 182 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |