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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/factory.h" | 10 #include "src/factory.h" |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 CodeStubInterfaceDescriptor* descriptor) { | 637 CodeStubInterfaceDescriptor* descriptor) { |
638 Register registers[] = { KeyedStoreIC::ReceiverRegister(), | 638 Register registers[] = { KeyedStoreIC::ReceiverRegister(), |
639 KeyedStoreIC::NameRegister(), | 639 KeyedStoreIC::NameRegister(), |
640 KeyedStoreIC::ValueRegister() }; | 640 KeyedStoreIC::ValueRegister() }; |
641 descriptor->Initialize( | 641 descriptor->Initialize( |
642 ARRAY_SIZE(registers), registers, | 642 ARRAY_SIZE(registers), registers, |
643 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); | 643 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); |
644 } | 644 } |
645 | 645 |
646 | 646 |
| 647 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( |
| 648 CodeStubInterfaceDescriptor* descriptor) { |
| 649 Register registers[] = { ValueRegister(), |
| 650 MapRegister(), |
| 651 KeyRegister(), |
| 652 ObjectRegister() }; |
| 653 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
| 654 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); |
| 655 } |
| 656 |
| 657 |
647 void StoreGlobalStub::InitializeInterfaceDescriptor( | 658 void StoreGlobalStub::InitializeInterfaceDescriptor( |
648 CodeStubInterfaceDescriptor* descriptor) { | 659 CodeStubInterfaceDescriptor* descriptor) { |
649 Register registers[] = { StoreIC::ReceiverRegister(), | 660 Register registers[] = { StoreIC::ReceiverRegister(), |
650 StoreIC::NameRegister(), | 661 StoreIC::NameRegister(), |
651 StoreIC::ValueRegister() }; | 662 StoreIC::ValueRegister() }; |
652 descriptor->Initialize(ARRAY_SIZE(registers), registers, | 663 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
653 FUNCTION_ADDR(StoreIC_MissFromStubFailure)); | 664 FUNCTION_ADDR(StoreIC_MissFromStubFailure)); |
654 } | 665 } |
655 | 666 |
656 | 667 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 InstallDescriptor(isolate, &stub3); | 972 InstallDescriptor(isolate, &stub3); |
962 } | 973 } |
963 | 974 |
964 InternalArrayConstructorStub::InternalArrayConstructorStub( | 975 InternalArrayConstructorStub::InternalArrayConstructorStub( |
965 Isolate* isolate) : PlatformCodeStub(isolate) { | 976 Isolate* isolate) : PlatformCodeStub(isolate) { |
966 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 977 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
967 } | 978 } |
968 | 979 |
969 | 980 |
970 } } // namespace v8::internal | 981 } } // namespace v8::internal |
OLD | NEW |