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

Unified Diff: runtime/vm/ast.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/code_generator_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 26420)
+++ runtime/vm/ast.h (working copy)
@@ -1556,11 +1556,13 @@
const Function& function,
const String& native_c_function_name,
NativeFunction native_c_function,
+ LocalScope* scope,
bool is_bootstrap_native)
: AstNode(token_pos),
function_(function),
native_c_function_name_(native_c_function_name),
native_c_function_(native_c_function),
+ scope_(scope),
is_bootstrap_native_(is_bootstrap_native) {
ASSERT(function_.IsZoneHandle());
ASSERT(native_c_function_ != NULL);
@@ -1573,6 +1575,7 @@
return native_c_function_name_;
}
NativeFunction native_c_function() const { return native_c_function_; }
+ LocalScope* scope() const { return scope_; }
bool is_bootstrap_native() const { return is_bootstrap_native_; }
virtual void VisitChildren(AstNodeVisitor* visitor) const { }
@@ -1583,6 +1586,7 @@
const Function& function_; // Native Dart function.
const String& native_c_function_name_;
NativeFunction native_c_function_; // Actual non-Dart implementation.
+ LocalScope* scope_;
const bool is_bootstrap_native_; // Is a bootstrap native method.
DISALLOW_IMPLICIT_CONSTRUCTORS(NativeBodyNode);
« no previous file with comments | « no previous file | runtime/vm/code_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698