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

Unified Diff: runtime/vm/scopes.h

Issue 11228022: Cache parsed functions when inlining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Zone allocated ParsedFunction Created 8 years, 2 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/scopes.h
diff --git a/runtime/vm/scopes.h b/runtime/vm/scopes.h
index 12b7e18fc43ce7054b873e2701cec2704ee45a57..75f837c2bf37248348cec227a138daa12b02fd6f 100644
--- a/runtime/vm/scopes.h
+++ b/runtime/vm/scopes.h
@@ -175,6 +175,10 @@ class SourceLabel : public ZoneAllocated {
void ResolveForwardReference() { kind_ = kCase; }
private:
+ // TODO(zerny): Remove this hack when the builder no longer stores state in
+ // the ast/scopes.
+ friend class SourceLabelResetter;
+
const intptr_t token_pos_;
const String& name_;
LocalScope* owner_; // Local scope declaring this label.

Powered by Google App Engine
This is Rietveld 408576698