OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 296 |
297 | 297 |
298 // static | 298 // static |
299 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { | 299 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { |
300 return Callable(isolate->builtins()->ArgumentsAdaptorTrampoline(), | 300 return Callable(isolate->builtins()->ArgumentsAdaptorTrampoline(), |
301 ArgumentAdaptorDescriptor(isolate)); | 301 ArgumentAdaptorDescriptor(isolate)); |
302 } | 302 } |
303 | 303 |
304 | 304 |
305 // static | 305 // static |
| 306 Callable CodeFactory::Call(Isolate* isolate) { |
| 307 return Callable(isolate->builtins()->Call(), |
| 308 CallTrampolineDescriptor(isolate)); |
| 309 } |
| 310 |
| 311 |
| 312 // static |
306 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate) { | 313 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate) { |
307 return Callable(isolate->builtins()->InterpreterPushArgsAndCall(), | 314 return Callable(isolate->builtins()->InterpreterPushArgsAndCall(), |
308 InterpreterPushArgsAndCallDescriptor(isolate)); | 315 InterpreterPushArgsAndCallDescriptor(isolate)); |
309 } | 316 } |
310 | 317 |
311 | 318 |
312 // static | 319 // static |
313 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { | 320 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { |
314 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), | 321 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), |
315 InterpreterPushArgsAndConstructDescriptor(isolate)); | 322 InterpreterPushArgsAndConstructDescriptor(isolate)); |
316 } | 323 } |
317 | 324 |
318 | 325 |
319 // static | 326 // static |
320 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { | 327 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { |
321 // TODO(rmcilroy): Deal with runtime functions that return two values. | 328 // TODO(rmcilroy): Deal with runtime functions that return two values. |
322 // Note: If we ever use fpregs in the interpreter then we will need to | 329 // Note: If we ever use fpregs in the interpreter then we will need to |
323 // save fpregs too. | 330 // save fpregs too. |
324 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); | 331 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); |
325 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 332 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
326 } | 333 } |
327 | 334 |
328 } // namespace internal | 335 } // namespace internal |
329 } // namespace v8 | 336 } // namespace v8 |
OLD | NEW |