Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index a1d9c41a561f9156cfc484c4278b0ebe8d7fd64c..3c02f9d1436a400732d758d893afeae18fa8fa79 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -5566,6 +5566,17 @@ void MacroAssembler::AssertFunction(Register object) { |
} |
+void MacroAssembler::AssertBoundFunction(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ SmiTst(object, t8); |
+ Check(ne, kOperandIsASmiAndNotABoundFunction, t8, Operand(zero_reg)); |
+ GetObjectType(object, t8, t8); |
+ Check(eq, kOperandIsNotABoundFunction, t8, Operand(JS_BOUND_FUNCTION_TYPE)); |
+ } |
+} |
+ |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |
if (emit_debug_code()) { |