Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index b34072293aac8e8928d3aab93475953bfef73d3b..e06b96005c1871e814d4c0d975d33fd0ba3f9d56 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -2645,6 +2645,19 @@ void MacroAssembler::AssertFunction(Register object) { |
} |
+void MacroAssembler::AssertBoundFunction(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ TestIfSmi(object, r0); |
+ Check(ne, kOperandIsASmiAndNotABoundFunction, cr0); |
+ push(object); |
+ CompareObjectType(object, object, object, JS_BOUND_FUNCTION_TYPE); |
+ pop(object); |
+ Check(eq, kOperandIsNotABoundFunction); |
+ } |
+} |
+ |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |
if (emit_debug_code()) { |