Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(973)

Side by Side Diff: src/code-stubs.cc

Issue 356713003: Use IC register definitions in platform files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698