Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 3c4349ebf80c072acbabcb7487bb56aa101944f2..53be8c7f2ad70af71e2995a35ce560fd88ede33a 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2189,8 +2189,8 @@ void MacroAssembler::CallApiFunctionAndReturn( |
JumpIfSmi(return_value, &ok, Label::kNear); |
mov(map, FieldOperand(return_value, HeapObject::kMapOffset)); |
- CmpInstanceType(map, FIRST_NONSTRING_TYPE); |
- j(below, &ok, Label::kNear); |
+ CmpInstanceType(map, LAST_NAME_TYPE); |
+ j(below_equal, &ok, Label::kNear); |
CmpInstanceType(map, FIRST_SPEC_OBJECT_TYPE); |
j(above_equal, &ok, Label::kNear); |