| 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 CodeStubInterfaceDescriptor* descriptor) { | 607 CodeStubInterfaceDescriptor* descriptor) { |
| 608 Register registers[] = { KeyedLoadIC::ReceiverRegister(), | 608 Register registers[] = { KeyedLoadIC::ReceiverRegister(), |
| 609 KeyedLoadIC::NameRegister() }; | 609 KeyedLoadIC::NameRegister() }; |
| 610 STATIC_ASSERT(KeyedLoadIC::kRegisterArgumentCount == 2); | 610 STATIC_ASSERT(KeyedLoadIC::kRegisterArgumentCount == 2); |
| 611 descriptor->Initialize( | 611 descriptor->Initialize( |
| 612 ARRAY_SIZE(registers), registers, | 612 ARRAY_SIZE(registers), registers, |
| 613 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); | 613 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); |
| 614 } | 614 } |
| 615 | 615 |
| 616 | 616 |
| 617 void LoadFieldStub::InitializeInterfaceDescriptor( | |
| 618 CodeStubInterfaceDescriptor* descriptor) { | |
| 619 Register registers[] = { LoadIC::ReceiverRegister() }; | |
| 620 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 621 } | |
| 622 | |
| 623 | |
| 624 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( | |
| 625 CodeStubInterfaceDescriptor* descriptor) { | |
| 626 Register registers[] = { KeyedLoadIC::ReceiverRegister() }; | |
| 627 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 628 } | |
| 629 | |
| 630 | |
| 631 void StringLengthStub::InitializeInterfaceDescriptor( | |
| 632 CodeStubInterfaceDescriptor* descriptor) { | |
| 633 Register registers[] = { LoadIC::ReceiverRegister(), | |
| 634 LoadIC::NameRegister() }; | |
| 635 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 636 } | |
| 637 | |
| 638 | |
| 639 void KeyedStringLengthStub::InitializeInterfaceDescriptor( | |
| 640 CodeStubInterfaceDescriptor* descriptor) { | |
| 641 Register registers[] = { KeyedLoadIC::ReceiverRegister(), | |
| 642 KeyedLoadIC::NameRegister() }; | |
| 643 descriptor->Initialize(ARRAY_SIZE(registers), registers); | |
| 644 } | |
| 645 | |
| 646 | |
| 647 void KeyedLoadDictionaryElementPlatformStub::Generate( | 617 void KeyedLoadDictionaryElementPlatformStub::Generate( |
| 648 MacroAssembler* masm) { | 618 MacroAssembler* masm) { |
| 649 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); | 619 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); |
| 650 } | 620 } |
| 651 | 621 |
| 652 | 622 |
| 653 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 623 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
| 654 CreateAllocationSiteStub stub(isolate); | 624 CreateAllocationSiteStub stub(isolate); |
| 655 stub.GetCode(); | 625 stub.GetCode(); |
| 656 } | 626 } |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 InstallDescriptor(isolate, &stub3); | 904 InstallDescriptor(isolate, &stub3); |
| 935 } | 905 } |
| 936 | 906 |
| 937 InternalArrayConstructorStub::InternalArrayConstructorStub( | 907 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 938 Isolate* isolate) : PlatformCodeStub(isolate) { | 908 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 939 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 909 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 940 } | 910 } |
| 941 | 911 |
| 942 | 912 |
| 943 } } // namespace v8::internal | 913 } } // namespace v8::internal |
| OLD | NEW |