Commit 04c4d908 authored by leonclarke@gmail.com's avatar leonclarke@gmail.com

DebugBreak shouldn't be used when ENABLE_DEBUGGER_SUPPORT isn't defined.

Review URL: http://codereview.chromium.org/568017

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3784 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 76e7d752
......@@ -505,11 +505,12 @@ void ApiGetterEntryStub::SetCustomCache(Code* value) {
info()->set_load_stub_cache(value);
}
#ifdef ENABLE_DEBUGGER_SUPPORT
void DebuggerStatementStub::Generate(MacroAssembler* masm) {
Runtime::Function* f = Runtime::FunctionForId(Runtime::kDebugBreak);
masm->TailCallRuntime(ExternalReference(f), 0, f->result_size);
}
#endif
} } // namespace v8::internal
......@@ -1498,10 +1498,12 @@ void Heap::CreateRegExpCEntryStub() {
#endif
#ifdef ENABLE_DEBUGGER_SUPPORT
void Heap::CreateCEntryDebugBreakStub() {
DebuggerStatementStub stub;
set_debugger_statement_code(*stub.GetCode());
}
#endif
void Heap::CreateJSEntryStub() {
......@@ -1531,7 +1533,9 @@ void Heap::CreateFixedStubs() {
// }
// To workaround the problem, make separate functions without inlining.
Heap::CreateCEntryStub();
#ifdef ENABLE_DEBUGGER_SUPPORT
Heap::CreateCEntryDebugBreakStub();
#endif
Heap::CreateJSEntryStub();
Heap::CreateJSConstructEntryStub();
#if V8_TARGET_ARCH_ARM && V8_NATIVE_REGEXP
......
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