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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 21477002: Introduce PopReturnAddressTo and PushReturnAddressFrom macro-assembler instructions for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « src/x64/ic-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698