Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Side by Side Diff: src/debug.cc

Issue 6080009: Revert r6180 as it caused test failures (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.h ('k') | src/debug-agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 615
616 616
617 617
618 618
619 619
620 // Default break enabled. 620 // Default break enabled.
621 bool Debug::disable_break_ = false; 621 bool Debug::disable_break_ = false;
622 622
623 // Default call debugger on uncaught exception. 623 // Default call debugger on uncaught exception.
624 bool Debug::break_on_exception_ = false; 624 bool Debug::break_on_exception_ = false;
625 bool Debug::break_on_uncaught_exception_ = false; 625 bool Debug::break_on_uncaught_exception_ = true;
626 626
627 Handle<Context> Debug::debug_context_ = Handle<Context>(); 627 Handle<Context> Debug::debug_context_ = Handle<Context>();
628 Code* Debug::debug_break_return_ = NULL; 628 Code* Debug::debug_break_return_ = NULL;
629 Code* Debug::debug_break_slot_ = NULL; 629 Code* Debug::debug_break_slot_ = NULL;
630 630
631 631
632 void ScriptCache::Add(Handle<Script> script) { 632 void ScriptCache::Add(Handle<Script> script) {
633 // Create an entry in the hash map for the script. 633 // Create an entry in the hash map for the script.
634 int id = Smi::cast(script->id())->value(); 634 int id = Smi::cast(script->id())->value();
635 HashMap::Entry* entry = 635 HashMap::Entry* entry =
(...skipping 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
2733 // it starts. 2733 // it starts.
2734 // Provide stub message handler; V8 auto-continues each suspend 2734 // Provide stub message handler; V8 auto-continues each suspend
2735 // when there is no message handler; we doesn't need it. 2735 // when there is no message handler; we doesn't need it.
2736 // Once become suspended, V8 will stay so indefinitely long, until remote 2736 // Once become suspended, V8 will stay so indefinitely long, until remote
2737 // debugger connects and issues "continue" command. 2737 // debugger connects and issues "continue" command.
2738 Debugger::message_handler_ = StubMessageHandler2; 2738 Debugger::message_handler_ = StubMessageHandler2;
2739 v8::Debug::DebugBreak(); 2739 v8::Debug::DebugBreak();
2740 } 2740 }
2741 2741
2742 if (Socket::Setup()) { 2742 if (Socket::Setup()) {
2743 if (agent_ == NULL) { 2743 agent_ = new DebuggerAgent(name, port);
2744 agent_ = new DebuggerAgent(name, port); 2744 agent_->Start();
2745 agent_->Start();
2746 }
2747 return true; 2745 return true;
2748 } 2746 }
2749 2747
2750 return false; 2748 return false;
2751 } 2749 }
2752 2750
2753 2751
2754 void Debugger::StopAgent() { 2752 void Debugger::StopAgent() {
2755 if (agent_ != NULL) { 2753 if (agent_ != NULL) {
2756 agent_->Shutdown(); 2754 agent_->Shutdown();
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 { 3071 {
3074 Locker locker; 3072 Locker locker;
3075 Debugger::CallMessageDispatchHandler(); 3073 Debugger::CallMessageDispatchHandler();
3076 } 3074 }
3077 } 3075 }
3078 } 3076 }
3079 3077
3080 #endif // ENABLE_DEBUGGER_SUPPORT 3078 #endif // ENABLE_DEBUGGER_SUPPORT
3081 3079
3082 } } // namespace v8::internal 3080 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/debug-agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698