| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |