Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index b16d44bdc589ed97439831f24ace11f229a3d238..b297e316f252a0158f87327c3855a3f152b2e317 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -793,6 +793,18 @@ void MacroAssembler::AssertFunction(Register object) { |
} |
+void MacroAssembler::AssertBoundFunction(Register object) { |
+ if (emit_debug_code()) { |
+ test(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; |