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

Unified Diff: runtime/vm/raw_object.h

Issue 2972343002: [kernel] Insert kernel bodies into VM heap (Closed)
Patch Set: Rebased Created 3 years, 4 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/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index ce78c94bb964abe4112024bedffe48d95874651d..0ca89f73a8f48b7403d450f926e17985fa71cbfd 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -878,6 +878,7 @@ class RawFunction : public RawObject {
RawArray* parameter_names_;
RawTypeArguments* type_parameters_; // Array of TypeParameter.
RawObject* data_; // Additional data specific to the function kind.
+ RawTypedData* kernel_body_;
RawObject** to_snapshot() {
return reinterpret_cast<RawObject**>(&ptr()->data_);
}
@@ -964,6 +965,7 @@ class RawField : public RawObject {
RawObject* owner_; // Class or patch class or mixin class
// where this field is defined or original field.
RawAbstractType* type_;
+ RawTypedData* kernel_body_;
union {
RawInstance* static_value_; // Value for static fields.
RawSmi* offset_; // Offset in words for instance fields.
@@ -1089,8 +1091,6 @@ class RawScript : public RawObject {
int32_t col_offset_;
int8_t kind_; // Of type Kind.
int64_t load_timestamp_;
- const uint8_t* kernel_data_;
- intptr_t kernel_data_size_;
intptr_t kernel_script_index_;
};

Powered by Google App Engine
This is Rietveld 408576698