| 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/builtins/builtins-descriptors.h" | 8 #include "src/builtins/builtins-descriptors.h" |
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 } | 403 } |
| 404 | 404 |
| 405 // static | 405 // static |
| 406 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode, | 406 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode, |
| 407 TailCallMode tail_call_mode) { | 407 TailCallMode tail_call_mode) { |
| 408 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode), | 408 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode), |
| 409 CallTrampolineDescriptor(isolate)); | 409 CallTrampolineDescriptor(isolate)); |
| 410 } | 410 } |
| 411 | 411 |
| 412 // static | 412 // static |
| 413 Callable CodeFactory::CallVarargs(Isolate* isolate) { |
| 414 return Callable(isolate->builtins()->CallVarargs(), |
| 415 CallVarargsDescriptor(isolate)); |
| 416 } |
| 417 |
| 418 // static |
| 413 Callable CodeFactory::CallForwardVarargs(Isolate* isolate) { | 419 Callable CodeFactory::CallForwardVarargs(Isolate* isolate) { |
| 414 return Callable(isolate->builtins()->CallForwardVarargs(), | 420 return Callable(isolate->builtins()->CallForwardVarargs(), |
| 415 CallForwardVarargsDescriptor(isolate)); | 421 CallForwardVarargsDescriptor(isolate)); |
| 416 } | 422 } |
| 417 | 423 |
| 418 // static | 424 // static |
| 419 Callable CodeFactory::CallFunctionForwardVarargs(Isolate* isolate) { | 425 Callable CodeFactory::CallFunctionForwardVarargs(Isolate* isolate) { |
| 420 return Callable(isolate->builtins()->CallFunctionForwardVarargs(), | 426 return Callable(isolate->builtins()->CallFunctionForwardVarargs(), |
| 421 CallForwardVarargsDescriptor(isolate)); | 427 CallForwardVarargsDescriptor(isolate)); |
| 422 } | 428 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 433 ConstructTrampolineDescriptor(isolate)); | 439 ConstructTrampolineDescriptor(isolate)); |
| 434 } | 440 } |
| 435 | 441 |
| 436 // static | 442 // static |
| 437 Callable CodeFactory::ConstructFunction(Isolate* isolate) { | 443 Callable CodeFactory::ConstructFunction(Isolate* isolate) { |
| 438 return Callable(isolate->builtins()->ConstructFunction(), | 444 return Callable(isolate->builtins()->ConstructFunction(), |
| 439 ConstructTrampolineDescriptor(isolate)); | 445 ConstructTrampolineDescriptor(isolate)); |
| 440 } | 446 } |
| 441 | 447 |
| 442 // static | 448 // static |
| 449 Callable CodeFactory::ConstructVarargs(Isolate* isolate) { |
| 450 return Callable(isolate->builtins()->ConstructVarargs(), |
| 451 ConstructVarargsDescriptor(isolate)); |
| 452 } |
| 453 |
| 454 // static |
| 443 Callable CodeFactory::ConstructForwardVarargs(Isolate* isolate) { | 455 Callable CodeFactory::ConstructForwardVarargs(Isolate* isolate) { |
| 444 return Callable(isolate->builtins()->ConstructForwardVarargs(), | 456 return Callable(isolate->builtins()->ConstructForwardVarargs(), |
| 445 ConstructForwardVarargsDescriptor(isolate)); | 457 ConstructForwardVarargsDescriptor(isolate)); |
| 446 } | 458 } |
| 447 | 459 |
| 448 // static | 460 // static |
| 449 Callable CodeFactory::ConstructFunctionForwardVarargs(Isolate* isolate) { | 461 Callable CodeFactory::ConstructFunctionForwardVarargs(Isolate* isolate) { |
| 450 return Callable(isolate->builtins()->ConstructFunctionForwardVarargs(), | 462 return Callable(isolate->builtins()->ConstructFunctionForwardVarargs(), |
| 451 ConstructForwardVarargsDescriptor(isolate)); | 463 ConstructForwardVarargsDescriptor(isolate)); |
| 452 } | 464 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 } | 522 } |
| 511 | 523 |
| 512 // static | 524 // static |
| 513 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 525 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
| 514 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 526 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
| 515 BuiltinDescriptor(isolate)); | 527 BuiltinDescriptor(isolate)); |
| 516 } | 528 } |
| 517 | 529 |
| 518 } // namespace internal | 530 } // namespace internal |
| 519 } // namespace v8 | 531 } // namespace v8 |
| OLD | NEW |