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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 339027: Fixed build error on x64. (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 ASSERT(ExitFrameConstants::kCallerSPDisplacement == +2 * kPointerSize); 1793 ASSERT(ExitFrameConstants::kCallerSPDisplacement == +2 * kPointerSize);
1794 ASSERT(ExitFrameConstants::kCallerPCOffset == +1 * kPointerSize); 1794 ASSERT(ExitFrameConstants::kCallerPCOffset == +1 * kPointerSize);
1795 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize); 1795 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize);
1796 push(rbp); 1796 push(rbp);
1797 movq(rbp, rsp); 1797 movq(rbp, rsp);
1798 1798
1799 // Reserve room for entry stack pointer and push the debug marker. 1799 // Reserve room for entry stack pointer and push the debug marker.
1800 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize); 1800 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize);
1801 push(Immediate(0)); // saved entry sp, patched before call 1801 push(Immediate(0)); // saved entry sp, patched before call
1802 if (mode == ExitFrame::MODE_DEBUG) { 1802 if (mode == ExitFrame::MODE_DEBUG) {
1803 push(Immediate(Smi::FromInt(0))); 1803 push(Immediate(0));
1804 } else { 1804 } else {
1805 movq(kScratchRegister, CodeObject(), RelocInfo::EMBEDDED_OBJECT); 1805 movq(kScratchRegister, CodeObject(), RelocInfo::EMBEDDED_OBJECT);
1806 push(kScratchRegister); 1806 push(kScratchRegister);
1807 } 1807 }
1808 1808
1809 // Save the frame pointer and the context in top. 1809 // Save the frame pointer and the context in top.
1810 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); 1810 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address);
1811 ExternalReference context_address(Top::k_context_address); 1811 ExternalReference context_address(Top::k_context_address);
1812 movq(r14, rax); // Backup rax before we use it. 1812 movq(r14, rax); // Backup rax before we use it.
1813 1813
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 CodePatcher::~CodePatcher() { 2241 CodePatcher::~CodePatcher() {
2242 // Indicate that code has changed. 2242 // Indicate that code has changed.
2243 CPU::FlushICache(address_, size_); 2243 CPU::FlushICache(address_, size_);
2244 2244
2245 // Check that the code was patched as expected. 2245 // Check that the code was patched as expected.
2246 ASSERT(masm_.pc_ == address_ + size_); 2246 ASSERT(masm_.pc_ == address_ + size_);
2247 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2247 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2248 } 2248 }
2249 2249
2250 } } // namespace v8::internal 2250 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698