OLD | NEW |
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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1766 // Process debug event. | 1766 // Process debug event. |
1767 ProcessDebugEvent(v8::Break, Handle<JSObject>::cast(event_data)); | 1767 ProcessDebugEvent(v8::Break, Handle<JSObject>::cast(event_data)); |
1768 } | 1768 } |
1769 | 1769 |
1770 | 1770 |
1771 void Debug::OnCompileError(Handle<Script> script) { | 1771 void Debug::OnCompileError(Handle<Script> script) { |
1772 ProcessCompileEvent(v8::CompileError, script); | 1772 ProcessCompileEvent(v8::CompileError, script); |
1773 } | 1773 } |
1774 | 1774 |
1775 | 1775 |
1776 void Debug::OnBeforeCompile(Handle<Script> script) { | |
1777 ProcessCompileEvent(v8::BeforeCompile, script); | |
1778 } | |
1779 | |
1780 | |
1781 // Handle debugger actions when a new script is compiled. | 1776 // Handle debugger actions when a new script is compiled. |
1782 void Debug::OnAfterCompile(Handle<Script> script) { | 1777 void Debug::OnAfterCompile(Handle<Script> script) { |
1783 ProcessCompileEvent(v8::AfterCompile, script); | 1778 ProcessCompileEvent(v8::AfterCompile, script); |
1784 } | 1779 } |
1785 | 1780 |
1786 void Debug::OnAsyncTaskEvent(Handle<String> type, Handle<Object> id, | 1781 void Debug::OnAsyncTaskEvent(Handle<String> type, Handle<Object> id, |
1787 Handle<String> name) { | 1782 Handle<String> name) { |
1788 DCHECK(id->IsNumber()); | 1783 DCHECK(id->IsNumber()); |
1789 if (in_debug_scope() || ignore_events()) return; | 1784 if (in_debug_scope() || ignore_events()) return; |
1790 | 1785 |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2130 v8::Debug::ClientData* EventDetailsImpl::GetClientData() const { | 2125 v8::Debug::ClientData* EventDetailsImpl::GetClientData() const { |
2131 return client_data_; | 2126 return client_data_; |
2132 } | 2127 } |
2133 | 2128 |
2134 v8::Isolate* EventDetailsImpl::GetIsolate() const { | 2129 v8::Isolate* EventDetailsImpl::GetIsolate() const { |
2135 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); | 2130 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); |
2136 } | 2131 } |
2137 | 2132 |
2138 } // namespace internal | 2133 } // namespace internal |
2139 } // namespace v8 | 2134 } // namespace v8 |
OLD | NEW |