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

Unified Diff: runtime/vm/object.cc

Issue 468793004: VM: Improve performance of method recognizer and unify the it with the intrinsifier. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « runtime/vm/object.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 39404)
+++ runtime/vm/object.cc (working copy)
@@ -5480,8 +5480,8 @@
}
-void Function::set_is_recognized(bool value) const {
- set_kind_tag(RecognizedBit::update(value, raw_ptr()->kind_tag_));
+void Function::set_recognized_kind(MethodRecognizer::Kind value) const {
+ set_kind_tag(RecognizedBits::update(value, raw_ptr()->kind_tag_));
}
@@ -6109,6 +6109,7 @@
result.set_parameter_names(Object::empty_array());
result.set_name(name);
result.set_kind(kind);
+ result.set_recognized_kind(MethodRecognizer::kUnknown);
result.set_modifier(RawFunction::kNoModifier);
result.set_is_static(is_static);
result.set_is_const(is_const);
@@ -6117,9 +6118,10 @@
result.set_is_native(is_native);
result.set_is_visible(true); // Will be computed later.
result.set_is_intrinsic(false);
- result.set_is_recognized(false);
result.set_is_redirecting(false);
result.set_is_async_closure(false);
+ result.set_always_inline(false);
+ result.set_is_polymorphic_target(false);
result.set_owner(owner);
result.set_token_pos(token_pos);
result.set_end_token_pos(token_pos);
@@ -10320,7 +10322,7 @@
all_libs.Add(&Library::ZoneHandle(Library::MathLibrary()));
all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary()));
- RECOGNIZED_LIST(CHECK_FINGERPRINTS);
+ OTHER_RECOGNIZED_LIST(CHECK_FINGERPRINTS);
INLINE_WHITE_LIST(CHECK_FINGERPRINTS);
POLYMORPHIC_TARGET_LIST(CHECK_FINGERPRINTS);
@@ -10332,6 +10334,10 @@
all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary()));
TYPED_DATA_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS);
+ all_libs.Clear();
+ all_libs.Add(&Library::ZoneHandle(Library::ProfilerLibrary()));
+ PROFILER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS);
+
#undef CHECK_FINGERPRINTS
Class& cls = Class::Handle();
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698