Index: src/ia32/debug-ia32.cc |
=================================================================== |
--- src/ia32/debug-ia32.cc (revision 9277) |
+++ src/ia32/debug-ia32.cc (working copy) |
@@ -100,59 +100,60 @@ |
RegList non_object_regs, |
bool convert_call_to_jmp) { |
// Enter an internal frame. |
- __ EnterInternalFrame(); |
+ { |
+ FrameScope scope(masm, StackFrame::INTERNAL); |
- // Store the registers containing live values on the expression stack to |
- // make sure that these are correctly updated during GC. Non object values |
- // are stored as a smi causing it to be untouched by GC. |
- ASSERT((object_regs & ~kJSCallerSaved) == 0); |
- ASSERT((non_object_regs & ~kJSCallerSaved) == 0); |
- ASSERT((object_regs & non_object_regs) == 0); |
- for (int i = 0; i < kNumJSCallerSaved; i++) { |
- int r = JSCallerSavedCode(i); |
- Register reg = { r }; |
- if ((object_regs & (1 << r)) != 0) { |
- __ push(reg); |
- } |
- if ((non_object_regs & (1 << r)) != 0) { |
- if (FLAG_debug_code) { |
- __ test(reg, Immediate(0xc0000000)); |
- __ Assert(zero, "Unable to encode value as smi"); |
+ // Store the registers containing live values on the expression stack to |
+ // make sure that these are correctly updated during GC. Non object values |
+ // are stored as a smi causing it to be untouched by GC. |
+ ASSERT((object_regs & ~kJSCallerSaved) == 0); |
+ ASSERT((non_object_regs & ~kJSCallerSaved) == 0); |
+ ASSERT((object_regs & non_object_regs) == 0); |
+ for (int i = 0; i < kNumJSCallerSaved; i++) { |
+ int r = JSCallerSavedCode(i); |
+ Register reg = { r }; |
+ if ((object_regs & (1 << r)) != 0) { |
+ __ push(reg); |
} |
- __ SmiTag(reg); |
- __ push(reg); |
+ if ((non_object_regs & (1 << r)) != 0) { |
+ if (FLAG_debug_code) { |
+ __ test(reg, Immediate(0xc0000000)); |
+ __ Assert(zero, "Unable to encode value as smi"); |
+ } |
+ __ SmiTag(reg); |
+ __ push(reg); |
+ } |
} |
- } |
#ifdef DEBUG |
- __ RecordComment("// Calling from debug break to runtime - come in - over"); |
+ __ RecordComment("// Calling from debug break to runtime - come in - over"); |
#endif |
- __ Set(eax, Immediate(0)); // No arguments. |
- __ mov(ebx, Immediate(ExternalReference::debug_break(masm->isolate()))); |
+ __ Set(eax, Immediate(0)); // No arguments. |
+ __ mov(ebx, Immediate(ExternalReference::debug_break(masm->isolate()))); |
- CEntryStub ceb(1); |
- __ CallStub(&ceb); |
+ CEntryStub ceb(1); |
+ __ CallStub(&ceb); |
- // Restore the register values containing object pointers from the expression |
- // stack. |
- for (int i = kNumJSCallerSaved; --i >= 0;) { |
- int r = JSCallerSavedCode(i); |
- Register reg = { r }; |
- if (FLAG_debug_code) { |
- __ Set(reg, Immediate(kDebugZapValue)); |
+ // Restore the register values containing object pointers from the |
+ // expression stack. |
+ for (int i = kNumJSCallerSaved; --i >= 0;) { |
+ int r = JSCallerSavedCode(i); |
+ Register reg = { r }; |
+ if (FLAG_debug_code) { |
+ __ Set(reg, Immediate(kDebugZapValue)); |
+ } |
+ if ((object_regs & (1 << r)) != 0) { |
+ __ pop(reg); |
+ } |
+ if ((non_object_regs & (1 << r)) != 0) { |
+ __ pop(reg); |
+ __ SmiUntag(reg); |
+ } |
} |
- if ((object_regs & (1 << r)) != 0) { |
- __ pop(reg); |
- } |
- if ((non_object_regs & (1 << r)) != 0) { |
- __ pop(reg); |
- __ SmiUntag(reg); |
- } |
+ |
+ // Get rid of the internal frame. |
} |
- // Get rid of the internal frame. |
- __ LeaveInternalFrame(); |
- |
// If this call did not replace a call but patched other code then there will |
// be an unwanted return address left on the stack. Here we get rid of that. |
if (convert_call_to_jmp) { |