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

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

Issue 12093089: Support pass-through of stub caller arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM port Created 7 years, 10 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 26 matching lines...) Expand all
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 40
41 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( 41 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
42 Isolate* isolate, 42 Isolate* isolate,
43 CodeStubInterfaceDescriptor* descriptor) { 43 CodeStubInterfaceDescriptor* descriptor) {
44 static Register registers[] = { rdx, rax }; 44 static Register registers[] = { rdx, rax };
45 descriptor->register_param_count_ = 2; 45 descriptor->register_param_count_ = 2;
46 descriptor->register_params_ = registers; 46 descriptor->register_params_ = registers;
47 descriptor->stack_parameter_count_ = NULL;
47 descriptor->deoptimization_handler_ = 48 descriptor->deoptimization_handler_ =
48 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 49 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
49 } 50 }
50 51
51 52
52 #define __ ACCESS_MASM(masm) 53 #define __ ACCESS_MASM(masm)
53 54
54 void ToNumberStub::Generate(MacroAssembler* masm) { 55 void ToNumberStub::Generate(MacroAssembler* masm) {
55 // The ToNumber stub takes one argument in eax. 56 // The ToNumber stub takes one argument in eax.
56 Label check_heap_number, call_builtin; 57 Label check_heap_number, call_builtin;
(...skipping 6559 matching lines...) Expand 10 before | Expand all | Expand 10 after
6616 xmm0, 6617 xmm0,
6617 &slow_elements); 6618 &slow_elements);
6618 __ ret(0); 6619 __ ret(0);
6619 } 6620 }
6620 6621
6621 6622
6622 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { 6623 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) {
6623 ASSERT(!Serializer::enabled()); 6624 ASSERT(!Serializer::enabled());
6624 CEntryStub ces(1, kSaveFPRegs); 6625 CEntryStub ces(1, kSaveFPRegs);
6625 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); 6626 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET);
6627 __ movq(rbx, MemOperand(rbp, StandardFrameConstants::kMarkerOffset -
6628 2 * kPointerSize));
6626 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 6629 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
6627 __ ret(0); // Return to IC Miss stub, continuation still on stack. 6630 __ pop(rcx);
6631 __ lea(rsp, MemOperand(rsp, rbx, times_pointer_size,
6632 extra_expression_stack_count_ * kPointerSize));
6633 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack.
6628 } 6634 }
6629 6635
6630 6636
6631 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 6637 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
6632 if (entry_hook_ != NULL) { 6638 if (entry_hook_ != NULL) {
6633 ProfileEntryHookStub stub; 6639 ProfileEntryHookStub stub;
6634 masm->CallStub(&stub); 6640 masm->CallStub(&stub);
6635 } 6641 }
6636 } 6642 }
6637 6643
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
6693 #endif 6699 #endif
6694 6700
6695 __ Ret(); 6701 __ Ret();
6696 } 6702 }
6697 6703
6698 #undef __ 6704 #undef __
6699 6705
6700 } } // namespace v8::internal 6706 } } // namespace v8::internal
6701 6707
6702 #endif // V8_TARGET_ARCH_X64 6708 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « src/runtime.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698