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" |
| 7 |
| 8 #ifndef DART_PRECOMPILED |
6 | 9 |
7 #include "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
8 #include "platform/utils.h" | 11 #include "platform/utils.h" |
9 #include "vm/ast_transformer.h" | 12 #include "vm/ast_transformer.h" |
10 #include "vm/bootstrap.h" | 13 #include "vm/bootstrap.h" |
11 #include "vm/class_finalizer.h" | 14 #include "vm/class_finalizer.h" |
12 #include "vm/compiler.h" | 15 #include "vm/compiler.h" |
13 #include "vm/compiler_stats.h" | 16 #include "vm/compiler_stats.h" |
14 #include "vm/dart_api_impl.h" | 17 #include "vm/dart_api_impl.h" |
15 #include "vm/dart_entry.h" | 18 #include "vm/dart_entry.h" |
16 #include "vm/flags.h" | |
17 #include "vm/growable_array.h" | 19 #include "vm/growable_array.h" |
18 #include "vm/handles.h" | 20 #include "vm/handles.h" |
19 #include "vm/hash_table.h" | 21 #include "vm/hash_table.h" |
20 #include "vm/heap.h" | 22 #include "vm/heap.h" |
21 #include "vm/isolate.h" | 23 #include "vm/isolate.h" |
22 #include "vm/longjump.h" | 24 #include "vm/longjump.h" |
23 #include "vm/native_arguments.h" | 25 #include "vm/native_arguments.h" |
24 #include "vm/native_entry.h" | 26 #include "vm/native_entry.h" |
25 #include "vm/object.h" | 27 #include "vm/object.h" |
26 #include "vm/object_store.h" | 28 #include "vm/object_store.h" |
(...skipping 14305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14332 void Parser::SkipQualIdent() { | 14334 void Parser::SkipQualIdent() { |
14333 ASSERT(IsIdentifier()); | 14335 ASSERT(IsIdentifier()); |
14334 ConsumeToken(); | 14336 ConsumeToken(); |
14335 if (CurrentToken() == Token::kPERIOD) { | 14337 if (CurrentToken() == Token::kPERIOD) { |
14336 ConsumeToken(); // Consume the kPERIOD token. | 14338 ConsumeToken(); // Consume the kPERIOD token. |
14337 ExpectIdentifier("identifier expected after '.'"); | 14339 ExpectIdentifier("identifier expected after '.'"); |
14338 } | 14340 } |
14339 } | 14341 } |
14340 | 14342 |
14341 } // namespace dart | 14343 } // namespace dart |
| 14344 |
| 14345 |
| 14346 #else // DART_PRECOMPILED |
| 14347 |
| 14348 |
| 14349 namespace dart { |
| 14350 |
| 14351 DEFINE_FLAG(bool, enable_mirrors, true, |
| 14352 "Disable to make importing dart:mirrors an error."); |
| 14353 DEFINE_FLAG(bool, load_deferred_eagerly, false, |
| 14354 "Load deferred libraries eagerly."); |
| 14355 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); |
| 14356 |
| 14357 LocalVariable* ParsedFunction::EnsureExpressionTemp() { |
| 14358 UNREACHABLE(); |
| 14359 return NULL; |
| 14360 } |
| 14361 |
| 14362 |
| 14363 void ParsedFunction::SetNodeSequence(SequenceNode* node_sequence) { |
| 14364 UNREACHABLE(); |
| 14365 } |
| 14366 |
| 14367 |
| 14368 void ParsedFunction::SetRegExpCompileData( |
| 14369 RegExpCompileData* regexp_compile_data) { |
| 14370 UNREACHABLE(); |
| 14371 } |
| 14372 |
| 14373 |
| 14374 void ParsedFunction::AllocateVariables() { |
| 14375 UNREACHABLE(); |
| 14376 } |
| 14377 |
| 14378 |
| 14379 void ParsedFunction::AllocateIrregexpVariables(intptr_t num_stack_locals) { |
| 14380 UNREACHABLE(); |
| 14381 } |
| 14382 |
| 14383 |
| 14384 void Parser::ParseCompilationUnit(const Library& library, |
| 14385 const Script& script) { |
| 14386 UNREACHABLE(); |
| 14387 } |
| 14388 |
| 14389 |
| 14390 void Parser::ParseClass(const Class& cls) { |
| 14391 UNREACHABLE(); |
| 14392 } |
| 14393 |
| 14394 |
| 14395 RawObject* Parser::ParseFunctionParameters(const Function& func) { |
| 14396 UNREACHABLE(); |
| 14397 return Object::null(); |
| 14398 } |
| 14399 |
| 14400 |
| 14401 void Parser::ParseFunction(ParsedFunction* parsed_function) { |
| 14402 UNREACHABLE(); |
| 14403 } |
| 14404 |
| 14405 |
| 14406 RawObject* Parser::ParseMetadata(const Class& cls, intptr_t token_pos) { |
| 14407 UNREACHABLE(); |
| 14408 return Object::null(); |
| 14409 } |
| 14410 |
| 14411 |
| 14412 ParsedFunction* Parser::ParseStaticFieldInitializer(const Field& field) { |
| 14413 UNREACHABLE(); |
| 14414 return NULL; |
| 14415 } |
| 14416 |
| 14417 |
| 14418 ArgumentListNode* Parser::BuildNoSuchMethodArguments( |
| 14419 intptr_t call_pos, |
| 14420 const String& function_name, |
| 14421 const ArgumentListNode& function_args, |
| 14422 const LocalVariable* temp_for_last_arg, |
| 14423 bool is_super_invocation) { |
| 14424 UNREACHABLE(); |
| 14425 return NULL; |
| 14426 } |
| 14427 |
| 14428 } // namespace dart |
| 14429 |
| 14430 #endif // DART_PRECOMPILED |
OLD | NEW |