| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index 3d4825071a926c337c90c1bb50d8dacfdec139ed..2b329c4aec5ca74859366f0c33c92d8c76b98692 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;
|
|
|