Index: src/x64/macro-assembler-x64.h |
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h |
index 61834e01ac2825dd2100bb7c1b74220d5beceb0c..4af372a81a3eae3ed4742337b15fab141467a42e 100644 |
--- a/src/x64/macro-assembler-x64.h |
+++ b/src/x64/macro-assembler-x64.h |
@@ -33,6 +33,9 @@ |
namespace v8 { |
namespace internal { |
+// Default scratch register used by MacroAssembler (and other code that needs |
+// a spare register). The register isn't callee save, and not used by the |
+// function calling convention. |
static const Register kScratchRegister = r10; |
// Forward declaration. |
@@ -158,7 +161,7 @@ class MacroAssembler: public Assembler { |
// Push a new try handler and link into try handler chain. |
// The return address must be pushed before calling this helper. |
- // On exit, eax contains TOS (next_sp). |
+ // On exit, rax contains TOS (next_sp). |
void PushTryHandler(CodeLocation try_location, HandlerType type); |