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

Unified Diff: runtime/vm/precompiler.h

Issue 1496713002: --collect_dynamic_function_names (default false): find unique virtual function names and use them t… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixes Created 5 years 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
Index: runtime/vm/precompiler.h
diff --git a/runtime/vm/precompiler.h b/runtime/vm/precompiler.h
index 3710edf6ec3dd4164b4b358bd0524d38ba74ce6a..50f95512dace85302a36597b3b9e3cf65f168ed6 100644
--- a/runtime/vm/precompiler.h
+++ b/runtime/vm/precompiler.h
@@ -93,6 +93,16 @@ class Precompiler : public ValueObject {
Dart_QualifiedFunctionName embedder_entry_points[],
bool reset_fields);
+ // Returns named function that is a unique dynamic target, i.e.,
+ // - the target is identified by its name alone, since it occurs only once.
+ // - target's class has no subclasses, and neither is subclassed, i.e.,
+ // the receiver type can be only the function's class.
+ // Returns Function::null() if there is no unique dynamic target for
+ // given 'fname'. 'fname' must be a symbol.
+ static void GetUniqueDynamicTarget(Isolate* isolate,
+ const String& fname,
+ Object* function);
+
private:
Precompiler(Thread* thread, bool reset_fields);
@@ -115,6 +125,7 @@ class Precompiler : public ValueObject {
void CheckForNewDynamicFunctions();
void DropUncompiledFunctions();
+ void CollectDynamicFunctionNames();
void BindStaticCalls();
void DedupStackmaps();
void ResetPrecompilerState();
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/precompiler.cc » ('j') | runtime/vm/precompiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698