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

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

Issue 385553004: Use the same registers for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 CodeStubInterfaceDescriptor* descriptor) { 638 CodeStubInterfaceDescriptor* descriptor) {
639 Register registers[] = { KeyedStoreIC::ReceiverRegister(), 639 Register registers[] = { KeyedStoreIC::ReceiverRegister(),
640 KeyedStoreIC::NameRegister(), 640 KeyedStoreIC::NameRegister(),
641 KeyedStoreIC::ValueRegister() }; 641 KeyedStoreIC::ValueRegister() };
642 descriptor->Initialize( 642 descriptor->Initialize(
643 ARRAY_SIZE(registers), registers, 643 ARRAY_SIZE(registers), registers,
644 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); 644 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
645 } 645 }
646 646
647 647
648 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
649 CodeStubInterfaceDescriptor* descriptor) {
650 Register registers[] = { ValueRegister(),
651 MapRegister(),
652 KeyRegister(),
653 ObjectRegister() };
654 descriptor->Initialize(ARRAY_SIZE(registers), registers,
655 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss));
656 }
657
658
648 void StoreGlobalStub::InitializeInterfaceDescriptor( 659 void StoreGlobalStub::InitializeInterfaceDescriptor(
649 CodeStubInterfaceDescriptor* descriptor) { 660 CodeStubInterfaceDescriptor* descriptor) {
650 Register registers[] = { StoreIC::ReceiverRegister(), 661 Register registers[] = { StoreIC::ReceiverRegister(),
651 StoreIC::NameRegister(), 662 StoreIC::NameRegister(),
652 StoreIC::ValueRegister() }; 663 StoreIC::ValueRegister() };
653 descriptor->Initialize(ARRAY_SIZE(registers), registers, 664 descriptor->Initialize(ARRAY_SIZE(registers), registers,
654 FUNCTION_ADDR(StoreIC_MissFromStubFailure)); 665 FUNCTION_ADDR(StoreIC_MissFromStubFailure));
655 } 666 }
656 667
657 668
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 InstallDescriptor(isolate, &stub3); 973 InstallDescriptor(isolate, &stub3);
963 } 974 }
964 975
965 InternalArrayConstructorStub::InternalArrayConstructorStub( 976 InternalArrayConstructorStub::InternalArrayConstructorStub(
966 Isolate* isolate) : PlatformCodeStub(isolate) { 977 Isolate* isolate) : PlatformCodeStub(isolate) {
967 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 978 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
968 } 979 }
969 980
970 981
971 } } // namespace v8::internal 982 } } // namespace v8::internal
OLDNEW
« src/code-stubs.h ('K') | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698