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

Side by Side Diff: src/debug.cc

Issue 6113004: Version 3.0.7 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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_ = true; 625 bool Debug::break_on_uncaught_exception_ = false;
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 agent_ = new DebuggerAgent(name, port); 2743 if (agent_ == NULL) {
2744 agent_->Start(); 2744 agent_ = new DebuggerAgent(name, port);
2745 agent_->Start();
2746 }
2745 return true; 2747 return true;
2746 } 2748 }
2747 2749
2748 return false; 2750 return false;
2749 } 2751 }
2750 2752
2751 2753
2752 void Debugger::StopAgent() { 2754 void Debugger::StopAgent() {
2753 if (agent_ != NULL) { 2755 if (agent_ != NULL) {
2754 agent_->Shutdown(); 2756 agent_->Shutdown();
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 { 3073 {
3072 Locker locker; 3074 Locker locker;
3073 Debugger::CallMessageDispatchHandler(); 3075 Debugger::CallMessageDispatchHandler();
3074 } 3076 }
3075 } 3077 }
3076 } 3078 }
3077 3079
3078 #endif // ENABLE_DEBUGGER_SUPPORT 3080 #endif // ENABLE_DEBUGGER_SUPPORT
3079 3081
3080 } } // namespace v8::internal 3082 } } // 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