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

Side by Side Diff: src/debug.cc

Issue 115941: Push bleeding_edge r2083 to trunk. The only change is the addition of... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 6 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/version.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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 auto_continue, 2037 auto_continue,
2038 Handle<JSObject>::cast(exec_state), 2038 Handle<JSObject>::cast(exec_state),
2039 Handle<JSObject>::cast(event_data)); 2039 Handle<JSObject>::cast(event_data));
2040 InvokeMessageHandler(message); 2040 InvokeMessageHandler(message);
2041 } 2041 }
2042 2042
2043 // If auto continue don't make the event cause a break, but process messages 2043 // If auto continue don't make the event cause a break, but process messages
2044 // in the queue if any. For script collected events don't even process 2044 // in the queue if any. For script collected events don't even process
2045 // messages in the queue as the execution state might not be what is expected 2045 // messages in the queue as the execution state might not be what is expected
2046 // by the client. 2046 // by the client.
2047 if (auto_continue && !HasCommands() || event == v8::ScriptCollected) { 2047 if ((auto_continue && !HasCommands()) || event == v8::ScriptCollected) {
2048 return; 2048 return;
2049 } 2049 }
2050 2050
2051 // Get the DebugCommandProcessor. 2051 // Get the DebugCommandProcessor.
2052 v8::Local<v8::Object> api_exec_state = 2052 v8::Local<v8::Object> api_exec_state =
2053 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)); 2053 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state));
2054 v8::Local<v8::String> fun_name = 2054 v8::Local<v8::String> fun_name =
2055 v8::String::New("debugCommandProcessor"); 2055 v8::String::New("debugCommandProcessor");
2056 v8::Local<v8::Function> fun = 2056 v8::Local<v8::Function> fun =
2057 v8::Function::Cast(*api_exec_state->Get(fun_name)); 2057 v8::Function::Cast(*api_exec_state->Get(fun_name));
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 2534
2535 2535
2536 void LockingCommandMessageQueue::Clear() { 2536 void LockingCommandMessageQueue::Clear() {
2537 ScopedLock sl(lock_); 2537 ScopedLock sl(lock_);
2538 queue_.Clear(); 2538 queue_.Clear();
2539 } 2539 }
2540 2540
2541 #endif // ENABLE_DEBUGGER_SUPPORT 2541 #endif // ENABLE_DEBUGGER_SUPPORT
2542 2542
2543 } } // namespace v8::internal 2543 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698