Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: runtime/vm/scopes.cc

Issue 55943002: Remove some unused fields from class SourceLabel. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/scopes.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/vm/scopes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698