| 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/ast.h" | |
| 8 #include "vm/bit_vector.h" | |
| 9 #include "vm/object.h" | 7 #include "vm/object.h" |
| 10 #include "vm/parser.h" | |
| 11 #include "vm/stack_frame.h" | 8 #include "vm/stack_frame.h" |
| 12 #include "vm/symbols.h" | 9 #include "vm/symbols.h" |
| 13 | 10 |
| 14 namespace dart { | 11 namespace dart { |
| 15 | 12 |
| 16 int SourceLabel::FunctionLevel() const { | 13 int SourceLabel::FunctionLevel() const { |
| 17 ASSERT(owner() != NULL); | 14 ASSERT(owner() != NULL); |
| 18 return owner()->function_level(); | 15 return owner()->function_level(); |
| 19 } | 16 } |
| 20 | 17 |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 return fixed_parameter_count - (index() - kParamEndSlotFromFp); | 597 return fixed_parameter_count - (index() - kParamEndSlotFromFp); |
| 601 } else { | 598 } else { |
| 602 // Shift negative indexes so that the lowest one is 0 (they are still | 599 // Shift negative indexes so that the lowest one is 0 (they are still |
| 603 // non-positive). | 600 // non-positive). |
| 604 return fixed_parameter_count - (index() - kFirstLocalSlotFromFp); | 601 return fixed_parameter_count - (index() - kFirstLocalSlotFromFp); |
| 605 } | 602 } |
| 606 } | 603 } |
| 607 | 604 |
| 608 | 605 |
| 609 } // namespace dart | 606 } // namespace dart |
| OLD | NEW |