Chromium Code Reviews| 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 14315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 14342 void Parser::SkipQualIdent() { | 14344 void Parser::SkipQualIdent() { |
| 14343 ASSERT(IsIdentifier()); | 14345 ASSERT(IsIdentifier()); |
| 14344 ConsumeToken(); | 14346 ConsumeToken(); |
| 14345 if (CurrentToken() == Token::kPERIOD) { | 14347 if (CurrentToken() == Token::kPERIOD) { |
| 14346 ConsumeToken(); // Consume the kPERIOD token. | 14348 ConsumeToken(); // Consume the kPERIOD token. |
| 14347 ExpectIdentifier("identifier expected after '.'"); | 14349 ExpectIdentifier("identifier expected after '.'"); |
| 14348 } | 14350 } |
| 14349 } | 14351 } |
| 14350 | 14352 |
| 14351 } // namespace dart | 14353 } // namespace dart |
| 14354 | |
| 14355 | |
| 14356 #else | |
|
rmacnak
2015/11/17 20:51:18
// DART_PRECOMPILED
Florian Schneider
2015/11/18 11:44:09
Done.
| |
| 14357 | |
| 14358 | |
| 14359 namespace dart { | |
| 14360 | |
| 14361 DEFINE_FLAG(bool, enable_mirrors, true, | |
| 14362 "Disable to make importing dart:mirrors an error."); | |
| 14363 DEFINE_FLAG(bool, load_deferred_eagerly, false, | |
| 14364 "Load deferred libraries eagerly."); | |
| 14365 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); | |
| 14366 | |
| 14367 LocalVariable* ParsedFunction::EnsureExpressionTemp() { | |
| 14368 UNREACHABLE(); | |
| 14369 return NULL; | |
| 14370 } | |
| 14371 | |
| 14372 | |
| 14373 void ParsedFunction::SetNodeSequence(SequenceNode* node_sequence) { | |
| 14374 UNREACHABLE(); | |
| 14375 } | |
| 14376 | |
| 14377 | |
| 14378 void ParsedFunction::SetRegExpCompileData( | |
| 14379 RegExpCompileData* regexp_compile_data) { | |
| 14380 UNREACHABLE(); | |
| 14381 } | |
| 14382 | |
| 14383 | |
| 14384 void ParsedFunction::AllocateVariables() { | |
| 14385 UNREACHABLE(); | |
| 14386 } | |
| 14387 | |
| 14388 | |
| 14389 void ParsedFunction::AllocateIrregexpVariables(intptr_t num_stack_locals) { | |
| 14390 UNREACHABLE(); | |
| 14391 } | |
| 14392 | |
| 14393 | |
| 14394 void Parser::ParseCompilationUnit(const Library& library, | |
| 14395 const Script& script) { | |
| 14396 UNREACHABLE(); | |
| 14397 } | |
| 14398 | |
| 14399 | |
| 14400 void Parser::ParseClass(const Class& cls) { | |
| 14401 UNREACHABLE(); | |
| 14402 } | |
| 14403 | |
| 14404 | |
| 14405 RawObject* Parser::ParseFunctionParameters(const Function& func) { | |
| 14406 UNREACHABLE(); | |
| 14407 return Object::null(); | |
| 14408 } | |
| 14409 | |
| 14410 | |
| 14411 void Parser::ParseFunction(ParsedFunction* parsed_function) { | |
| 14412 UNREACHABLE(); | |
| 14413 } | |
| 14414 | |
| 14415 | |
| 14416 RawObject* Parser::ParseMetadata(const Class& cls, intptr_t token_pos) { | |
| 14417 UNREACHABLE(); | |
| 14418 return Object::null(); | |
| 14419 } | |
| 14420 | |
| 14421 | |
| 14422 ParsedFunction* Parser::ParseStaticFieldInitializer(const Field& field) { | |
| 14423 UNREACHABLE(); | |
| 14424 return NULL; | |
| 14425 } | |
| 14426 | |
| 14427 | |
| 14428 ArgumentListNode* Parser::BuildNoSuchMethodArguments( | |
| 14429 intptr_t call_pos, | |
| 14430 const String& function_name, | |
| 14431 const ArgumentListNode& function_args, | |
| 14432 const LocalVariable* temp_for_last_arg, | |
| 14433 bool is_super_invocation) { | |
| 14434 UNREACHABLE(); | |
| 14435 return NULL; | |
| 14436 } | |
| 14437 | |
| 14438 } // namespace dart | |
| 14439 | |
| 14440 #endif // DART_PRECOMPILED | |
| OLD | NEW |