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

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: fixed modulo performance regression 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
« no previous file with comments | « 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 5000 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698