Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 2ed66fd03cf4cfd86573228596fcf9725b9c02b1..53c673d176d7fc8e77689befc39426366c620c90 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -3572,6 +3572,14 @@ void MacroAssembler::TryGetFunctionPrototype(Register function, Register result, |
} |
+void MacroAssembler::PushRoot(Heap::RootListIndex index) { |
+ UseScratchRegisterScope temps(this); |
+ Register temp = temps.AcquireX(); |
+ LoadRoot(temp, index); |
+ Push(temp); |
+} |
+ |
+ |
void MacroAssembler::CompareRoot(const Register& obj, |
Heap::RootListIndex index) { |
UseScratchRegisterScope temps(this); |