Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 9dea6167186797b85cddafda5baffe2fc4f8ffa6..79733ff4a91edf5a29fbb906c24c0d41e61506b0 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -67,6 +67,12 @@ void MacroAssembler::CompareRoot(Operand with, Heap::RootListIndex index) { |
} |
+void MacroAssembler::StackLimitCheck(Label* on_stack_overflow) { |
+ CompareRoot(rsp, Heap::kStackLimitRootIndex); |
+ j(below, on_stack_overflow); |
+} |
+ |
+ |
static void RecordWriteHelper(MacroAssembler* masm, |
Register object, |
Register addr, |