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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 | 350 |
351 | 351 |
352 // static | 352 // static |
353 Callable CodeFactory::ConstructFunction(Isolate* isolate) { | 353 Callable CodeFactory::ConstructFunction(Isolate* isolate) { |
354 return Callable(isolate->builtins()->ConstructFunction(), | 354 return Callable(isolate->builtins()->ConstructFunction(), |
355 ConstructTrampolineDescriptor(isolate)); | 355 ConstructTrampolineDescriptor(isolate)); |
356 } | 356 } |
357 | 357 |
358 | 358 |
359 // static | 359 // static |
360 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate) { | 360 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, |
361 return Callable(isolate->builtins()->InterpreterPushArgsAndCall(), | 361 TailCallMode tail_call_mode) { |
362 InterpreterPushArgsAndCallDescriptor(isolate)); | 362 return Callable( |
| 363 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), |
| 364 InterpreterPushArgsAndCallDescriptor(isolate)); |
363 } | 365 } |
364 | 366 |
365 | 367 |
366 // static | 368 // static |
367 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { | 369 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { |
368 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), | 370 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), |
369 InterpreterPushArgsAndConstructDescriptor(isolate)); | 371 InterpreterPushArgsAndConstructDescriptor(isolate)); |
370 } | 372 } |
371 | 373 |
372 | 374 |
373 // static | 375 // static |
374 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 376 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
375 // Note: If we ever use fpregs in the interpreter then we will need to | 377 // Note: If we ever use fpregs in the interpreter then we will need to |
376 // save fpregs too. | 378 // save fpregs too. |
377 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 379 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
378 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 380 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
379 } | 381 } |
380 | 382 |
381 } // namespace internal | 383 } // namespace internal |
382 } // namespace v8 | 384 } // namespace v8 |
OLD | NEW |