Index: src/x64/macro-assembler-x64.h |
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h |
index 36c1b1cf673311ac7acff64ab18bce5b9a9b7255..623fc856130a9fcaebe3bdd6be428e173be7ea89 100644 |
--- a/src/x64/macro-assembler-x64.h |
+++ b/src/x64/macro-assembler-x64.h |
@@ -132,6 +132,12 @@ class MacroAssembler: public Assembler { |
const ParameterCount& actual, |
InvokeFlag flag); |
+ // Distance from the end of the InvokeCode(Handle<Code>...) generated code |
+ // to the start of the immediate address being jumped to. |
+ // (Counting 8 bytes for the value itself and 3 bytes for the following |
+ // call or jump). |
+ static const int kInvokeCodeAddressOffset = -11; |
+ |
void InvokeCode(Handle<Code> code, |
const ParameterCount& expected, |
const ParameterCount& actual, |