OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2556 no_frame_start = masm_->pc_offset(); | 2556 no_frame_start = masm_->pc_offset(); |
2557 } | 2557 } |
2558 if (instr->has_constant_parameter_count()) { | 2558 if (instr->has_constant_parameter_count()) { |
2559 __ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize, | 2559 __ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize, |
2560 rcx); | 2560 rcx); |
2561 } else { | 2561 } else { |
2562 Register reg = ToRegister(instr->parameter_count()); | 2562 Register reg = ToRegister(instr->parameter_count()); |
2563 // The argument count parameter is a smi | 2563 // The argument count parameter is a smi |
2564 __ SmiToInteger32(reg, reg); | 2564 __ SmiToInteger32(reg, reg); |
2565 Register return_addr_reg = reg.is(rcx) ? rbx : rcx; | 2565 Register return_addr_reg = reg.is(rcx) ? rbx : rcx; |
2566 __ pop(return_addr_reg); | 2566 __ PopReturnAddressTo(return_addr_reg); |
2567 __ shl(reg, Immediate(kPointerSizeLog2)); | 2567 __ shl(reg, Immediate(kPointerSizeLog2)); |
2568 __ addq(rsp, reg); | 2568 __ addq(rsp, reg); |
2569 __ jmp(return_addr_reg); | 2569 __ jmp(return_addr_reg); |
2570 } | 2570 } |
2571 if (no_frame_start != -1) { | 2571 if (no_frame_start != -1) { |
2572 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); | 2572 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); |
2573 } | 2573 } |
2574 } | 2574 } |
2575 | 2575 |
2576 | 2576 |
(...skipping 2989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5566 FixedArray::kHeaderSize - kPointerSize)); | 5566 FixedArray::kHeaderSize - kPointerSize)); |
5567 __ bind(&done); | 5567 __ bind(&done); |
5568 } | 5568 } |
5569 | 5569 |
5570 | 5570 |
5571 #undef __ | 5571 #undef __ |
5572 | 5572 |
5573 } } // namespace v8::internal | 5573 } } // namespace v8::internal |
5574 | 5574 |
5575 #endif // V8_TARGET_ARCH_X64 | 5575 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |