| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 CodeStubDescriptor* descriptor) { | 613 CodeStubDescriptor* descriptor) { |
| 614 descriptor->Initialize(FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); | 614 descriptor->Initialize(FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); |
| 615 } | 615 } |
| 616 | 616 |
| 617 | 617 |
| 618 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() { | 618 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() { |
| 619 return StoreTransitionDescriptor(isolate()); | 619 return StoreTransitionDescriptor(isolate()); |
| 620 } | 620 } |
| 621 | 621 |
| 622 | 622 |
| 623 static void InitializeVectorLoadStub(Isolate* isolate, | |
| 624 CodeStubDescriptor* descriptor, | |
| 625 Address deoptimization_handler) { | |
| 626 DCHECK(FLAG_vector_ics); | |
| 627 descriptor->Initialize(deoptimization_handler); | |
| 628 } | |
| 629 | |
| 630 | |
| 631 void VectorLoadStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | |
| 632 InitializeVectorLoadStub(isolate(), descriptor, | |
| 633 FUNCTION_ADDR(LoadIC_MissFromStubFailure)); | |
| 634 } | |
| 635 | |
| 636 | |
| 637 void VectorKeyedLoadStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | |
| 638 InitializeVectorLoadStub(isolate(), descriptor, | |
| 639 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure)); | |
| 640 } | |
| 641 | |
| 642 | |
| 643 void MegamorphicLoadStub::InitializeDescriptor(CodeStubDescriptor* d) {} | 623 void MegamorphicLoadStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
| 644 | 624 |
| 645 | 625 |
| 646 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 626 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 647 descriptor->Initialize( | 627 descriptor->Initialize( |
| 648 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); | 628 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); |
| 649 } | 629 } |
| 650 | 630 |
| 651 | 631 |
| 652 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} | 632 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 } | 963 } |
| 984 | 964 |
| 985 | 965 |
| 986 InternalArrayConstructorStub::InternalArrayConstructorStub( | 966 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 987 Isolate* isolate) : PlatformCodeStub(isolate) { | 967 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 988 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 968 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 989 } | 969 } |
| 990 | 970 |
| 991 | 971 |
| 992 } } // namespace v8::internal | 972 } } // namespace v8::internal |
| OLD | NEW |