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

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

Issue 6247005: Add implementations of some more x64 lithium methods.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/lithium-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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 } 1267 }
1268 1268
1269 1269
1270 void MacroAssembler::Move(Register dst, Register src) { 1270 void MacroAssembler::Move(Register dst, Register src) {
1271 if (!dst.is(src)) { 1271 if (!dst.is(src)) {
1272 movq(dst, src); 1272 movq(dst, src);
1273 } 1273 }
1274 } 1274 }
1275 1275
1276 1276
1277
1278
1279 void MacroAssembler::Move(Register dst, Handle<Object> source) { 1277 void MacroAssembler::Move(Register dst, Handle<Object> source) {
1280 ASSERT(!source->IsFailure()); 1278 ASSERT(!source->IsFailure());
1281 if (source->IsSmi()) { 1279 if (source->IsSmi()) {
1282 Move(dst, Smi::cast(*source)); 1280 Move(dst, Smi::cast(*source));
1283 } else { 1281 } else {
1284 movq(dst, source, RelocInfo::EMBEDDED_OBJECT); 1282 movq(dst, source, RelocInfo::EMBEDDED_OBJECT);
1285 } 1283 }
1286 } 1284 }
1287 1285
1288 1286
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
2346 CPU::FlushICache(address_, size_); 2344 CPU::FlushICache(address_, size_);
2347 2345
2348 // Check that the code was patched as expected. 2346 // Check that the code was patched as expected.
2349 ASSERT(masm_.pc_ == address_ + size_); 2347 ASSERT(masm_.pc_ == address_ + size_);
2350 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2348 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2351 } 2349 }
2352 2350
2353 } } // namespace v8::internal 2351 } } // namespace v8::internal
2354 2352
2355 #endif // V8_TARGET_ARCH_X64 2353 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698