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

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

Issue 275883002: MIPS: Improve Array.shift() performance for small arrays. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: 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
« no previous file with comments | « no previous file | src/mips/lithium-codegen-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 "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( 299 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
300 CodeStubInterfaceDescriptor* descriptor) { 300 CodeStubInterfaceDescriptor* descriptor) {
301 static Register registers[] = { a0, a3, a1, a2 }; 301 static Register registers[] = { a0, a3, a1, a2 };
302 descriptor->register_param_count_ = 4; 302 descriptor->register_param_count_ = 4;
303 descriptor->register_params_ = registers; 303 descriptor->register_params_ = registers;
304 descriptor->deoptimization_handler_ = 304 descriptor->deoptimization_handler_ =
305 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); 305 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
306 } 306 }
307 307
308 308
309 void ArrayShiftStub::InitializeInterfaceDescriptor(
310 CodeStubInterfaceDescriptor* descriptor) {
311 static Register registers[] = { a0 };
312 descriptor->register_param_count_ = 1;
313 descriptor->register_params_ = registers;
314 descriptor->deoptimization_handler_ =
315 Builtins::c_function_address(Builtins::c_ArrayShift);
316 }
317
318
309 void BinaryOpICStub::InitializeInterfaceDescriptor( 319 void BinaryOpICStub::InitializeInterfaceDescriptor(
310 CodeStubInterfaceDescriptor* descriptor) { 320 CodeStubInterfaceDescriptor* descriptor) {
311 static Register registers[] = { a1, a0 }; 321 static Register registers[] = { a1, a0 };
312 descriptor->register_param_count_ = 2; 322 descriptor->register_param_count_ = 2;
313 descriptor->register_params_ = registers; 323 descriptor->register_params_ = registers;
314 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); 324 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss);
315 descriptor->SetMissHandler( 325 descriptor->SetMissHandler(
316 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); 326 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
317 } 327 }
318 328
(...skipping 5102 matching lines...) Expand 10 before | Expand all | Expand 10 after
5421 MemOperand(fp, 6 * kPointerSize), 5431 MemOperand(fp, 6 * kPointerSize),
5422 NULL); 5432 NULL);
5423 } 5433 }
5424 5434
5425 5435
5426 #undef __ 5436 #undef __
5427 5437
5428 } } // namespace v8::internal 5438 } } // namespace v8::internal
5429 5439
5430 #endif // V8_TARGET_ARCH_MIPS 5440 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698