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

Side by Side Diff: src/ia32/code-stubs-ia32.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/compiler/js-generic-lowering.cc ('k') | src/mips/code-stubs-mips.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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 79
80 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( 80 void CreateAllocationSiteStub::InitializeInterfaceDescriptor(
81 CodeStubInterfaceDescriptor* descriptor) { 81 CodeStubInterfaceDescriptor* descriptor) {
82 Register registers[] = { esi, ebx, edx }; 82 Register registers[] = { esi, ebx, edx };
83 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); 83 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
84 } 84 }
85 85
86 86
87 void InstanceofStub::InitializeInterfaceDescriptor(
88 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) {
89 Register registers[] = {esi, left(), right()};
90 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
91 }
92
93
94 void CallFunctionStub::InitializeInterfaceDescriptor( 87 void CallFunctionStub::InitializeInterfaceDescriptor(
95 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { 88 CodeStubInterfaceDescriptor* descriptor) {
96 Register registers[] = {esi, edi}; 89 Register registers[] = {esi, edi};
97 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); 90 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
98 } 91 }
99 92
100 93
101 void CallConstructStub::InitializeInterfaceDescriptor( 94 void CallConstructStub::InitializeInterfaceDescriptor(
102 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { 95 CodeStubInterfaceDescriptor* descriptor) {
103 // eax : number of arguments 96 // eax : number of arguments
104 // ebx : feedback vector 97 // ebx : feedback vector
105 // edx : (only if ebx is not the megamorphic symbol) slot in feedback 98 // edx : (only if ebx is not the megamorphic symbol) slot in feedback
106 // vector (Smi) 99 // vector (Smi)
107 // edi : constructor function 100 // edi : constructor function
108 // TODO(turbofan): So far we don't gather type feedback and hence skip the 101 // TODO(turbofan): So far we don't gather type feedback and hence skip the
109 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 102 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
110 Register registers[] = {esi, eax, edi, ebx}; 103 Register registers[] = {esi, eax, edi, ebx};
111 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); 104 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
112 } 105 }
(...skipping 4899 matching lines...) Expand 10 before | Expand all | Expand 10 after
5012 Operand(ebp, 7 * kPointerSize), 5005 Operand(ebp, 7 * kPointerSize),
5013 NULL); 5006 NULL);
5014 } 5007 }
5015 5008
5016 5009
5017 #undef __ 5010 #undef __
5018 5011
5019 } } // namespace v8::internal 5012 } } // namespace v8::internal
5020 5013
5021 #endif // V8_TARGET_ARCH_IA32 5014 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698