| 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" | 7 #include "vm/ast.h" |
| 8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
| 11 #include "vm/stack_frame.h" |
| 11 #include "vm/symbols.h" | 12 #include "vm/symbols.h" |
| 12 | 13 |
| 13 namespace dart { | 14 namespace dart { |
| 14 | 15 |
| 15 int SourceLabel::FunctionLevel() const { | 16 int SourceLabel::FunctionLevel() const { |
| 16 ASSERT(owner() != NULL); | 17 ASSERT(owner() != NULL); |
| 17 return owner()->function_level(); | 18 return owner()->function_level(); |
| 18 } | 19 } |
| 19 | 20 |
| 20 | 21 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 return (fixed_parameter_count - 1) - (index() - kLastParamSlotIndex); | 576 return (fixed_parameter_count - 1) - (index() - kLastParamSlotIndex); |
| 576 } else { | 577 } else { |
| 577 // Shift negative indexes so that the lowest one is 0 (they are still | 578 // Shift negative indexes so that the lowest one is 0 (they are still |
| 578 // non-positive). | 579 // non-positive). |
| 579 return fixed_parameter_count - (index() - kFirstLocalSlotIndex); | 580 return fixed_parameter_count - (index() - kFirstLocalSlotIndex); |
| 580 } | 581 } |
| 581 } | 582 } |
| 582 | 583 |
| 583 | 584 |
| 584 } // namespace dart | 585 } // namespace dart |
| OLD | NEW |