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

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

Issue 437483003: Unify InstanceofStub interface descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/code-stubs.h ('k') | src/compiler/js-generic-lowering.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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 CodeStubInterfaceDescriptor* descriptor) { 657 CodeStubInterfaceDescriptor* descriptor) {
658 Register registers[] = { InterfaceDescriptor::ContextRegister(), 658 Register registers[] = { InterfaceDescriptor::ContextRegister(),
659 StoreIC::ReceiverRegister(), 659 StoreIC::ReceiverRegister(),
660 StoreIC::NameRegister(), 660 StoreIC::NameRegister(),
661 StoreIC::ValueRegister() }; 661 StoreIC::ValueRegister() };
662 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers, 662 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers,
663 FUNCTION_ADDR(StoreIC_MissFromStubFailure)); 663 FUNCTION_ADDR(StoreIC_MissFromStubFailure));
664 } 664 }
665 665
666 666
667 void InstanceofStub::InitializeInterfaceDescriptor(
668 CodeStubInterfaceDescriptor* descriptor) {
669 Register registers[] = { InterfaceDescriptor::ContextRegister(),
670 InstanceofStub::left(),
671 InstanceofStub::right() };
672 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
673 }
674
675
667 void LoadDictionaryElementPlatformStub::Generate(MacroAssembler* masm) { 676 void LoadDictionaryElementPlatformStub::Generate(MacroAssembler* masm) {
668 ElementHandlerCompiler::GenerateLoadDictionaryElement(masm); 677 ElementHandlerCompiler::GenerateLoadDictionaryElement(masm);
669 } 678 }
670 679
671 680
672 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) { 681 void CreateAllocationSiteStub::GenerateAheadOfTime(Isolate* isolate) {
673 CreateAllocationSiteStub stub(isolate); 682 CreateAllocationSiteStub stub(isolate);
674 stub.GetCode(); 683 stub.GetCode();
675 } 684 }
676 685
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 InstallDescriptor(isolate, &stub3); 979 InstallDescriptor(isolate, &stub3);
971 } 980 }
972 981
973 InternalArrayConstructorStub::InternalArrayConstructorStub( 982 InternalArrayConstructorStub::InternalArrayConstructorStub(
974 Isolate* isolate) : PlatformCodeStub(isolate) { 983 Isolate* isolate) : PlatformCodeStub(isolate) {
975 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 984 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
976 } 985 }
977 986
978 987
979 } } // namespace v8::internal 988 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698