| 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 const int8_t kind = var_info.kind(); | 667 const int8_t kind = var_info.kind(); |
| 668 if (kind == RawLocalVarDescriptors::kSavedCurrentContext) { | 668 if (kind == RawLocalVarDescriptors::kSavedCurrentContext) { |
| 669 if (FLAG_trace_debugger_stacktrace) { | 669 if (FLAG_trace_debugger_stacktrace) { |
| 670 OS::PrintErr("\tFound saved current ctx at index %d\n", | 670 OS::PrintErr("\tFound saved current ctx at index %d\n", |
| 671 var_info.index()); | 671 var_info.index()); |
| 672 } | 672 } |
| 673 ctx_ ^= GetStackVar(var_info.index()); | 673 ctx_ ^= GetStackVar(var_info.index()); |
| 674 return ctx_; | 674 return ctx_; |
| 675 } | 675 } |
| 676 } | 676 } |
| 677 UNREACHABLE(); | |
| 678 return Context::ZoneHandle(Context::null()); | 677 return Context::ZoneHandle(Context::null()); |
| 679 } | 678 } |
| 680 | 679 |
| 681 | 680 |
| 682 RawObject* ActivationFrame::GetAsyncOperation() { | 681 RawObject* ActivationFrame::GetAsyncOperation() { |
| 683 GetVarDescriptors(); | 682 GetVarDescriptors(); |
| 684 intptr_t var_desc_len = var_descriptors_.Length(); | 683 intptr_t var_desc_len = var_descriptors_.Length(); |
| 685 for (intptr_t i = 0; i < var_desc_len; i++) { | 684 for (intptr_t i = 0; i < var_desc_len; i++) { |
| 686 RawLocalVarDescriptors::VarInfo var_info; | 685 RawLocalVarDescriptors::VarInfo var_info; |
| 687 var_descriptors_.GetInfo(i, &var_info); | 686 var_descriptors_.GetInfo(i, &var_info); |
| (...skipping 2485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3173 } | 3172 } |
| 3174 | 3173 |
| 3175 | 3174 |
| 3176 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 3175 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 3177 ASSERT(bpt->next() == NULL); | 3176 ASSERT(bpt->next() == NULL); |
| 3178 bpt->set_next(code_breakpoints_); | 3177 bpt->set_next(code_breakpoints_); |
| 3179 code_breakpoints_ = bpt; | 3178 code_breakpoints_ = bpt; |
| 3180 } | 3179 } |
| 3181 | 3180 |
| 3182 } // namespace dart | 3181 } // namespace dart |
| OLD | NEW |