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

Side by Side Diff: src/api.cc

Issue 489005: Implement "wait for connection" feature (Closed)
Patch Set: follow codereview 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 | « include/v8-debug.h ('k') | src/debug.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 3809 matching lines...) Expand 10 before | Expand all | Expand 10 after
3820 v8::Handle<v8::Value> argv[kArgc] = { obj }; 3820 v8::Handle<v8::Value> argv[kArgc] = { obj };
3821 EXCEPTION_PREAMBLE(); 3821 EXCEPTION_PREAMBLE();
3822 v8::Handle<v8::Value> result = v8_fun->Call(Utils::ToLocal(debug), 3822 v8::Handle<v8::Value> result = v8_fun->Call(Utils::ToLocal(debug),
3823 kArgc, 3823 kArgc,
3824 argv); 3824 argv);
3825 EXCEPTION_BAILOUT_CHECK(Local<Value>()); 3825 EXCEPTION_BAILOUT_CHECK(Local<Value>());
3826 return scope.Close(result); 3826 return scope.Close(result);
3827 } 3827 }
3828 3828
3829 3829
3830 bool Debug::EnableAgent(const char* name, int port) { 3830 bool Debug::EnableAgent(const char* name, int port, bool wait_for_connection) {
3831 return i::Debugger::StartAgent(name, port); 3831 return i::Debugger::StartAgent(name, port, wait_for_connection);
3832 } 3832 }
3833 #endif // ENABLE_DEBUGGER_SUPPORT 3833 #endif // ENABLE_DEBUGGER_SUPPORT
3834 3834
3835 namespace internal { 3835 namespace internal {
3836 3836
3837 3837
3838 HandleScopeImplementer* HandleScopeImplementer::instance() { 3838 HandleScopeImplementer* HandleScopeImplementer::instance() {
3839 return &thread_local; 3839 return &thread_local;
3840 } 3840 }
3841 3841
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3908 3908
3909 3909
3910 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 3910 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
3911 HandleScopeImplementer* thread_local = 3911 HandleScopeImplementer* thread_local =
3912 reinterpret_cast<HandleScopeImplementer*>(storage); 3912 reinterpret_cast<HandleScopeImplementer*>(storage);
3913 thread_local->IterateThis(v); 3913 thread_local->IterateThis(v);
3914 return storage + ArchiveSpacePerThread(); 3914 return storage + ArchiveSpacePerThread();
3915 } 3915 }
3916 3916
3917 } } // namespace v8::internal 3917 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8-debug.h ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698