| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 160 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
| 161 static Callable CallWithSpread(Isolate* isolate); | 161 static Callable CallWithSpread(Isolate* isolate); |
| 162 static Callable CallFunction( | 162 static Callable CallFunction( |
| 163 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 163 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
| 164 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 164 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
| 165 static Callable CallForwardVarargs(Isolate* isolate); | 165 static Callable CallForwardVarargs(Isolate* isolate); |
| 166 static Callable CallFunctionForwardVarargs(Isolate* isolate); | 166 static Callable CallFunctionForwardVarargs(Isolate* isolate); |
| 167 static Callable Construct(Isolate* isolate); | 167 static Callable Construct(Isolate* isolate); |
| 168 static Callable ConstructWithSpread(Isolate* isolate); | 168 static Callable ConstructWithSpread(Isolate* isolate); |
| 169 static Callable ConstructFunction(Isolate* isolate); | 169 static Callable ConstructFunction(Isolate* isolate); |
| 170 static Callable ConstructForwardVarargs(Isolate* isolate); |
| 171 static Callable ConstructFunctionForwardVarargs(Isolate* isolate); |
| 170 static Callable CreateIterResultObject(Isolate* isolate); | 172 static Callable CreateIterResultObject(Isolate* isolate); |
| 171 static Callable HasProperty(Isolate* isolate); | 173 static Callable HasProperty(Isolate* isolate); |
| 172 static Callable ForInFilter(Isolate* isolate); | 174 static Callable ForInFilter(Isolate* isolate); |
| 173 | 175 |
| 174 static Callable InterpreterPushArgsThenCall(Isolate* isolate, | 176 static Callable InterpreterPushArgsThenCall(Isolate* isolate, |
| 175 ConvertReceiverMode receiver_mode, | 177 ConvertReceiverMode receiver_mode, |
| 176 TailCallMode tail_call_mode, | 178 TailCallMode tail_call_mode, |
| 177 InterpreterPushArgsMode mode); | 179 InterpreterPushArgsMode mode); |
| 178 static Callable InterpreterPushArgsThenConstruct( | 180 static Callable InterpreterPushArgsThenConstruct( |
| 179 Isolate* isolate, InterpreterPushArgsMode mode); | 181 Isolate* isolate, InterpreterPushArgsMode mode); |
| 180 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate); | 182 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate); |
| 181 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 183 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
| 182 static Callable InterpreterOnStackReplacement(Isolate* isolate); | 184 static Callable InterpreterOnStackReplacement(Isolate* isolate); |
| 183 | 185 |
| 184 static Callable ArrayConstructor(Isolate* isolate); | 186 static Callable ArrayConstructor(Isolate* isolate); |
| 185 static Callable ArrayPop(Isolate* isolate); | 187 static Callable ArrayPop(Isolate* isolate); |
| 186 static Callable ArrayPush(Isolate* isolate); | 188 static Callable ArrayPush(Isolate* isolate); |
| 187 static Callable FunctionPrototypeBind(Isolate* isolate); | 189 static Callable FunctionPrototypeBind(Isolate* isolate); |
| 188 static Callable PromiseHandleReject(Isolate* isolate); | 190 static Callable PromiseHandleReject(Isolate* isolate); |
| 189 | 191 |
| 190 static Callable AsyncGeneratorResolve(Isolate* isolate); | 192 static Callable AsyncGeneratorResolve(Isolate* isolate); |
| 191 static Callable AsyncGeneratorReject(Isolate* isolate); | 193 static Callable AsyncGeneratorReject(Isolate* isolate); |
| 192 static Callable AsyncGeneratorResumeNext(Isolate* isolate); | 194 static Callable AsyncGeneratorResumeNext(Isolate* isolate); |
| 193 }; | 195 }; |
| 194 | 196 |
| 195 } // namespace internal | 197 } // namespace internal |
| 196 } // namespace v8 | 198 } // namespace v8 |
| 197 | 199 |
| 198 #endif // V8_CODE_FACTORY_H_ | 200 #endif // V8_CODE_FACTORY_H_ |
| OLD | NEW |