Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index f1fce91c55b04a16d87a21eb9bcfaee4879b38cc..f3c8f253c1789deeec81a2eb3142ea9719f2c200 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -3862,6 +3862,18 @@ void MacroAssembler::AssertFunction(Register object) { |
} |
+void MacroAssembler::AssertBoundFunction(Register object) { |
+ if (emit_debug_code()) { |
+ testb(object, Immediate(kSmiTagMask)); |
+ Check(not_equal, kOperandIsASmiAndNotABoundFunction); |
+ Push(object); |
+ CmpObjectType(object, JS_BOUND_FUNCTION_TYPE, object); |
+ Pop(object); |
+ Check(equal, kOperandIsNotABoundFunction); |
+ } |
+} |
+ |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object) { |
if (emit_debug_code()) { |
Label done_checking; |