| 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 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 | 626 |
| 627 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 627 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 628 descriptor->Initialize( | 628 descriptor->Initialize( |
| 629 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); | 629 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); |
| 630 } | 630 } |
| 631 | 631 |
| 632 | 632 |
| 633 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} | 633 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
| 634 | 634 |
| 635 | 635 |
| 636 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {} |
| 637 |
| 638 |
| 636 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 639 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 637 NumberToStringDescriptor call_descriptor(isolate()); | 640 NumberToStringDescriptor call_descriptor(isolate()); |
| 638 descriptor->Initialize( | 641 descriptor->Initialize( |
| 639 Runtime::FunctionForId(Runtime::kNumberToStringRT)->entry); | 642 Runtime::FunctionForId(Runtime::kNumberToStringRT)->entry); |
| 640 } | 643 } |
| 641 | 644 |
| 642 | 645 |
| 643 void FastCloneShallowArrayStub::InitializeDescriptor( | 646 void FastCloneShallowArrayStub::InitializeDescriptor( |
| 644 CodeStubDescriptor* descriptor) { | 647 CodeStubDescriptor* descriptor) { |
| 645 FastCloneShallowArrayDescriptor call_descriptor(isolate()); | 648 FastCloneShallowArrayDescriptor call_descriptor(isolate()); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 CodeStubDescriptor* descriptor) { | 711 CodeStubDescriptor* descriptor) { |
| 709 descriptor->Initialize(FUNCTION_ADDR(BinaryOpIC_MissWithAllocationSite)); | 712 descriptor->Initialize(FUNCTION_ADDR(BinaryOpIC_MissWithAllocationSite)); |
| 710 } | 713 } |
| 711 | 714 |
| 712 | 715 |
| 713 void StringAddStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 716 void StringAddStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 714 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAddRT)->entry); | 717 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAddRT)->entry); |
| 715 } | 718 } |
| 716 | 719 |
| 717 | 720 |
| 721 void TypeofStub::GenerateAheadOfTime(Isolate* isolate) { |
| 722 TypeofStub stub(isolate); |
| 723 stub.GetCode(); |
| 724 } |
| 725 |
| 726 |
| 718 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 727 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
| 719 CreateAllocationSiteStub stub(isolate); | 728 CreateAllocationSiteStub stub(isolate); |
| 720 stub.GetCode(); | 729 stub.GetCode(); |
| 721 } | 730 } |
| 722 | 731 |
| 723 | 732 |
| 724 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) { | 733 void CreateWeakCellStub::GenerateAheadOfTime(Isolate* isolate) { |
| 725 CreateWeakCellStub stub(isolate); | 734 CreateWeakCellStub stub(isolate); |
| 726 stub.GetCode(); | 735 stub.GetCode(); |
| 727 } | 736 } |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 } | 988 } |
| 980 | 989 |
| 981 | 990 |
| 982 InternalArrayConstructorStub::InternalArrayConstructorStub( | 991 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 983 Isolate* isolate) : PlatformCodeStub(isolate) { | 992 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 984 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 993 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 985 } | 994 } |
| 986 | 995 |
| 987 | 996 |
| 988 } } // namespace v8::internal | 997 } } // namespace v8::internal |
| OLD | NEW |