Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 8aa28a01639d87f395199472825686668abcce0e..0daaa506c197a85a4bc9e3318218b0eac27deddd 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -331,8 +331,9 @@ void MacroAssembler::IsInstanceJSObjectType(Register map, |
Register scratch, |
Label* fail) { |
movzx_b(scratch, FieldOperand(map, Map::kInstanceTypeOffset)); |
- sub(Operand(scratch), Immediate(FIRST_JS_OBJECT_TYPE)); |
- cmp(scratch, LAST_JS_OBJECT_TYPE - FIRST_JS_OBJECT_TYPE); |
+ sub(Operand(scratch), Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
+ cmp(scratch, |
+ LAST_NONCALLABLE_SPEC_OBJECT_TYPE - FIRST_NONCALLABLE_SPEC_OBJECT_TYPE); |
j(above, fail); |
} |