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

Side by Side Diff: src/api.cc

Issue 491079: Reapply "wait for connection" feature implementation (Closed)
Patch Set: merge 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 3723 matching lines...) Expand 10 before | Expand all | Expand 10 after
3734 v8::Handle<v8::Value> argv[kArgc] = { obj }; 3734 v8::Handle<v8::Value> argv[kArgc] = { obj };
3735 EXCEPTION_PREAMBLE(); 3735 EXCEPTION_PREAMBLE();
3736 v8::Handle<v8::Value> result = v8_fun->Call(Utils::ToLocal(debug), 3736 v8::Handle<v8::Value> result = v8_fun->Call(Utils::ToLocal(debug),
3737 kArgc, 3737 kArgc,
3738 argv); 3738 argv);
3739 EXCEPTION_BAILOUT_CHECK(Local<Value>()); 3739 EXCEPTION_BAILOUT_CHECK(Local<Value>());
3740 return scope.Close(result); 3740 return scope.Close(result);
3741 } 3741 }
3742 3742
3743 3743
3744 bool Debug::EnableAgent(const char* name, int port) { 3744 bool Debug::EnableAgent(const char* name, int port, bool wait_for_connection) {
3745 return i::Debugger::StartAgent(name, port); 3745 return i::Debugger::StartAgent(name, port, wait_for_connection);
3746 } 3746 }
3747 #endif // ENABLE_DEBUGGER_SUPPORT 3747 #endif // ENABLE_DEBUGGER_SUPPORT
3748 3748
3749 namespace internal { 3749 namespace internal {
3750 3750
3751 3751
3752 HandleScopeImplementer* HandleScopeImplementer::instance() { 3752 HandleScopeImplementer* HandleScopeImplementer::instance() {
3753 return &thread_local; 3753 return &thread_local;
3754 } 3754 }
3755 3755
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3822 3822
3823 3823
3824 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 3824 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
3825 HandleScopeImplementer* thread_local = 3825 HandleScopeImplementer* thread_local =
3826 reinterpret_cast<HandleScopeImplementer*>(storage); 3826 reinterpret_cast<HandleScopeImplementer*>(storage);
3827 thread_local->IterateThis(v); 3827 thread_local->IterateThis(v);
3828 return storage + ArchiveSpacePerThread(); 3828 return storage + ArchiveSpacePerThread();
3829 } 3829 }
3830 3830
3831 } } // namespace v8::internal 3831 } } // 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