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

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

Issue 390013002: 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
« no previous file with comments | « src/ic.h ('k') | src/x64/ic-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 void ToBooleanStub::InitializeInterfaceDescriptor( 215 void ToBooleanStub::InitializeInterfaceDescriptor(
216 CodeStubInterfaceDescriptor* descriptor) { 216 CodeStubInterfaceDescriptor* descriptor) {
217 Register registers[] = { rax }; 217 Register registers[] = { rax };
218 descriptor->Initialize(ARRAY_SIZE(registers), registers, 218 descriptor->Initialize(ARRAY_SIZE(registers), registers,
219 FUNCTION_ADDR(ToBooleanIC_Miss)); 219 FUNCTION_ADDR(ToBooleanIC_Miss));
220 descriptor->SetMissHandler( 220 descriptor->SetMissHandler(
221 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate())); 221 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate()));
222 } 222 }
223 223
224 224
225 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
226 CodeStubInterfaceDescriptor* descriptor) {
227 Register registers[] = { rax, rbx, rcx, rdx };
228 descriptor->Initialize(ARRAY_SIZE(registers), registers,
229 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss));
230 }
231
232
233 void BinaryOpICStub::InitializeInterfaceDescriptor( 225 void BinaryOpICStub::InitializeInterfaceDescriptor(
234 CodeStubInterfaceDescriptor* descriptor) { 226 CodeStubInterfaceDescriptor* descriptor) {
235 Register registers[] = { rdx, rax }; 227 Register registers[] = { rdx, rax };
236 descriptor->Initialize(ARRAY_SIZE(registers), registers, 228 descriptor->Initialize(ARRAY_SIZE(registers), registers,
237 FUNCTION_ADDR(BinaryOpIC_Miss)); 229 FUNCTION_ADDR(BinaryOpIC_Miss));
238 descriptor->SetMissHandler( 230 descriptor->SetMissHandler(
239 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); 231 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
240 } 232 }
241 233
242 234
(...skipping 4679 matching lines...) Expand 10 before | Expand all | Expand 10 after
4922 return_value_operand, 4914 return_value_operand,
4923 NULL); 4915 NULL);
4924 } 4916 }
4925 4917
4926 4918
4927 #undef __ 4919 #undef __
4928 4920
4929 } } // namespace v8::internal 4921 } } // namespace v8::internal
4930 4922
4931 #endif // V8_TARGET_ARCH_X64 4923 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698