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

Unified Diff: runtime/vm/object.h

Issue 2933603002: 1. Dynamic compute the main closure that needs to be run by the main isolate (Closed)
Patch Set: Address review comments. Created 3 years, 6 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index c6715d6f58a6b5115d9d5ac45eef6cad6bc208bf..d5062633402b9c66a7b4e20c46a5eb4e109c01be 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3983,6 +3983,11 @@ class Library : public Object {
void CheckReload(const Library& replacement,
IsolateReloadContext* context) const;
+ // Returns a closure of top level function 'name' in the exported namespace
+ // of this library. If a top level function 'name' does not exist we look
+ // for a top level getter 'name' that returns a closure.
+ RawObject* GetFunctionClosure(const String& name) const;
+
private:
static const int kInitialImportsCapacity = 4;
static const int kImportsCapacityIncrement = 8;
« no previous file with comments | « runtime/vm/kernel_reader.cc ('k') | runtime/vm/object.cc » ('j') | tests/co19/co19-kernel.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698