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

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

Issue 279743002: Improve Array.shift() performance for small arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cosmetic fix Created 6 years, 7 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/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.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 "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( 302 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
303 CodeStubInterfaceDescriptor* descriptor) { 303 CodeStubInterfaceDescriptor* descriptor) {
304 static Register registers[] = { eax, ebx, ecx, edx }; 304 static Register registers[] = { eax, ebx, ecx, edx };
305 descriptor->register_param_count_ = 4; 305 descriptor->register_param_count_ = 4;
306 descriptor->register_params_ = registers; 306 descriptor->register_params_ = registers;
307 descriptor->deoptimization_handler_ = 307 descriptor->deoptimization_handler_ =
308 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); 308 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
309 } 309 }
310 310
311 311
312 void ArrayShiftStub::InitializeInterfaceDescriptor(
313 CodeStubInterfaceDescriptor* descriptor) {
314 static Register registers[] = { eax };
315 descriptor->register_param_count_ = 1;
316 descriptor->register_params_ = registers;
317 descriptor->deoptimization_handler_ =
318 Builtins::c_function_address(Builtins::c_ArrayShift);
319 }
320
321
312 void BinaryOpICStub::InitializeInterfaceDescriptor( 322 void BinaryOpICStub::InitializeInterfaceDescriptor(
313 CodeStubInterfaceDescriptor* descriptor) { 323 CodeStubInterfaceDescriptor* descriptor) {
314 static Register registers[] = { edx, eax }; 324 static Register registers[] = { edx, eax };
315 descriptor->register_param_count_ = 2; 325 descriptor->register_param_count_ = 2;
316 descriptor->register_params_ = registers; 326 descriptor->register_params_ = registers;
317 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); 327 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss);
318 descriptor->SetMissHandler( 328 descriptor->SetMissHandler(
319 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); 329 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
320 } 330 }
321 331
(...skipping 4812 matching lines...) Expand 10 before | Expand all | Expand 10 after
5134 Operand(ebp, 7 * kPointerSize), 5144 Operand(ebp, 7 * kPointerSize),
5135 NULL); 5145 NULL);
5136 } 5146 }
5137 5147
5138 5148
5139 #undef __ 5149 #undef __
5140 5150
5141 } } // namespace v8::internal 5151 } } // namespace v8::internal
5142 5152
5143 #endif // V8_TARGET_ARCH_IA32 5153 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698