| 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 5017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5028 | 5028 |
| 5029 // Now add the NativeBodyNode and return statement. | 5029 // Now add the NativeBodyNode and return statement. |
| 5030 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 5030 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
| 5031 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 5031 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
| 5032 current_block_->statements->Add( | 5032 current_block_->statements->Add( |
| 5033 new ReturnNode(TokenPos(), | 5033 new ReturnNode(TokenPos(), |
| 5034 new NativeBodyNode(TokenPos(), | 5034 new NativeBodyNode(TokenPos(), |
| 5035 Function::ZoneHandle(func.raw()), | 5035 Function::ZoneHandle(func.raw()), |
| 5036 native_name, | 5036 native_name, |
| 5037 native_function, | 5037 native_function, |
| 5038 current_block_->scope, |
| 5038 is_bootstrap_native))); | 5039 is_bootstrap_native))); |
| 5039 } | 5040 } |
| 5040 | 5041 |
| 5041 | 5042 |
| 5042 LocalVariable* Parser::LookupReceiver(LocalScope* from_scope, bool test_only) { | 5043 LocalVariable* Parser::LookupReceiver(LocalScope* from_scope, bool test_only) { |
| 5043 ASSERT(!current_function().is_static()); | 5044 ASSERT(!current_function().is_static()); |
| 5044 return from_scope->LookupVariable(Symbols::This(), test_only); | 5045 return from_scope->LookupVariable(Symbols::This(), test_only); |
| 5045 } | 5046 } |
| 5046 | 5047 |
| 5047 | 5048 |
| (...skipping 5246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10294 void Parser::SkipQualIdent() { | 10295 void Parser::SkipQualIdent() { |
| 10295 ASSERT(IsIdentifier()); | 10296 ASSERT(IsIdentifier()); |
| 10296 ConsumeToken(); | 10297 ConsumeToken(); |
| 10297 if (CurrentToken() == Token::kPERIOD) { | 10298 if (CurrentToken() == Token::kPERIOD) { |
| 10298 ConsumeToken(); // Consume the kPERIOD token. | 10299 ConsumeToken(); // Consume the kPERIOD token. |
| 10299 ExpectIdentifier("identifier expected after '.'"); | 10300 ExpectIdentifier("identifier expected after '.'"); |
| 10300 } | 10301 } |
| 10301 } | 10302 } |
| 10302 | 10303 |
| 10303 } // namespace dart | 10304 } // namespace dart |
| OLD | NEW |