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

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

Issue 381633002: Use a register spec for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments. 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/code-stubs-hydrogen.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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 627
628 628
629 void KeyedStringLengthStub::InitializeInterfaceDescriptor( 629 void KeyedStringLengthStub::InitializeInterfaceDescriptor(
630 CodeStubInterfaceDescriptor* descriptor) { 630 CodeStubInterfaceDescriptor* descriptor) {
631 Register registers[] = { LoadIC::ReceiverRegister(), 631 Register registers[] = { LoadIC::ReceiverRegister(),
632 LoadIC::NameRegister() }; 632 LoadIC::NameRegister() };
633 descriptor->Initialize(ARRAY_SIZE(registers), registers); 633 descriptor->Initialize(ARRAY_SIZE(registers), registers);
634 } 634 }
635 635
636 636
637 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
638 CodeStubInterfaceDescriptor* descriptor) {
639 Register registers[] = { KeyedStoreIC::ReceiverRegister(),
640 KeyedStoreIC::NameRegister(),
641 KeyedStoreIC::ValueRegister() };
642 descriptor->Initialize(
643 ARRAY_SIZE(registers), registers,
644 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
645 }
646
647
648 void StoreGlobalStub::InitializeInterfaceDescriptor(
649 CodeStubInterfaceDescriptor* descriptor) {
650 Register registers[] = { StoreIC::ReceiverRegister(),
651 StoreIC::NameRegister(),
652 StoreIC::ValueRegister() };
653 descriptor->Initialize(ARRAY_SIZE(registers), registers,
654 FUNCTION_ADDR(StoreIC_MissFromStubFailure));
655 }
656
657
637 void KeyedLoadDictionaryElementPlatformStub::Generate( 658 void KeyedLoadDictionaryElementPlatformStub::Generate(
638 MacroAssembler* masm) { 659 MacroAssembler* masm) {
639 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm); 660 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm);
640 } 661 }
641 662
642 663
643 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { 664 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) {
644 CreateAllocationSiteStub stub(isolate); 665 CreateAllocationSiteStub stub(isolate);
645 stub.GetCode(); 666 stub.GetCode();
646 } 667 }
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 InstallDescriptor(isolate, &stub3); 962 InstallDescriptor(isolate, &stub3);
942 } 963 }
943 964
944 InternalArrayConstructorStub::InternalArrayConstructorStub( 965 InternalArrayConstructorStub::InternalArrayConstructorStub(
945 Isolate* isolate) : PlatformCodeStub(isolate) { 966 Isolate* isolate) : PlatformCodeStub(isolate) {
946 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 967 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
947 } 968 }
948 969
949 970
950 } } // namespace v8::internal 971 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698