Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 2932ec893cb2379f0bde24d2fbc67bd7e5a33cf4..97e5690c8dcf3a6b0a6c9aae4107ad57ffb89565 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -805,8 +805,8 @@ void MacroAssembler::CallApiFunctionAndReturn( |
JumpIfSmi(return_value, &ok, Label::kNear); |
movp(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); |