| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 namespace v8 { | 38 namespace v8 { |
| 39 namespace internal { | 39 namespace internal { |
| 40 | 40 |
| 41 | 41 |
| 42 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( | 42 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( |
| 43 Isolate* isolate, | 43 Isolate* isolate, |
| 44 CodeStubInterfaceDescriptor* descriptor) { | 44 CodeStubInterfaceDescriptor* descriptor) { |
| 45 static Register registers[] = { rdx, rax }; | 45 static Register registers[] = { rdx, rax }; |
| 46 descriptor->register_param_count_ = 2; | 46 descriptor->register_param_count_ = 2; |
| 47 descriptor->register_params_ = registers; | 47 descriptor->register_params_ = registers; |
| 48 descriptor->stack_parameter_count_ = NULL; |
| 48 descriptor->deoptimization_handler_ = | 49 descriptor->deoptimization_handler_ = |
| 49 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | 50 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); |
| 50 } | 51 } |
| 51 | 52 |
| 52 | 53 |
| 53 void TransitionElementsKindStub::InitializeInterfaceDescriptor( | 54 void TransitionElementsKindStub::InitializeInterfaceDescriptor( |
| 54 Isolate* isolate, | 55 Isolate* isolate, |
| 55 CodeStubInterfaceDescriptor* descriptor) { | 56 CodeStubInterfaceDescriptor* descriptor) { |
| 56 static Register registers[] = { rax, rbx }; | 57 static Register registers[] = { rax, rbx }; |
| 57 descriptor->register_param_count_ = 2; | 58 descriptor->register_param_count_ = 2; |
| (...skipping 6570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6628 xmm0, | 6629 xmm0, |
| 6629 &slow_elements); | 6630 &slow_elements); |
| 6630 __ ret(0); | 6631 __ ret(0); |
| 6631 } | 6632 } |
| 6632 | 6633 |
| 6633 | 6634 |
| 6634 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { | 6635 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
| 6635 ASSERT(!Serializer::enabled()); | 6636 ASSERT(!Serializer::enabled()); |
| 6636 CEntryStub ces(1, kSaveFPRegs); | 6637 CEntryStub ces(1, kSaveFPRegs); |
| 6637 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); | 6638 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); |
| 6639 int parameter_count_offset = |
| 6640 StubFailureTrampolineFrame::kCallerStackParameterCountFrameOffset; |
| 6641 __ movq(rbx, MemOperand(rbp, parameter_count_offset)); |
| 6638 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 6642 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
| 6639 __ ret(0); // Return to IC Miss stub, continuation still on stack. | 6643 __ pop(rcx); |
| 6644 __ lea(rsp, MemOperand(rsp, rbx, times_pointer_size, |
| 6645 extra_expression_stack_count_ * kPointerSize)); |
| 6646 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack. |
| 6640 } | 6647 } |
| 6641 | 6648 |
| 6642 | 6649 |
| 6643 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 6650 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
| 6644 if (entry_hook_ != NULL) { | 6651 if (entry_hook_ != NULL) { |
| 6645 ProfileEntryHookStub stub; | 6652 ProfileEntryHookStub stub; |
| 6646 masm->CallStub(&stub); | 6653 masm->CallStub(&stub); |
| 6647 } | 6654 } |
| 6648 } | 6655 } |
| 6649 | 6656 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6705 #endif | 6712 #endif |
| 6706 | 6713 |
| 6707 __ Ret(); | 6714 __ Ret(); |
| 6708 } | 6715 } |
| 6709 | 6716 |
| 6710 #undef __ | 6717 #undef __ |
| 6711 | 6718 |
| 6712 } } // namespace v8::internal | 6719 } } // namespace v8::internal |
| 6713 | 6720 |
| 6714 #endif // V8_TARGET_ARCH_X64 | 6721 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |