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

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

Issue 3431010: Clean up the insertion of nops (signalling non-inlined loads and... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 3 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/full-codegen-x64.cc ('k') | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 1308
1309 1309
1310 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) { 1310 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) {
1311 movq(kScratchRegister, destination, rmode); 1311 movq(kScratchRegister, destination, rmode);
1312 call(kScratchRegister); 1312 call(kScratchRegister);
1313 } 1313 }
1314 1314
1315 1315
1316 void MacroAssembler::Call(Handle<Code> code_object, RelocInfo::Mode rmode) { 1316 void MacroAssembler::Call(Handle<Code> code_object, RelocInfo::Mode rmode) {
1317 ASSERT(RelocInfo::IsCodeTarget(rmode)); 1317 ASSERT(RelocInfo::IsCodeTarget(rmode));
1318 WriteRecordedPositions();
1319 call(code_object, rmode); 1318 call(code_object, rmode);
1320 } 1319 }
1321 1320
1322 1321
1323 void MacroAssembler::PushTryHandler(CodeLocation try_location, 1322 void MacroAssembler::PushTryHandler(CodeLocation try_location,
1324 HandlerType type) { 1323 HandlerType type) {
1325 // Adjust this code if not the case. 1324 // Adjust this code if not the case.
1326 ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize); 1325 ASSERT(StackHandlerConstants::kSize == 4 * kPointerSize);
1327 1326
1328 // The pc (return address) is already on TOS. This code pushes state, 1327 // The pc (return address) is already on TOS. This code pushes state,
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 CPU::FlushICache(address_, size_); 2214 CPU::FlushICache(address_, size_);
2216 2215
2217 // Check that the code was patched as expected. 2216 // Check that the code was patched as expected.
2218 ASSERT(masm_.pc_ == address_ + size_); 2217 ASSERT(masm_.pc_ == address_ + size_);
2219 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2218 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2220 } 2219 }
2221 2220
2222 } } // namespace v8::internal 2221 } } // namespace v8::internal
2223 2222
2224 #endif // V8_TARGET_ARCH_X64 2223 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698