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

Unified Diff: runtime/vm/object.h

Issue 2126393003: Cache compile-time constants on the script object, sometimes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cleanups Created 4 years, 5 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 4dcade6c39e0b0a554092e1c31455df1c2041889..3cee2718e21e3e17abed052ad0c575603d263039 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3477,6 +3477,11 @@ class Script : public Object {
// The load time in milliseconds since epoch.
int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; }
+ RawArray* compile_time_constants() const {
+ return raw_ptr()->compile_time_constants_;
+ }
+ void set_compile_time_constants(const Array& value) const;
+
RawTokenStream* tokens() const { return raw_ptr()->tokens_; }
void Tokenize(const String& private_key,

Powered by Google App Engine
This is Rietveld 408576698