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

Unified Diff: runtime/vm/instructions_arm.h

Issue 14812005: Cleanup deoptimization code to make it architecture independent (in progress). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/instructions_arm.h
===================================================================
--- runtime/vm/instructions_arm.h (revision 22345)
+++ runtime/vm/instructions_arm.h (working copy)
@@ -25,6 +25,12 @@
uword TargetAddress() const;
void SetTargetAddress(uword target_address) const;
+ // This constant length is only valid for inserted call patterns used for
+ // lazy deoptimization. Regular call pattern may vary in length.
+ static const int kFixedLengthInBytes = 3 * Instr::kInstrSize;
+
+ static void InsertAt(uword pc, uword target_address);
+
private:
uword Back(int n) const;
int DecodeLoadObject(int end, Register* reg, Object* obj);

Powered by Google App Engine
This is Rietveld 408576698