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

Unified Diff: src/x64/assembler-x64.h

Issue 171107: X64: Implement debugger hooks. (Closed)
Patch Set: Created 11 years, 4 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: src/x64/assembler-x64.h
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h
index 2130fb0379c245e2c78185ae4999648d67bf4472..a5eb775a48c4e90d30432b7dd2abbbfba91d7f2f 100644
--- a/src/x64/assembler-x64.h
+++ b/src/x64/assembler-x64.h
@@ -443,7 +443,9 @@ class Assembler : public Malloced {
// Distance between the address of the code target in the call instruction
// and the return address. Checked in the debug build.
static const int kTargetAddrToReturnAddrDist = 3 + kPointerSize;
-
+ // Distance between start of patched return sequence and the emitted address
+ // to jump to.
+ static const int kReturnAddrPatchPrefixSize = 2; // movq = REX.W 0xB8+r.
// ---------------------------------------------------------------------------
// Code generation
@@ -917,6 +919,9 @@ class Assembler : public Malloced {
// Jump near absolute indirect (r64)
void jmp(Register adr);
+ // Jump near absolute indirect (m64)
+ void jmp(const Operand& src);
+
// Conditional jumps
void j(Condition cc, Label* L);

Powered by Google App Engine
This is Rietveld 408576698