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

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

Issue 6113004: Version 3.0.7 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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') | test/cctest/cctest.status » ('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 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; 281 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag;
282 // Note: p0 might not be a valid Smi *value*, but it has a valid Smi tag. 282 // Note: p0 might not be a valid Smi *value*, but it has a valid Smi tag.
283 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); 283 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi());
284 #ifdef DEBUG 284 #ifdef DEBUG
285 if (msg != NULL) { 285 if (msg != NULL) {
286 RecordComment("Abort message: "); 286 RecordComment("Abort message: ");
287 RecordComment(msg); 287 RecordComment(msg);
288 } 288 }
289 #endif 289 #endif
290 // Disable stub call restrictions to always allow calls to abort. 290 // Disable stub call restrictions to always allow calls to abort.
291 set_allow_stub_calls(true); 291 AllowStubCallsScope allow_scope(this, true);
292 292
293 push(rax); 293 push(rax);
294 movq(kScratchRegister, p0, RelocInfo::NONE); 294 movq(kScratchRegister, p0, RelocInfo::NONE);
295 push(kScratchRegister); 295 push(kScratchRegister);
296 movq(kScratchRegister, 296 movq(kScratchRegister,
297 reinterpret_cast<intptr_t>(Smi::FromInt(static_cast<int>(p1 - p0))), 297 reinterpret_cast<intptr_t>(Smi::FromInt(static_cast<int>(p1 - p0))),
298 RelocInfo::NONE); 298 RelocInfo::NONE);
299 push(kScratchRegister); 299 push(kScratchRegister);
300 CallRuntime(Runtime::kAbort, 2); 300 CallRuntime(Runtime::kAbort, 2);
301 // will not return here 301 // will not return here
(...skipping 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after
2346 CPU::FlushICache(address_, size_); 2346 CPU::FlushICache(address_, size_);
2347 2347
2348 // Check that the code was patched as expected. 2348 // Check that the code was patched as expected.
2349 ASSERT(masm_.pc_ == address_ + size_); 2349 ASSERT(masm_.pc_ == address_ + size_);
2350 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2350 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2351 } 2351 }
2352 2352
2353 } } // namespace v8::internal 2353 } } // namespace v8::internal
2354 2354
2355 #endif // V8_TARGET_ARCH_X64 2355 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698