vendor/v8/src/ia32/debug-ia32.cc in mustang-0.0.1 vs vendor/v8/src/ia32/debug-ia32.cc in mustang-0.1.0

- old
+ new

@@ -47,11 +47,12 @@ // CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-ia32.cc // for the precise return instructions sequence. void BreakLocationIterator::SetDebugBreakAtReturn() { ASSERT(Assembler::kJSReturnSequenceLength >= Assembler::kCallInstructionLength); - rinfo()->PatchCodeWithCall(Debug::debug_break_return()->entry(), + Isolate* isolate = Isolate::Current(); + rinfo()->PatchCodeWithCall(isolate->debug()->debug_break_return()->entry(), Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength); } // Restore the JS frame exit code. @@ -76,12 +77,13 @@ } void BreakLocationIterator::SetDebugBreakAtSlot() { ASSERT(IsDebugBreakSlot()); + Isolate* isolate = Isolate::Current(); rinfo()->PatchCodeWithCall( - Debug::debug_break_slot()->entry(), + isolate->debug()->debug_break_slot()->entry(), Assembler::kDebugBreakSlotLength - Assembler::kCallInstructionLength); } void BreakLocationIterator::ClearDebugBreakAtSlot() { @@ -124,11 +126,11 @@ #ifdef DEBUG __ RecordComment("// Calling from debug break to runtime - come in - over"); #endif __ Set(eax, Immediate(0)); // No arguments. - __ mov(ebx, Immediate(ExternalReference::debug_break())); + __ mov(ebx, Immediate(ExternalReference::debug_break(masm->isolate()))); CEntryStub ceb(1); __ CallStub(&ceb); // Restore the register values containing object pointers from the expression @@ -159,11 +161,11 @@ // Now that the break point has been handled, resume normal execution by // jumping to the target address intended by the caller and that was // overwritten by the address of DebugBreakXXX. ExternalReference after_break_target = - ExternalReference(Debug_Address::AfterBreakTarget()); + ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); __ jmp(Operand::StaticVariable(after_break_target)); } void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { @@ -275,10 +277,11 @@ } void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { ExternalReference restarter_frame_function_slot = - ExternalReference(Debug_Address::RestarterFrameFunctionPointer()); + ExternalReference(Debug_Address::RestarterFrameFunctionPointer(), + masm->isolate()); __ mov(Operand::StaticVariable(restarter_frame_function_slot), Immediate(0)); // We do not know our frame height, but set esp based on ebp. __ lea(esp, Operand(ebp, -1 * kPointerSize));