| 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/scopes.h" | 5 #include "vm/scopes.h" |
| 6 | 6 |
| 7 #include "vm/object.h" | 7 #include "vm/object.h" |
| 8 #include "vm/stack_frame.h" | 8 #include "vm/stack_frame.h" |
| 9 #include "vm/symbols.h" | 9 #include "vm/symbols.h" |
| 10 | 10 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 return false; | 269 return false; |
| 270 } | 270 } |
| 271 if (str.raw() == Symbols::ControllerStream().raw()) { | 271 if (str.raw() == Symbols::ControllerStream().raw()) { |
| 272 // Keep :controller_stream for asynchronous debugging. | 272 // Keep :controller_stream for asynchronous debugging. |
| 273 return false; | 273 return false; |
| 274 } | 274 } |
| 275 if (str.raw() == Symbols::AwaitJumpVar().raw()) { | 275 if (str.raw() == Symbols::AwaitJumpVar().raw()) { |
| 276 // Keep :await_jump_var for asynchronous debugging. | 276 // Keep :await_jump_var for asynchronous debugging. |
| 277 return false; | 277 return false; |
| 278 } | 278 } |
| 279 if (str.raw() == Symbols::AsyncStackTraceVar().raw()) { |
| 280 // Keep :async_stack_trace for asynchronous debugging. |
| 281 return false; |
| 282 } |
| 279 return str.CharAt(0) == ':'; | 283 return str.CharAt(0) == ':'; |
| 280 } | 284 } |
| 281 | 285 |
| 282 | 286 |
| 283 RawLocalVarDescriptors* LocalScope::GetVarDescriptors(const Function& func) { | 287 RawLocalVarDescriptors* LocalScope::GetVarDescriptors(const Function& func) { |
| 284 GrowableArray<VarDesc> vars(8); | 288 GrowableArray<VarDesc> vars(8); |
| 285 // First enter all variables from scopes of outer functions. | 289 // First enter all variables from scopes of outer functions. |
| 286 const ContextScope& context_scope = | 290 const ContextScope& context_scope = |
| 287 ContextScope::Handle(func.context_scope()); | 291 ContextScope::Handle(func.context_scope()); |
| 288 if (!context_scope.IsNull()) { | 292 if (!context_scope.IsNull()) { |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 return fixed_parameter_count - (index() - kParamEndSlotFromFp); | 702 return fixed_parameter_count - (index() - kParamEndSlotFromFp); |
| 699 } else { | 703 } else { |
| 700 // Shift negative indexes so that the lowest one is 0 (they are still | 704 // Shift negative indexes so that the lowest one is 0 (they are still |
| 701 // non-positive). | 705 // non-positive). |
| 702 return fixed_parameter_count - (index() - kFirstLocalSlotFromFp); | 706 return fixed_parameter_count - (index() - kFirstLocalSlotFromFp); |
| 703 } | 707 } |
| 704 } | 708 } |
| 705 | 709 |
| 706 | 710 |
| 707 } // namespace dart | 711 } // namespace dart |
| OLD | NEW |