Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
| 6 | 6 |
| 7 #include "vm/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
| 8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
| 9 #include "vm/debugger.h" | 9 #include "vm/debugger.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 | 159 |
| 160 DART_EXPORT Dart_Handle Dart_SetExceptionPauseInfo( | 160 DART_EXPORT Dart_Handle Dart_SetExceptionPauseInfo( |
| 161 Dart_ExceptionPauseInfo pause_info) { | 161 Dart_ExceptionPauseInfo pause_info) { |
| 162 Isolate* isolate = Isolate::Current(); | 162 Isolate* isolate = Isolate::Current(); |
| 163 DARTSCOPE(isolate); | 163 DARTSCOPE(isolate); |
| 164 isolate->debugger()->SetExceptionPauseInfo(pause_info); | 164 isolate->debugger()->SetExceptionPauseInfo(pause_info); |
| 165 return Api::True(isolate); | 165 return Api::True(isolate); |
| 166 } | 166 } |
| 167 | 167 |
| 168 | 168 |
| 169 DART_EXPORT Dart_ExceptionPauseInfo Dart_GetExceptionPauseInfo() { | |
| 170 Isolate* isolate = Isolate::Current(); | |
| 171 DARTSCOPE(isolate); | |
| 172 return isolate->debugger()->GetExceptionPauseInfo(); | |
| 173 } | |
| 174 | |
|
hausner
2012/09/12 17:09:59
Two empty lines please.
devoncarew
2012/09/12 17:20:52
Done.
| |
| 169 DART_EXPORT Dart_Handle Dart_GetStackTrace(Dart_StackTrace* trace) { | 175 DART_EXPORT Dart_Handle Dart_GetStackTrace(Dart_StackTrace* trace) { |
| 170 Isolate* isolate = Isolate::Current(); | 176 Isolate* isolate = Isolate::Current(); |
| 171 DARTSCOPE(isolate); | 177 DARTSCOPE(isolate); |
| 172 CHECK_NOT_NULL(trace); | 178 CHECK_NOT_NULL(trace); |
| 173 *trace = reinterpret_cast<Dart_StackTrace>(isolate->debugger()->StackTrace()); | 179 *trace = reinterpret_cast<Dart_StackTrace>(isolate->debugger()->StackTrace()); |
| 174 return Api::True(isolate); | 180 return Api::True(isolate); |
| 175 } | 181 } |
| 176 | 182 |
| 177 | 183 |
| 178 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( | 184 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 684 if (lib.IsNull()) { | 690 if (lib.IsNull()) { |
| 685 return Api::NewError("%s: %"Pd" is not a valid library id", | 691 return Api::NewError("%s: %"Pd" is not a valid library id", |
| 686 CURRENT_FUNC, library_id); | 692 CURRENT_FUNC, library_id); |
| 687 } | 693 } |
| 688 lib.set_debuggable(is_debuggable); | 694 lib.set_debuggable(is_debuggable); |
| 689 return Api::True(isolate); | 695 return Api::True(isolate); |
| 690 } | 696 } |
| 691 | 697 |
| 692 | 698 |
| 693 } // namespace dart | 699 } // namespace dart |
| OLD | NEW |