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

Unified Diff: runtime/vm/object.h

Issue 315583002: First step in reducing the size of PC descriptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments, added arm64 file. Created 6 years, 6 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
===================================================================
--- runtime/vm/object.h (revision 36988)
+++ runtime/vm/object.h (working copy)
@@ -2970,9 +2970,6 @@
public:
enum Kind {
kDeopt, // Deoptimization continuation point.
- kEntryPatch, // Location where to patch entry.
- kPatchCode, // Buffer for patching code entry.
- kLazyDeoptJump, // Lazy deoptimization trampoline.
kIcCall, // IC call.
kOptStaticCall, // Call directly to known target, e.g. static call.
kUnoptStaticCall, // Call to a known target via a stub.
@@ -3653,10 +3650,17 @@
}
intptr_t GetTokenIndexOfPC(uword pc) const;
- // Find pc, return 0 if not found.
+ enum {
+ kInvalidPc = -1
+ };
+
+ // Returns 0 if code is not patchable
+ uword GetEntryPatchPc() const;
uword GetPatchCodePc() const;
+
uword GetLazyDeoptPc() const;
+ // Find pc, return 0 if not found.
uword GetPcForDeoptId(intptr_t deopt_id, PcDescriptors::Kind kind) const;
intptr_t GetDeoptIdForOsr(uword pc) const;
@@ -3680,6 +3684,29 @@
return raw_ptr()->compile_timestamp_;
}
+ intptr_t entry_patch_pc_offset() const {
+ return raw_ptr()->entry_patch_pc_offset_;
+ }
+ void set_entry_patch_pc_offset(intptr_t pc) const {
+ raw_ptr()->entry_patch_pc_offset_ = pc;
+ }
+
+
+ intptr_t patch_code_pc_offset() const {
+ return raw_ptr()->patch_code_pc_offset_;
+ }
+ void set_patch_code_pc_offset(intptr_t pc) const {
+ raw_ptr()->patch_code_pc_offset_ = pc;
+ }
+
+
+ intptr_t lazy_deopt_pc_offset() const {
+ return raw_ptr()->lazy_deopt_pc_offset_;
+ }
+ void set_lazy_deopt_pc_offset(intptr_t pc) const {
+ raw_ptr()->lazy_deopt_pc_offset_ = pc;
+ }
+
private:
void set_state_bits(intptr_t bits) const;

Powered by Google App Engine
This is Rietveld 408576698