Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: runtime/vm/parser.cc

Issue 22839003: Polymorphic inlining for some recognized methods in the optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« runtime/vm/intrinsifier_arm.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« runtime/vm/intrinsifier_arm.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698