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

Side by Side Diff: src/debug.h

Issue 50007: Better handling of startup and shutdown of the debugger agent (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 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 | « no previous file | src/debug.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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 static bool HasCommands(); 436 static bool HasCommands();
437 static void ProcessHostDispatch(void* dispatch); 437 static void ProcessHostDispatch(void* dispatch);
438 static void UpdateActiveDebugger(); 438 static void UpdateActiveDebugger();
439 static Handle<Object> Call(Handle<JSFunction> fun, 439 static Handle<Object> Call(Handle<JSFunction> fun,
440 Handle<Object> data, 440 Handle<Object> data,
441 bool* pending_exception); 441 bool* pending_exception);
442 442
443 // Start the debugger agent listening on the provided port. 443 // Start the debugger agent listening on the provided port.
444 static bool StartAgent(int port); 444 static bool StartAgent(int port);
445 445
446 // Stop the debugger agent.
447 static void StopAgent();
448
446 inline static bool EventActive(v8::DebugEvent event) { 449 inline static bool EventActive(v8::DebugEvent event) {
447 // Currently argument event is not used. 450 // Currently argument event is not used.
448 return !Debugger::compiling_natives_ && Debugger::debugger_active_; 451 return !Debugger::compiling_natives_ && Debugger::debugger_active_;
449 } 452 }
450 453
451 static void set_debugger_active(bool debugger_active) { 454 static void set_debugger_active(bool debugger_active) {
452 Debugger::debugger_active_ = debugger_active; 455 Debugger::debugger_active_ = debugger_active;
453 } 456 }
454 static bool debugger_active() { return Debugger::debugger_active_; } 457 static bool debugger_active() { return Debugger::debugger_active_; }
455 static void set_compiling_natives(bool compiling_natives) { 458 static void set_compiling_natives(bool compiling_natives) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 698 }
696 private: 699 private:
697 Debug::AddressId id_; 700 Debug::AddressId id_;
698 int reg_; 701 int reg_;
699 }; 702 };
700 703
701 704
702 } } // namespace v8::internal 705 } } // namespace v8::internal
703 706
704 #endif // V8_V8_DEBUG_H_ 707 #endif // V8_V8_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698