Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index 624f94b3dc4dcebcbd7b0c8fa66b04c159f8c5d7..a2043a0559623af9572e48d90a76d2dadfe568e1 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -183,6 +183,10 @@ void MacroAssembler::Drop(int count) { |
} |
} |
+void MacroAssembler::Drop(Register count, Register scratch) { |
+ ShiftLeftImm(scratch, count, Operand(kPointerSizeLog2)); |
+ add(sp, sp, scratch); |
+} |
void MacroAssembler::Call(Label* target) { b(target, SetLK); } |