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

Side by Side Diff: src/arm/code-stubs-arm.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
« no previous file with comments | « no previous file | src/arm/lithium-arm.h » ('j') | src/hydrogen.cc » ('J')
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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( 312 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
313 CodeStubInterfaceDescriptor* descriptor) { 313 CodeStubInterfaceDescriptor* descriptor) {
314 static Register registers[] = { r0, r3, r1, r2 }; 314 static Register registers[] = { r0, r3, r1, r2 };
315 descriptor->register_param_count_ = 4; 315 descriptor->register_param_count_ = 4;
316 descriptor->register_params_ = registers; 316 descriptor->register_params_ = registers;
317 descriptor->deoptimization_handler_ = 317 descriptor->deoptimization_handler_ =
318 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); 318 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
319 } 319 }
320 320
321 321
322 void ArrayShiftStub::InitializeInterfaceDescriptor(
323 CodeStubInterfaceDescriptor* descriptor) {
324 static Register registers[] = { r0 };
325 descriptor->register_param_count_ = 1;
326 descriptor->register_params_ = registers;
327 descriptor->deoptimization_handler_ =
328 Builtins::c_function_address(Builtins::c_ArrayShift);
329 }
330
331
332 void BinaryOpICStub::InitializeInterfaceDescriptor( 322 void BinaryOpICStub::InitializeInterfaceDescriptor(
333 CodeStubInterfaceDescriptor* descriptor) { 323 CodeStubInterfaceDescriptor* descriptor) {
334 static Register registers[] = { r1, r0 }; 324 static Register registers[] = { r1, r0 };
335 descriptor->register_param_count_ = 2; 325 descriptor->register_param_count_ = 2;
336 descriptor->register_params_ = registers; 326 descriptor->register_params_ = registers;
337 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); 327 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss);
338 descriptor->SetMissHandler( 328 descriptor->SetMissHandler(
339 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); 329 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate()));
340 } 330 }
341 331
(...skipping 4942 matching lines...) Expand 10 before | Expand all | Expand 10 after
5284 MemOperand(fp, 6 * kPointerSize), 5274 MemOperand(fp, 6 * kPointerSize),
5285 NULL); 5275 NULL);
5286 } 5276 }
5287 5277
5288 5278
5289 #undef __ 5279 #undef __
5290 5280
5291 } } // namespace v8::internal 5281 } } // namespace v8::internal
5292 5282
5293 #endif // V8_TARGET_ARCH_ARM 5283 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.h » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698