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

Unified Diff: runtime/vm/object.h

Issue 2820363002: Move Kernel strings into the VM's heap. (Closed)
Patch Set: Created 3 years, 8 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 2cbd331ace2c25433c19b3c2a2a68a16c01cde46..6c52a8b073830cf7b1f78d78b005fb56b5e0ea8f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3575,6 +3575,9 @@ class Script : public Object {
}
void set_compile_time_constants(const Array& value) const;
+ RawTypedData* kernel_strings() const { return raw_ptr()->kernel_strings_; }
+ void set_kernel_strings(const TypedData& strings) const;
+
RawTokenStream* tokens() const {
ASSERT(kind() != RawScript::kKernelTag);
return raw_ptr()->tokens_;

Powered by Google App Engine
This is Rietveld 408576698