Commit feb20d30 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Change code contains function to allow a return address just after the last instruction

Then patching the return sequence for debugger break at return a call is placed at the very end of the instruction stream causing the return address to be just after the actual instruction in the code object.
Review URL: http://codereview.chromium.org/3151037

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5341 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 16a34196
......@@ -2936,7 +2936,7 @@ byte* Code::entry() {
bool Code::contains(byte* pc) {
return (instruction_start() <= pc) &&
(pc < instruction_start() + instruction_size());
(pc <= instruction_start() + instruction_size());
}
......
......@@ -51,6 +51,10 @@ test-api/OutOfMemoryNested: SKIP
# BUG(355): Test crashes on ARM.
test-log/ProfLazyMode: SKIP
# BUG(845)
test-debug/GCDuringBreakPointProcessing: SKIP
test-debug/BreakPointICCallWithGC: SKIP
[ $arch == mips ]
test-accessors: SKIP
test-alloc: SKIP
......
......@@ -870,7 +870,7 @@ static void DebugEventBreakPointCollectGarbage(
Heap::CollectGarbage(0, v8::internal::NEW_SPACE);
} else {
// Mark sweep (and perhaps compact).
Heap::CollectAllGarbage(false);
Heap::CollectAllGarbage(true);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment