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

Unified Diff: runtime/vm/isolate.h

Issue 1436243005: Collect closure functions in isolate (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 5f721a3cf5de9fc0655976ed3c53d083facda334..97fc29b5366575e2912543296e8511911b28fa38 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -665,6 +665,12 @@ class Isolate : public BaseIsolate {
// Handle service messages until we are told to resume execution.
void PauseEventHandler();
+ void AddClosureFunction(const Function& function) const;
+ RawFunction* LookupClosureFunction(const Script& script,
+ intptr_t token_pos) const;
+ intptr_t FindClosureIndex(const Function& needle) const;
+ RawFunction* ClosureFunctionFromIndex(intptr_t idx) const;
+
bool is_service_isolate() const { return is_service_isolate_; }
static void KillAllIsolates(LibMsgId msg_id);

Powered by Google App Engine
This is Rietveld 408576698