| 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 "vm/bigint_operations.h" | 8 #include "vm/bigint_operations.h" |
| 9 #include "vm/bootstrap.h" | 9 #include "vm/bootstrap.h" |
| 10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 5000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5011 | 5011 |
| 5012 // Now add the NativeBodyNode and return statement. | 5012 // Now add the NativeBodyNode and return statement. |
| 5013 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 5013 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
| 5014 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 5014 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
| 5015 current_block_->statements->Add( | 5015 current_block_->statements->Add( |
| 5016 new ReturnNode(TokenPos(), | 5016 new ReturnNode(TokenPos(), |
| 5017 new NativeBodyNode(TokenPos(), | 5017 new NativeBodyNode(TokenPos(), |
| 5018 Function::ZoneHandle(func.raw()), | 5018 Function::ZoneHandle(func.raw()), |
| 5019 native_name, | 5019 native_name, |
| 5020 native_function, | 5020 native_function, |
| 5021 current_block_->scope, |
| 5021 is_bootstrap_native))); | 5022 is_bootstrap_native))); |
| 5022 } | 5023 } |
| 5023 | 5024 |
| 5024 | 5025 |
| 5025 LocalVariable* Parser::LookupReceiver(LocalScope* from_scope, bool test_only) { | 5026 LocalVariable* Parser::LookupReceiver(LocalScope* from_scope, bool test_only) { |
| 5026 ASSERT(!current_function().is_static()); | 5027 ASSERT(!current_function().is_static()); |
| 5027 return from_scope->LookupVariable(Symbols::This(), test_only); | 5028 return from_scope->LookupVariable(Symbols::This(), test_only); |
| 5028 } | 5029 } |
| 5029 | 5030 |
| 5030 | 5031 |
| (...skipping 5296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10327 void Parser::SkipQualIdent() { | 10328 void Parser::SkipQualIdent() { |
| 10328 ASSERT(IsIdentifier()); | 10329 ASSERT(IsIdentifier()); |
| 10329 ConsumeToken(); | 10330 ConsumeToken(); |
| 10330 if (CurrentToken() == Token::kPERIOD) { | 10331 if (CurrentToken() == Token::kPERIOD) { |
| 10331 ConsumeToken(); // Consume the kPERIOD token. | 10332 ConsumeToken(); // Consume the kPERIOD token. |
| 10332 ExpectIdentifier("identifier expected after '.'"); | 10333 ExpectIdentifier("identifier expected after '.'"); |
| 10333 } | 10334 } |
| 10334 } | 10335 } |
| 10335 | 10336 |
| 10336 } // namespace dart | 10337 } // namespace dart |
| OLD | NEW |