| 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 "vm/debugger.h" | 5 #include "vm/debugger.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "platform/address_sanitizer.h" | 9 #include "platform/address_sanitizer.h" |
| 10 | 10 |
| (...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1967 } | 1967 } |
| 1968 // Follow the link. | 1968 // Follow the link. |
| 1969 async_stack_trace = async_stack_trace.async_link(); | 1969 async_stack_trace = async_stack_trace.async_link(); |
| 1970 } | 1970 } |
| 1971 | 1971 |
| 1972 return stack_trace; | 1972 return stack_trace; |
| 1973 } | 1973 } |
| 1974 | 1974 |
| 1975 | 1975 |
| 1976 DebuggerStackTrace* Debugger::CollectAwaiterReturnStackTrace() { | 1976 DebuggerStackTrace* Debugger::CollectAwaiterReturnStackTrace() { |
| 1977 if (!FLAG_async_debugger_stepping) { | 1977 if (!FLAG_causal_async_stacks) { |
| 1978 return NULL; | 1978 return NULL; |
| 1979 } | 1979 } |
| 1980 // Causal async stacks are not supported in the AOT runtime. | 1980 // Causal async stacks are not supported in the AOT runtime. |
| 1981 ASSERT(!FLAG_precompiled_runtime); | 1981 ASSERT(!FLAG_precompiled_runtime); |
| 1982 | 1982 |
| 1983 Thread* thread = Thread::Current(); | 1983 Thread* thread = Thread::Current(); |
| 1984 Zone* zone = thread->zone(); | 1984 Zone* zone = thread->zone(); |
| 1985 Isolate* isolate = thread->isolate(); | 1985 Isolate* isolate = thread->isolate(); |
| 1986 DebuggerStackTrace* stack_trace = new DebuggerStackTrace(8); | 1986 DebuggerStackTrace* stack_trace = new DebuggerStackTrace(8); |
| 1987 | 1987 |
| (...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4353 | 4353 |
| 4354 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 4354 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 4355 ASSERT(bpt->next() == NULL); | 4355 ASSERT(bpt->next() == NULL); |
| 4356 bpt->set_next(code_breakpoints_); | 4356 bpt->set_next(code_breakpoints_); |
| 4357 code_breakpoints_ = bpt; | 4357 code_breakpoints_ = bpt; |
| 4358 } | 4358 } |
| 4359 | 4359 |
| 4360 #endif // !PRODUCT | 4360 #endif // !PRODUCT |
| 4361 | 4361 |
| 4362 } // namespace dart | 4362 } // namespace dart |
| OLD | NEW |