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

Side by Side Diff: vm/parser.cc

Issue 12207023: Rename the accessor functions saved_context_var and set_saved_context_var to saved_entry_context_va… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 10 months 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 | « vm/parser.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/parser.h" 5 #include "vm/parser.h"
6 6
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/compiler_stats.h" 10 #include "vm/compiler_stats.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 if (context_owner != NULL) { 187 if (context_owner != NULL) {
188 const ContextScope& context_scope = 188 const ContextScope& context_scope =
189 ContextScope::Handle(function().context_scope()); 189 ContextScope::Handle(function().context_scope());
190 if (context_scope.IsNull() || (context_scope.num_variables() == 0)) { 190 if (context_scope.IsNull() || (context_scope.num_variables() == 0)) {
191 LocalVariable* context_var = 191 LocalVariable* context_var =
192 new LocalVariable(function().token_pos(), 192 new LocalVariable(function().token_pos(),
193 Symbols::SavedEntryContextVar(), 193 Symbols::SavedEntryContextVar(),
194 Type::ZoneHandle(Type::DynamicType())); 194 Type::ZoneHandle(Type::DynamicType()));
195 context_var->set_index(next_free_frame_index--); 195 context_var->set_index(next_free_frame_index--);
196 scope->AddVariable(context_var); 196 scope->AddVariable(context_var);
197 set_saved_context_var(context_var); 197 set_saved_entry_context_var(context_var);
198 } 198 }
199 } 199 }
200 200
201 // Frame indices are relative to the frame pointer and are decreasing. 201 // Frame indices are relative to the frame pointer and are decreasing.
202 ASSERT(next_free_frame_index <= first_stack_local_index_); 202 ASSERT(next_free_frame_index <= first_stack_local_index_);
203 num_stack_locals_ = first_stack_local_index_ - next_free_frame_index; 203 num_stack_locals_ = first_stack_local_index_ - next_free_frame_index;
204 } 204 }
205 205
206 206
207 struct Parser::Block : public ZoneAllocated { 207 struct Parser::Block : public ZoneAllocated {
(...skipping 9544 matching lines...) Expand 10 before | Expand all | Expand 10 after
9752 void Parser::SkipQualIdent() { 9752 void Parser::SkipQualIdent() {
9753 ASSERT(IsIdentifier()); 9753 ASSERT(IsIdentifier());
9754 ConsumeToken(); 9754 ConsumeToken();
9755 if (CurrentToken() == Token::kPERIOD) { 9755 if (CurrentToken() == Token::kPERIOD) {
9756 ConsumeToken(); // Consume the kPERIOD token. 9756 ConsumeToken(); // Consume the kPERIOD token.
9757 ExpectIdentifier("identifier expected after '.'"); 9757 ExpectIdentifier("identifier expected after '.'");
9758 } 9758 }
9759 } 9759 }
9760 9760
9761 } // namespace dart 9761 } // namespace dart
OLDNEW
« no previous file with comments | « vm/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698