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

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

Issue 304703002: Split GuardField into GuardFieldType and GuardFieldLength instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | 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 "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/bootstrap.h" 9 #include "vm/bootstrap.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 initializers->NodeAt(i)->AsStoreInstanceFieldNode(); 2290 initializers->NodeAt(i)->AsStoreInstanceFieldNode();
2291 if (initializer->field().raw() == field.raw()) { 2291 if (initializer->field().raw() == field.raw()) {
2292 found = true; 2292 found = true;
2293 break; 2293 break;
2294 } 2294 }
2295 } 2295 }
2296 } 2296 }
2297 2297
2298 if (found) continue; 2298 if (found) continue;
2299 2299
2300 field.UpdateGuardedCidAndLength(Object::Handle(isolate())); 2300 field.RecordStore(Object::Handle(isolate()));
2301 } 2301 }
2302 } 2302 }
2303 2303
2304 2304
2305 AstNode* Parser::ParseExternalInitializedField(const Field& field) { 2305 AstNode* Parser::ParseExternalInitializedField(const Field& field) {
2306 // Only use this function if the initialized field originates 2306 // Only use this function if the initialized field originates
2307 // from a different class. We need to save and restore current 2307 // from a different class. We need to save and restore current
2308 // class, library, and token stream (script). 2308 // class, library, and token stream (script).
2309 ASSERT(current_class().raw() != field.origin()); 2309 ASSERT(current_class().raw() != field.origin());
2310 const Class& saved_class = Class::Handle(isolate(), current_class().raw()); 2310 const Class& saved_class = Class::Handle(isolate(), current_class().raw());
(...skipping 8719 matching lines...) Expand 10 before | Expand all | Expand 10 after
11030 void Parser::SkipQualIdent() { 11030 void Parser::SkipQualIdent() {
11031 ASSERT(IsIdentifier()); 11031 ASSERT(IsIdentifier());
11032 ConsumeToken(); 11032 ConsumeToken();
11033 if (CurrentToken() == Token::kPERIOD) { 11033 if (CurrentToken() == Token::kPERIOD) {
11034 ConsumeToken(); // Consume the kPERIOD token. 11034 ConsumeToken(); // Consume the kPERIOD token.
11035 ExpectIdentifier("identifier expected after '.'"); 11035 ExpectIdentifier("identifier expected after '.'");
11036 } 11036 }
11037 } 11037 }
11038 11038
11039 } // namespace dart 11039 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698