| 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 "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1512 for (StackFrame* frame = iterator.NextFrame(); | 1512 for (StackFrame* frame = iterator.NextFrame(); |
| 1513 frame != NULL; | 1513 frame != NULL; |
| 1514 frame = iterator.NextFrame()) { | 1514 frame = iterator.NextFrame()) { |
| 1515 ASSERT(frame->IsValid()); | 1515 ASSERT(frame->IsValid()); |
| 1516 if (FLAG_trace_debugger_stacktrace) { | 1516 if (FLAG_trace_debugger_stacktrace) { |
| 1517 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n", | 1517 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n", |
| 1518 frame->ToCString()); | 1518 frame->ToCString()); |
| 1519 } | 1519 } |
| 1520 if (frame->IsDartFrame()) { | 1520 if (frame->IsDartFrame()) { |
| 1521 code = frame->LookupDartCode(); | 1521 code = frame->LookupDartCode(); |
| 1522 if (code.is_optimized() && !FLAG_precompiled_mode) { | 1522 if (code.is_optimized() && !FLAG_precompiled_runtime) { |
| 1523 deopt_frame = DeoptimizeToArray(thread, frame, code); | 1523 deopt_frame = DeoptimizeToArray(thread, frame, code); |
| 1524 for (InlinedFunctionsIterator it(code, frame->pc()); | 1524 for (InlinedFunctionsIterator it(code, frame->pc()); |
| 1525 !it.Done(); | 1525 !it.Done(); |
| 1526 it.Advance()) { | 1526 it.Advance()) { |
| 1527 inlined_code = it.code(); | 1527 inlined_code = it.code(); |
| 1528 if (FLAG_trace_debugger_stacktrace) { | 1528 if (FLAG_trace_debugger_stacktrace) { |
| 1529 const Function& function = | 1529 const Function& function = |
| 1530 Function::Handle(zone, inlined_code.function()); | 1530 Function::Handle(zone, inlined_code.function()); |
| 1531 ASSERT(!function.IsNull()); | 1531 ASSERT(!function.IsNull()); |
| 1532 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n", | 1532 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n", |
| (...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3344 | 3344 |
| 3345 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 3345 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 3346 ASSERT(bpt->next() == NULL); | 3346 ASSERT(bpt->next() == NULL); |
| 3347 bpt->set_next(code_breakpoints_); | 3347 bpt->set_next(code_breakpoints_); |
| 3348 code_breakpoints_ = bpt; | 3348 code_breakpoints_ = bpt; |
| 3349 } | 3349 } |
| 3350 | 3350 |
| 3351 #endif // !PRODUCT | 3351 #endif // !PRODUCT |
| 3352 | 3352 |
| 3353 } // namespace dart | 3353 } // namespace dart |
| OLD | NEW |