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

Unified Diff: runtime/vm/object.cc

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.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 9b2e3194209fc655ea93cab4e97204235adb5d27..702e3a73a197b212bda528531144ff4d91fd843a 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -8687,6 +8687,11 @@ RawString* Script::GenerateSource() const {
}
+void Script::set_compile_time_constants(const Array& value) const {
+ StorePointer(&raw_ptr()->compile_time_constants_, value.raw());
+}
+
+
RawGrowableObjectArray* Script::GenerateLineNumberArray() const {
Zone* zone = Thread::Current()->zone();
const GrowableObjectArray& info =

Powered by Google App Engine
This is Rietveld 408576698