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

Side by Side Diff: src/debug/debug.cc

Issue 1932163002: Reland of move more dead code after Object.observe removal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: don't throw on error Created 4 years, 7 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
« no previous file with comments | « src/contexts.h ('k') | src/isolate.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/debug/debug.h" 5 #include "src/debug/debug.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 client_data); 1891 client_data);
1892 callback(event_details); 1892 callback(event_details);
1893 DCHECK(!isolate_->has_scheduled_exception()); 1893 DCHECK(!isolate_->has_scheduled_exception());
1894 } else { 1894 } else {
1895 // Invoke the JavaScript debug event listener. 1895 // Invoke the JavaScript debug event listener.
1896 DCHECK(event_listener_->IsJSFunction()); 1896 DCHECK(event_listener_->IsJSFunction());
1897 Handle<Object> argv[] = { Handle<Object>(Smi::FromInt(event), isolate_), 1897 Handle<Object> argv[] = { Handle<Object>(Smi::FromInt(event), isolate_),
1898 exec_state, 1898 exec_state,
1899 event_data, 1899 event_data,
1900 event_listener_data_ }; 1900 event_listener_data_ };
1901 Handle<JSReceiver> global(isolate_->global_proxy()); 1901 Handle<JSReceiver> global = isolate_->global_proxy();
1902 Execution::TryCall(isolate_, Handle<JSFunction>::cast(event_listener_), 1902 Execution::TryCall(isolate_, Handle<JSFunction>::cast(event_listener_),
1903 global, arraysize(argv), argv); 1903 global, arraysize(argv), argv);
1904 } 1904 }
1905 in_debug_event_listener_ = previous; 1905 in_debug_event_listener_ = previous;
1906 } 1906 }
1907 1907
1908 1908
1909 void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) { 1909 void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
1910 if (ignore_events()) return; 1910 if (ignore_events()) return;
1911 SuppressDebug while_processing(this); 1911 SuppressDebug while_processing(this);
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2586 } 2586 }
2587 2587
2588 2588
2589 void LockingCommandMessageQueue::Clear() { 2589 void LockingCommandMessageQueue::Clear() {
2590 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2590 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2591 queue_.Clear(); 2591 queue_.Clear();
2592 } 2592 }
2593 2593
2594 } // namespace internal 2594 } // namespace internal
2595 } // namespace v8 2595 } // namespace v8
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698