| 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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 ctx_ ^= Closure::Cast(obj).context(); | 948 ctx_ ^= Closure::Cast(obj).context(); |
| 949 } else if (obj.IsContext()) { | 949 } else if (obj.IsContext()) { |
| 950 ctx_ ^= Context::Cast(obj).raw(); | 950 ctx_ ^= Context::Cast(obj).raw(); |
| 951 } else { | 951 } else { |
| 952 ASSERT(obj.IsNull()); | 952 ASSERT(obj.IsNull()); |
| 953 } | 953 } |
| 954 return ctx_; | 954 return ctx_; |
| 955 } | 955 } |
| 956 } | 956 } |
| 957 return ctx_; | 957 return ctx_; |
| 958 return Context::ZoneHandle(Context::null()); | |
| 959 } | 958 } |
| 960 | 959 |
| 961 | 960 |
| 962 RawObject* ActivationFrame::GetAsyncOperation() { | 961 RawObject* ActivationFrame::GetAsyncOperation() { |
| 963 GetVarDescriptors(); | 962 GetVarDescriptors(); |
| 964 intptr_t var_desc_len = var_descriptors_.Length(); | 963 intptr_t var_desc_len = var_descriptors_.Length(); |
| 965 for (intptr_t i = 0; i < var_desc_len; i++) { | 964 for (intptr_t i = 0; i < var_desc_len; i++) { |
| 966 RawLocalVarDescriptors::VarInfo var_info; | 965 RawLocalVarDescriptors::VarInfo var_info; |
| 967 var_descriptors_.GetInfo(i, &var_info); | 966 var_descriptors_.GetInfo(i, &var_info); |
| 968 if (var_descriptors_.GetName(i) == Symbols::AsyncOperation().raw()) { | 967 if (var_descriptors_.GetName(i) == Symbols::AsyncOperation().raw()) { |
| (...skipping 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4368 | 4367 |
| 4369 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 4368 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 4370 ASSERT(bpt->next() == NULL); | 4369 ASSERT(bpt->next() == NULL); |
| 4371 bpt->set_next(code_breakpoints_); | 4370 bpt->set_next(code_breakpoints_); |
| 4372 code_breakpoints_ = bpt; | 4371 code_breakpoints_ = bpt; |
| 4373 } | 4372 } |
| 4374 | 4373 |
| 4375 #endif // !PRODUCT | 4374 #endif // !PRODUCT |
| 4376 | 4375 |
| 4377 } // namespace dart | 4376 } // namespace dart |
| OLD | NEW |