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

Side by Side Diff: src/debug.cc

Issue 481005: Extend DebugAgent API with AsyncDebugRunner (Closed)
Patch Set: documentation Created 11 years 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
« no previous file with comments | « src/debug.h ('k') | no next file » | 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 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 } 2476 }
2477 2477
2478 static const int kArgc = 2; 2478 static const int kArgc = 2;
2479 Object** argv[kArgc] = { exec_state.location(), data.location() }; 2479 Object** argv[kArgc] = { exec_state.location(), data.location() };
2480 Handle<Object> result = Execution::Call(fun, Factory::undefined_value(), 2480 Handle<Object> result = Execution::Call(fun, Factory::undefined_value(),
2481 kArgc, argv, pending_exception); 2481 kArgc, argv, pending_exception);
2482 return result; 2482 return result;
2483 } 2483 }
2484 2484
2485 2485
2486 bool Debugger::StartAgent(const char* name, int port) { 2486 bool Debugger::StartAgent(const char* name, int port
2487 AsyncDebugRunner async_debug_runner) {
2488 // TODO(peter.rybin): make use of async_debug_runner
2489
2487 if (Socket::Setup()) { 2490 if (Socket::Setup()) {
2488 agent_ = new DebuggerAgent(name, port); 2491 agent_ = new DebuggerAgent(name, port);
2489 agent_->Start(); 2492 agent_->Start();
2490 return true; 2493 return true;
2491 } 2494 }
2492 2495
2493 return false; 2496 return false;
2494 } 2497 }
2495 2498
2496 2499
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2725 2728
2726 2729
2727 void LockingCommandMessageQueue::Clear() { 2730 void LockingCommandMessageQueue::Clear() {
2728 ScopedLock sl(lock_); 2731 ScopedLock sl(lock_);
2729 queue_.Clear(); 2732 queue_.Clear();
2730 } 2733 }
2731 2734
2732 #endif // ENABLE_DEBUGGER_SUPPORT 2735 #endif // ENABLE_DEBUGGER_SUPPORT
2733 2736
2734 } } // namespace v8::internal 2737 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698