| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 CodeStubInterfaceDescriptor* descriptor) { | 583 CodeStubInterfaceDescriptor* descriptor) { |
| 584 Register registers[] = { KeyedLoadIC::ReceiverRegister(), | 584 Register registers[] = { KeyedLoadIC::ReceiverRegister(), |
| 585 KeyedLoadIC::NameRegister() }; | 585 KeyedLoadIC::NameRegister() }; |
| 586 ASSERT_EQ(KeyedLoadIC::kRegisterArgumentCount, 2); | 586 ASSERT_EQ(KeyedLoadIC::kRegisterArgumentCount, 2); |
| 587 descriptor->Initialize( | 587 descriptor->Initialize( |
| 588 ARRAY_SIZE(registers), registers, | 588 ARRAY_SIZE(registers), registers, |
| 589 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); | 589 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); |
| 590 } | 590 } |
| 591 | 591 |
| 592 | 592 |
| 593 void LoadFieldStub::InitializeInterfaceDescriptor( |
| 594 CodeStubInterfaceDescriptor* descriptor) { |
| 595 Register registers[] = { LoadIC::ReceiverRegister() }; |
| 596 descriptor->Initialize(ARRAY_SIZE(registers), registers); |
| 597 } |
| 598 |
| 599 |
| 600 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( |
| 601 CodeStubInterfaceDescriptor* descriptor) { |
| 602 Register registers[] = { KeyedLoadIC::ReceiverRegister() }; |
| 603 descriptor->Initialize(ARRAY_SIZE(registers), registers); |
| 604 } |
| 605 |
| 606 |
| 607 void StringLengthStub::InitializeInterfaceDescriptor( |
| 608 CodeStubInterfaceDescriptor* descriptor) { |
| 609 Register registers[] = { LoadIC::ReceiverRegister(), |
| 610 LoadIC::NameRegister() }; |
| 611 descriptor->Initialize(ARRAY_SIZE(registers), registers); |
| 612 } |
| 613 |
| 614 |
| 615 void KeyedStringLengthStub::InitializeInterfaceDescriptor( |
| 616 CodeStubInterfaceDescriptor* descriptor) { |
| 617 Register registers[] = { KeyedLoadIC::ReceiverRegister(), |
| 618 KeyedLoadIC::NameRegister() }; |
| 619 descriptor->Initialize(ARRAY_SIZE(registers), registers); |
| 620 } |
| 621 |
| 622 |
| 593 void KeyedLoadDictionaryElementPlatformStub::Generate( | 623 void KeyedLoadDictionaryElementPlatformStub::Generate( |
| 594 MacroAssembler* masm) { | 624 MacroAssembler* masm) { |
| 595 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); | 625 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); |
| 596 } | 626 } |
| 597 | 627 |
| 598 | 628 |
| 599 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { | 629 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { |
| 600 CreateAllocationSiteStub stub(isolate); | 630 CreateAllocationSiteStub stub(isolate); |
| 601 stub.GetCode(); | 631 stub.GetCode(); |
| 602 } | 632 } |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 InstallDescriptor(isolate, &stub3); | 910 InstallDescriptor(isolate, &stub3); |
| 881 } | 911 } |
| 882 | 912 |
| 883 InternalArrayConstructorStub::InternalArrayConstructorStub( | 913 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 884 Isolate* isolate) : PlatformCodeStub(isolate) { | 914 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 885 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 915 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 886 } | 916 } |
| 887 | 917 |
| 888 | 918 |
| 889 } } // namespace v8::internal | 919 } } // namespace v8::internal |
| OLD | NEW |