| Index: src/debug-ia32.cc
|
| ===================================================================
|
| --- src/debug-ia32.cc (revision 1255)
|
| +++ src/debug-ia32.cc (working copy)
|
| @@ -37,7 +37,7 @@
|
| // A debug break in the frame exit code is identified by a call instruction.
|
| bool BreakLocationIterator::IsDebugBreakAtReturn() {
|
| // Opcode E8 is call.
|
| - return (*(rinfo()->pc()) == 0xE8);
|
| + return Debug::IsDebugBreakAtReturn(rinfo());
|
| }
|
|
|
|
|
| @@ -59,6 +59,14 @@
|
| }
|
|
|
|
|
| +// Check whether the JS frame exit code has been patched with a debug break.
|
| +bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) {
|
| + ASSERT(RelocInfo::IsJSReturn(rinfo->rmode()));
|
| + // Opcode E8 is call.
|
| + return (*(rinfo->pc()) == 0xE8);
|
| +}
|
| +
|
| +
|
| #define __ masm->
|
|
|
|
|
|
|