| Index: src/x64/macro-assembler-x64.cc
|
| ===================================================================
|
| --- src/x64/macro-assembler-x64.cc (revision 6941)
|
| +++ src/x64/macro-assembler-x64.cc (working copy)
|
| @@ -288,7 +288,7 @@
|
| }
|
| #endif
|
| // Disable stub call restrictions to always allow calls to abort.
|
| - set_allow_stub_calls(true);
|
| + AllowStubCallsScope allow_scope(this, true);
|
|
|
| push(rax);
|
| movq(kScratchRegister, p0, RelocInfo::NONE);
|
| @@ -1116,7 +1116,7 @@
|
|
|
| void MacroAssembler::SmiAndConstant(Register dst, Register src, Smi* constant) {
|
| if (constant->value() == 0) {
|
| - xor_(dst, dst);
|
| + Set(dst, 0);
|
| } else if (dst.is(src)) {
|
| ASSERT(!dst.is(kScratchRegister));
|
| Register constant_reg = GetSmiConstant(constant);
|
| @@ -1611,7 +1611,7 @@
|
| #ifdef ENABLE_DEBUGGER_SUPPORT
|
| void MacroAssembler::DebugBreak() {
|
| ASSERT(allow_stub_calls());
|
| - xor_(rax, rax); // no arguments
|
| + Set(rax, 0); // No arguments.
|
| movq(rbx, ExternalReference(Runtime::kDebugBreak));
|
| CEntryStub ces(1);
|
| Call(ces.GetCode(), RelocInfo::DEBUG_BREAK);
|
|
|