| 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 #include "vm/flags.h" | 6 #include "vm/flags.h" |
| 7 | 7 |
| 8 #ifndef DART_PRECOMPILED_RUNTIME | 8 #ifndef DART_PRECOMPILED_RUNTIME |
| 9 | 9 |
| 10 #include "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 13276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13287 LibraryPrefix& prefix = LibraryPrefix::ZoneHandle(Z); | 13287 LibraryPrefix& prefix = LibraryPrefix::ZoneHandle(Z); |
| 13288 AbstractType& type = AbstractType::ZoneHandle(Z, | 13288 AbstractType& type = AbstractType::ZoneHandle(Z, |
| 13289 ParseType(ClassFinalizer::kCanonicalizeWellFormed, | 13289 ParseType(ClassFinalizer::kCanonicalizeWellFormed, |
| 13290 allow_deferred_type, | 13290 allow_deferred_type, |
| 13291 consume_unresolved_prefix, | 13291 consume_unresolved_prefix, |
| 13292 &prefix)); | 13292 &prefix)); |
| 13293 | 13293 |
| 13294 if (FLAG_load_deferred_eagerly && | 13294 if (FLAG_load_deferred_eagerly && |
| 13295 !prefix.IsNull() && prefix.is_deferred_load() && !prefix.is_loaded()) { | 13295 !prefix.IsNull() && prefix.is_deferred_load() && !prefix.is_loaded()) { |
| 13296 // Add runtime check. | 13296 // Add runtime check. |
| 13297 Type& malformed_type = Type::Handle(Z); | 13297 Type& malformed_type = Type::ZoneHandle(Z); |
| 13298 malformed_type = ClassFinalizer::NewFinalizedMalformedType( | 13298 malformed_type = ClassFinalizer::NewFinalizedMalformedType( |
| 13299 Error::Handle(Z), // No previous error. | 13299 Error::Handle(Z), // No previous error. |
| 13300 script_, | 13300 script_, |
| 13301 type_pos, | 13301 type_pos, |
| 13302 "deferred type '%s.%s' is not yet loaded", | 13302 "deferred type '%s.%s' is not yet loaded", |
| 13303 String::Handle(Z, prefix.name()).ToCString(), | 13303 String::Handle(Z, prefix.name()).ToCString(), |
| 13304 String::Handle(type.Name()).ToCString()); | 13304 String::Handle(type.Name()).ToCString()); |
| 13305 // Note: Adding a statement to current block is a hack, parsing an | 13305 // Note: Adding a statement to current block is a hack, parsing an |
| 13306 // expression should have no side-effect. | 13306 // expression should have no side-effect. |
| 13307 current_block_->statements->Add( | 13307 current_block_->statements->Add( |
| (...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14444 const ArgumentListNode& function_args, | 14444 const ArgumentListNode& function_args, |
| 14445 const LocalVariable* temp_for_last_arg, | 14445 const LocalVariable* temp_for_last_arg, |
| 14446 bool is_super_invocation) { | 14446 bool is_super_invocation) { |
| 14447 UNREACHABLE(); | 14447 UNREACHABLE(); |
| 14448 return NULL; | 14448 return NULL; |
| 14449 } | 14449 } |
| 14450 | 14450 |
| 14451 } // namespace dart | 14451 } // namespace dart |
| 14452 | 14452 |
| 14453 #endif // DART_PRECOMPILED_RUNTIME | 14453 #endif // DART_PRECOMPILED_RUNTIME |
| OLD | NEW |