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

Unified Diff: runtime/vm/object.h

Issue 2411823003: VM support for running Kernel binaries. (Closed)
Patch Set: Address comments Created 4 years, 2 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 139aab3b8b45e1f526f8a0032e665860fe6e3920..a4b317face28bc65fc047220c7057a8f5fce703a 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2632,6 +2632,20 @@ class Function : public Object {
#endif
}
+ void* kernel_function() const {
+#if defined(DART_PRECOMPILED_RUNTIME)
+ return NULL;
+#else
+ return raw_ptr()->kernel_function_;
+#endif
+ }
+
+ void set_kernel_function(void* kernel_function) const {
+#if !defined(DART_PRECOMPILED_RUNTIME)
+ StoreNonPointer(&raw_ptr()->kernel_function_, kernel_function);
+#endif
+ }
+
bool IsOptimizable() const;
bool IsNativeAutoSetupScope() const;
void SetIsOptimizable(bool value) const;
@@ -3152,6 +3166,21 @@ class Field : public Object {
set_kind_bits(DoubleInitializedBit::update(value, raw_ptr()->kind_bits_));
}
+ void* kernel_field() const {
+#if defined(DART_PRECOMPILED_RUNTIME)
+ return NULL;
+#else
+ return raw_ptr()->kernel_field_;
+#endif
+ }
+
+ void set_kernel_field(void* kernel_field) const {
+#if !defined(DART_PRECOMPILED_RUNTIME)
+ StoreNonPointer(&raw_ptr()->kernel_field_, kernel_field);
+#endif
+ }
+
+
inline intptr_t Offset() const;
// Called during class finalization.
inline void SetOffset(intptr_t offset_in_bytes) const;
« 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