Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index b6bd41d8f428a91771a3a1dcb5f0e1896ad95559..cddd640786386b2556cc39a89b18d23dd1717482 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -821,6 +821,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; |