Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index 139aab3b8b45e1f526f8a0032e665860fe6e3920..3ce365b96662065012a4b1ecf914430e50fa86dd 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -4918,6 +4918,13 @@ class Code : public Object { |
} |
TokenPosition GetTokenIndexOfPC(uword pc) const; |
+ enum { |
+ kInvalidPc = -1 |
+ }; |
+ |
+ uword GetLazyDeoptReturnPc() const; |
+ uword GetLazyDeoptThrowPc() const; |
+ |
// Find pc, return 0 if not found. |
uword GetPcForDeoptId(intptr_t deopt_id, RawPcDescriptors::Kind kind) const; |
intptr_t GetDeoptIdForOsr(uword pc) const; |
@@ -4933,6 +4940,35 @@ class Code : public Object { |
#endif |
} |
+ intptr_t lazy_deopt_return_pc_offset() const { |
+#if defined(DART_PRECOMPILED_RUNTIME) |
+ return 0; |
+#else |
+ return raw_ptr()->lazy_deopt_return_pc_offset_; |
+#endif |
+ } |
+ void set_lazy_deopt_return_pc_offset(intptr_t pc) const { |
+#if defined(DART_PRECOMPILED_RUNTIME) |
+ UNREACHABLE(); |
+#else |
+ StoreNonPointer(&raw_ptr()->lazy_deopt_return_pc_offset_, pc); |
+#endif |
+ } |
+ intptr_t lazy_deopt_throw_pc_offset() const { |
+#if defined(DART_PRECOMPILED_RUNTIME) |
+ return 0; |
+#else |
+ return raw_ptr()->lazy_deopt_throw_pc_offset_; |
+#endif |
+ } |
+ void set_lazy_deopt_throw_pc_offset(intptr_t pc) const { |
+#if defined(DART_PRECOMPILED_RUNTIME) |
+ UNREACHABLE(); |
+#else |
+ StoreNonPointer(&raw_ptr()->lazy_deopt_throw_pc_offset_, pc); |
+#endif |
+ } |
+ |
bool IsAllocationStubCode() const; |
bool IsStubCode() const; |
bool IsFunctionCode() const; |