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

Unified Diff: runtime/vm/constants_arm64.h

Issue 274043003: Adds debugger patching to arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/code_patcher_arm64.cc ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/constants_arm64.h
===================================================================
--- runtime/vm/constants_arm64.h (revision 35975)
+++ runtime/vm/constants_arm64.h (working copy)
@@ -610,6 +610,7 @@
kImm9Bits = 9,
kImm12Shift = 10,
kImm12Bits = 12,
+ kImm12Mask = 0xfff << kImm12Shift,
kImm12ShiftShift = 22,
kImm12ShiftBits = 2,
kImm14Shift = 5,
@@ -747,6 +748,11 @@
(static_cast<int32_t>(rn) << kRnShift));
}
+ inline void SetImm12Bits(int32_t orig, int32_t imm12) {
+ ASSERT((imm12 & 0xfffff000) == 0);
+ SetInstructionBits((orig & ~kImm12Mask) | (imm12 << kImm12Shift));
+ }
+
inline int NField() const { return Bit(22); }
inline int SField() const { return Bit(kSShift); }
inline int SFField() const { return Bit(kSFShift); }
« no previous file with comments | « runtime/vm/code_patcher_arm64.cc ('k') | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698