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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm/lithium-arm.h » ('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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( 298 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
299 CodeStubInterfaceDescriptor* descriptor) { 299 CodeStubInterfaceDescriptor* descriptor) {
300 static Register registers[] = { r0, r3, r1, r2 }; 300 static Register registers[] = { r0, r3, r1, r2 };
301 descriptor->register_param_count_ = 4; 301 descriptor->register_param_count_ = 4;
302 descriptor->register_params_ = registers; 302 descriptor->register_params_ = registers;
303 descriptor->deoptimization_handler_ = 303 descriptor->deoptimization_handler_ =
304 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); 304 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
305 } 305 }
306 306
307 307
308 void ArrayShiftStub::InitializeInterfaceDescriptor(
309 CodeStubInterfaceDescriptor* descriptor) {
310 static Register registers[] = { r0 };
311 descriptor->register_param_count_ = 1;
312 descriptor->register_params_ = registers;
313 descriptor->deoptimization_handler_ =
314 Builtins::c_function_address(Builtins::c_ArrayShift);
315 }
316
317
308 void BinaryOpICStub::InitializeInterfaceDescriptor( 318 void BinaryOpICStub::InitializeInterfaceDescriptor(
309 CodeStubInterfaceDescriptor* descriptor) { 319 CodeStubInterfaceDescriptor* descriptor) {
310 static Register registers[] = { r1, r0 }; 320 static Register registers[] = { r1, r0 };
311 descriptor->register_param_count_ = 2; 321 descriptor->register_param_count_ = 2;
312 descriptor->register_params_ = registers; 322 descriptor->register_params_ = registers;
313 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); 323 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss);
314 descriptor->SetMissHandler( 324 descriptor->SetMissHandler(
315 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); 325 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
316 } 326 }
317 327
(...skipping 4906 matching lines...) Expand 10 before | Expand all | Expand 10 after
5224 MemOperand(fp, 6 * kPointerSize), 5234 MemOperand(fp, 6 * kPointerSize),
5225 NULL); 5235 NULL);
5226 } 5236 }
5227 5237
5228 5238
5229 #undef __ 5239 #undef __
5230 5240
5231 } } // namespace v8::internal 5241 } } // namespace v8::internal
5232 5242
5233 #endif // V8_TARGET_ARCH_ARM 5243 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698