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 |
617 void KeyedLoadDictionaryElementPlatformStub::Generate( | 647 void KeyedLoadDictionaryElementPlatformStub::Generate( |
618 MacroAssembler* masm) { | 648 MacroAssembler* masm) { |
619 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); | 649 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); |
620 } | 650 } |
621 | 651 |
622 | 652 |
623 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 653 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
624 CreateAllocationSiteStub stub(isolate); | 654 CreateAllocationSiteStub stub(isolate); |
625 stub.GetCode(); | 655 stub.GetCode(); |
626 } | 656 } |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 InstallDescriptor(isolate, &stub3); | 934 InstallDescriptor(isolate, &stub3); |
905 } | 935 } |
906 | 936 |
907 InternalArrayConstructorStub::InternalArrayConstructorStub( | 937 InternalArrayConstructorStub::InternalArrayConstructorStub( |
908 Isolate* isolate) : PlatformCodeStub(isolate) { | 938 Isolate* isolate) : PlatformCodeStub(isolate) { |
909 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 939 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
910 } | 940 } |
911 | 941 |
912 | 942 |
913 } } // namespace v8::internal | 943 } } // namespace v8::internal |
OLD | NEW |