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

Side by Side Diff: src/api.cc

Issue 93118: Removed the debug message thread (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 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 | « 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 3246 matching lines...) Expand 10 before | Expand all | Expand 10 after
3257 void Debug::DebugBreak() { 3257 void Debug::DebugBreak() {
3258 if (!i::V8::HasBeenSetup()) return; 3258 if (!i::V8::HasBeenSetup()) return;
3259 i::StackGuard::DebugBreak(); 3259 i::StackGuard::DebugBreak();
3260 } 3260 }
3261 3261
3262 3262
3263 void Debug::SetMessageHandler(v8::Debug::MessageHandler handler, 3263 void Debug::SetMessageHandler(v8::Debug::MessageHandler handler,
3264 bool message_handler_thread) { 3264 bool message_handler_thread) {
3265 EnsureInitialized("v8::Debug::SetMessageHandler"); 3265 EnsureInitialized("v8::Debug::SetMessageHandler");
3266 ENTER_V8; 3266 ENTER_V8;
3267 i::Debugger::SetMessageHandler(handler, message_handler_thread); 3267 // Message handler thread not supported any more. Parameter temporally left in
3268 // the API for client compatability reasons.
3269 CHECK(!message_handler_thread);
3270 i::Debugger::SetMessageHandler(handler);
3268 } 3271 }
3269 3272
3270 3273
3271 void Debug::SendCommand(const uint16_t* command, int length, 3274 void Debug::SendCommand(const uint16_t* command, int length,
3272 ClientData* client_data) { 3275 ClientData* client_data) {
3273 if (!i::V8::HasBeenSetup()) return; 3276 if (!i::V8::HasBeenSetup()) return;
3274 i::Debugger::ProcessCommand(i::Vector<const uint16_t>(command, length), 3277 i::Debugger::ProcessCommand(i::Vector<const uint16_t>(command, length),
3275 client_data); 3278 client_data);
3276 } 3279 }
3277 3280
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
3384 reinterpret_cast<HandleScopeImplementer*>(storage); 3387 reinterpret_cast<HandleScopeImplementer*>(storage);
3385 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); 3388 List<void**>* blocks_of_archived_thread = thread_local->Blocks();
3386 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = 3389 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread =
3387 &thread_local->handle_scope_data_; 3390 &thread_local->handle_scope_data_;
3388 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); 3391 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread);
3389 3392
3390 return storage + ArchiveSpacePerThread(); 3393 return storage + ArchiveSpacePerThread();
3391 } 3394 }
3392 3395
3393 } } // namespace v8::internal 3396 } } // 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