Commit 681c15eb authored by yurys@chromium.org's avatar yurys@chromium.org

Remove debugger_auto_break flag

The flag was introduced to support console debugger in Chrome. That debugger was replaced by DevTools long time ago and the flag is always true now.

BUG=None
LOG=Y
R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/220743003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20393 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8f0d170c
...@@ -290,7 +290,7 @@ class V8_EXPORT Debug { ...@@ -290,7 +290,7 @@ class V8_EXPORT Debug {
* *
* Generally when message arrives V8 may be in one of 3 states: * Generally when message arrives V8 may be in one of 3 states:
* 1. V8 is running script; V8 will automatically interrupt and process all * 1. V8 is running script; V8 will automatically interrupt and process all
* pending messages (however auto_break flag should be enabled); * pending messages;
* 2. V8 is suspended on debug breakpoint; in this state V8 is dedicated * 2. V8 is suspended on debug breakpoint; in this state V8 is dedicated
* to reading and processing debug messages; * to reading and processing debug messages;
* 3. V8 is not running at all or has called some long-working C++ function; * 3. V8 is not running at all or has called some long-working C++ function;
......
...@@ -519,11 +519,9 @@ bool StackGuard::IsDebugCommand() { ...@@ -519,11 +519,9 @@ bool StackGuard::IsDebugCommand() {
void StackGuard::DebugCommand() { void StackGuard::DebugCommand() {
if (FLAG_debugger_auto_break) { ExecutionAccess access(isolate_);
ExecutionAccess access(isolate_); thread_local_.interrupt_flags_ |= DEBUGCOMMAND;
thread_local_.interrupt_flags_ |= DEBUGCOMMAND; set_interrupt_limits(access);
set_interrupt_limits(access);
}
} }
#endif #endif
......
...@@ -471,9 +471,6 @@ DEFINE_bool(trace_array_abuse, false, ...@@ -471,9 +471,6 @@ DEFINE_bool(trace_array_abuse, false,
"trace out-of-bounds accesses to all arrays") "trace out-of-bounds accesses to all arrays")
DEFINE_implication(trace_array_abuse, trace_js_array_abuse) DEFINE_implication(trace_array_abuse, trace_js_array_abuse)
DEFINE_implication(trace_array_abuse, trace_external_array_abuse) DEFINE_implication(trace_array_abuse, trace_external_array_abuse)
DEFINE_bool(debugger_auto_break, true,
"automatically set the debug break flag when debugger commands are "
"in the queue")
DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature") DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature")
DEFINE_bool(hard_abort, true, "abort by crashing") DEFINE_bool(hard_abort, true, "abort by crashing")
......
...@@ -5409,8 +5409,6 @@ void BreakpointsDebuggerThread::Run() { ...@@ -5409,8 +5409,6 @@ void BreakpointsDebuggerThread::Run() {
void TestRecursiveBreakpointsGeneric(bool global_evaluate) { void TestRecursiveBreakpointsGeneric(bool global_evaluate) {
i::FLAG_debugger_auto_break = true;
BreakpointsDebuggerThread breakpoints_debugger_thread(global_evaluate); BreakpointsDebuggerThread breakpoints_debugger_thread(global_evaluate);
BreakpointsV8Thread breakpoints_v8_thread; BreakpointsV8Thread breakpoints_v8_thread;
...@@ -5881,7 +5879,6 @@ void HostDispatchDebuggerThread::Run() { ...@@ -5881,7 +5879,6 @@ void HostDispatchDebuggerThread::Run() {
TEST(DebuggerHostDispatch) { TEST(DebuggerHostDispatch) {
HostDispatchDebuggerThread host_dispatch_debugger_thread; HostDispatchDebuggerThread host_dispatch_debugger_thread;
HostDispatchV8Thread host_dispatch_v8_thread; HostDispatchV8Thread host_dispatch_v8_thread;
i::FLAG_debugger_auto_break = true;
// Create a V8 environment // Create a V8 environment
Barriers stack_allocated_host_dispatch_barriers; Barriers stack_allocated_host_dispatch_barriers;
...@@ -5948,8 +5945,6 @@ TEST(DebuggerDebugMessageDispatch) { ...@@ -5948,8 +5945,6 @@ TEST(DebuggerDebugMessageDispatch) {
DebugMessageDispatchDebuggerThread debug_message_dispatch_debugger_thread; DebugMessageDispatchDebuggerThread debug_message_dispatch_debugger_thread;
DebugMessageDispatchV8Thread debug_message_dispatch_v8_thread; DebugMessageDispatchV8Thread debug_message_dispatch_v8_thread;
i::FLAG_debugger_auto_break = true;
// Create a V8 environment // Create a V8 environment
Barriers stack_allocated_debug_message_dispatch_barriers; Barriers stack_allocated_debug_message_dispatch_barriers;
debug_message_dispatch_barriers = debug_message_dispatch_barriers =
......
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