| 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 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1361 for (StackFrame* frame = iterator.NextFrame(); | 1361 for (StackFrame* frame = iterator.NextFrame(); |
| 1362 frame != NULL; | 1362 frame != NULL; |
| 1363 frame = iterator.NextFrame()) { | 1363 frame = iterator.NextFrame()) { |
| 1364 ASSERT(frame->IsValid()); | 1364 ASSERT(frame->IsValid()); |
| 1365 if (FLAG_trace_debugger_stacktrace) { | 1365 if (FLAG_trace_debugger_stacktrace) { |
| 1366 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n", | 1366 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n", |
| 1367 frame->ToCString()); | 1367 frame->ToCString()); |
| 1368 } | 1368 } |
| 1369 if (frame->IsDartFrame()) { | 1369 if (frame->IsDartFrame()) { |
| 1370 code = frame->LookupDartCode(); | 1370 code = frame->LookupDartCode(); |
| 1371 if (code.is_optimized()) { | 1371 if (code.is_optimized() && !Compiler::always_optimize()) { |
| 1372 deopt_frame = DeoptimizeToArray(isolate, frame, code); | 1372 deopt_frame = DeoptimizeToArray(isolate, frame, code); |
| 1373 for (InlinedFunctionsIterator it(code, frame->pc()); | 1373 for (InlinedFunctionsIterator it(code, frame->pc()); |
| 1374 !it.Done(); | 1374 !it.Done(); |
| 1375 it.Advance()) { | 1375 it.Advance()) { |
| 1376 inlined_code = it.code(); | 1376 inlined_code = it.code(); |
| 1377 if (FLAG_trace_debugger_stacktrace) { | 1377 if (FLAG_trace_debugger_stacktrace) { |
| 1378 const Function& function = | 1378 const Function& function = |
| 1379 Function::Handle(isolate, inlined_code.function()); | 1379 Function::Handle(isolate, inlined_code.function()); |
| 1380 ASSERT(!function.IsNull()); | 1380 ASSERT(!function.IsNull()); |
| 1381 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n", | 1381 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n", |
| (...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2925 } | 2925 } |
| 2926 | 2926 |
| 2927 | 2927 |
| 2928 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2928 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 2929 ASSERT(bpt->next() == NULL); | 2929 ASSERT(bpt->next() == NULL); |
| 2930 bpt->set_next(code_breakpoints_); | 2930 bpt->set_next(code_breakpoints_); |
| 2931 code_breakpoints_ = bpt; | 2931 code_breakpoints_ = bpt; |
| 2932 } | 2932 } |
| 2933 | 2933 |
| 2934 } // namespace dart | 2934 } // namespace dart |
| OLD | NEW |