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

Unified Diff: runtime/vm/object.h

Issue 2972343002: [kernel] Insert kernel bodies into VM heap (Closed)
Patch Set: Review comments 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
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index b188d6cf8842254ba95e03f8703cb4f91cdc09dc..a5a5eb76115ce96fe137e9434ac37490a24d9518 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2667,6 +2667,9 @@ class Function : public Object {
#endif
}
+ RawTypedData* kernel_data() const { return raw_ptr()->kernel_data_; }
+ void set_kernel_data(const TypedData& data) const;
+
bool IsOptimizable() const;
void SetIsOptimizable(bool value) const;
@@ -3246,6 +3249,9 @@ class Field : public Object {
#endif
}
+ RawTypedData* kernel_data() const { return raw_ptr()->kernel_data_; }
+ void set_kernel_data(const TypedData& data) const;
+
inline intptr_t Offset() const;
// Called during class finalization.
inline void SetOffset(intptr_t offset_in_bytes) const;
@@ -3652,13 +3658,9 @@ class Script : public Object {
}
void set_compile_time_constants(const Array& value) const;
- const uint8_t* kernel_data() const { return raw_ptr()->kernel_data_; }
- void set_kernel_data(const uint8_t* kernel_data) const;
-
- intptr_t kernel_data_size() const { return raw_ptr()->kernel_data_size_; }
- void set_kernel_data_size(const intptr_t kernel_data_size) const;
-
- intptr_t kernel_script_index() { return raw_ptr()->kernel_script_index_; }
+ intptr_t kernel_script_index() const {
+ return raw_ptr()->kernel_script_index_;
+ }
void set_kernel_script_index(const intptr_t kernel_script_index) const;
RawTypedData* kernel_string_offsets() const {
@@ -3895,13 +3897,16 @@ class Library : public Object {
void AddClassMetadata(const Class& cls,
const Object& tl_owner,
TokenPosition token_pos,
- intptr_t kernel_offset = 0) const;
+ intptr_t kernel_offset = 0,
+ const TypedData* kernel_data = NULL) const;
void AddFieldMetadata(const Field& field,
TokenPosition token_pos,
- intptr_t kernel_offset = 0) const;
+ intptr_t kernel_offset = 0,
+ const TypedData* kernel_data = NULL) const;
void AddFunctionMetadata(const Function& func,
TokenPosition token_pos,
- intptr_t kernel_offset = 0) const;
+ intptr_t kernel_offset = 0,
+ const TypedData* kernel_data = NULL) const;
void AddLibraryMetadata(const Object& tl_owner,
TokenPosition token_pos) const;
void AddTypeParameterMetadata(const TypeParameter& param,
@@ -4073,7 +4078,8 @@ class Library : public Object {
void AddMetadata(const Object& owner,
const String& name,
TokenPosition token_pos,
- intptr_t kernel_offset = 0) const;
+ intptr_t kernel_offset = 0,
+ const TypedData* kernel_data = NULL) const;
FINAL_HEAP_OBJECT_IMPLEMENTATION(Library, Object);
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698