Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index 5615d4daecda0a62a462259ba8ed4feb4677f533..b9693d14815d9c59e1beb46b3611a263b4e2cb07 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -2153,8 +2153,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); |