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

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

Issue 308793010: Inline Array.shift() fast path instead of using a code stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( 313 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
314 CodeStubInterfaceDescriptor* descriptor) { 314 CodeStubInterfaceDescriptor* descriptor) {
315 static Register registers[] = { a0, a3, a1, a2 }; 315 static Register registers[] = { a0, a3, a1, a2 };
316 descriptor->register_param_count_ = 4; 316 descriptor->register_param_count_ = 4;
317 descriptor->register_params_ = registers; 317 descriptor->register_params_ = registers;
318 descriptor->deoptimization_handler_ = 318 descriptor->deoptimization_handler_ =
319 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); 319 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
320 } 320 }
321 321
322 322
323 void ArrayShiftStub::InitializeInterfaceDescriptor(
324 CodeStubInterfaceDescriptor* descriptor) {
325 static Register registers[] = { a0 };
326 descriptor->register_param_count_ = 1;
327 descriptor->register_params_ = registers;
328 descriptor->deoptimization_handler_ =
329 Builtins::c_function_address(Builtins::c_ArrayShift);
330 }
331
332
333 void BinaryOpICStub::InitializeInterfaceDescriptor( 323 void BinaryOpICStub::InitializeInterfaceDescriptor(
334 CodeStubInterfaceDescriptor* descriptor) { 324 CodeStubInterfaceDescriptor* descriptor) {
335 static Register registers[] = { a1, a0 }; 325 static Register registers[] = { a1, a0 };
336 descriptor->register_param_count_ = 2; 326 descriptor->register_param_count_ = 2;
337 descriptor->register_params_ = registers; 327 descriptor->register_params_ = registers;
338 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); 328 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss);
339 descriptor->SetMissHandler( 329 descriptor->SetMissHandler(
340 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); 330 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
341 } 331 }
342 332
(...skipping 5141 matching lines...) Expand 10 before | Expand all | Expand 10 after
5484 MemOperand(fp, 6 * kPointerSize), 5474 MemOperand(fp, 6 * kPointerSize),
5485 NULL); 5475 NULL);
5486 } 5476 }
5487 5477
5488 5478
5489 #undef __ 5479 #undef __
5490 5480
5491 } } // namespace v8::internal 5481 } } // namespace v8::internal
5492 5482
5493 #endif // V8_TARGET_ARCH_MIPS 5483 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698