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

Side by Side Diff: src/x64/code-stubs-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
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[] = { rax, rbx, rcx, rdx }; 314 static Register registers[] = { rax, rbx, rcx, rdx };
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[] = { rax };
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[] = { rdx, rax }; 324 static Register registers[] = { rdx, rax };
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 4736 matching lines...) Expand 10 before | Expand all | Expand 10 after
5078 return_value_operand, 5068 return_value_operand,
5079 NULL); 5069 NULL);
5080 } 5070 }
5081 5071
5082 5072
5083 #undef __ 5073 #undef __
5084 5074
5085 } } // namespace v8::internal 5075 } } // namespace v8::internal
5086 5076
5087 #endif // V8_TARGET_ARCH_X64 5077 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen.cc ('K') | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698