Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 24777e8a7e1afebc59d50269f33957a5bb39cb41..22a7046196ca4476d2136e603c20e34d52e82537 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -3059,7 +3059,7 @@ Condition MacroAssembler::IsObjectNameType(Register heap_object, |
Register instance_type) { |
movq(map, FieldOperand(heap_object, HeapObject::kMapOffset)); |
movzxbl(instance_type, FieldOperand(map, Map::kInstanceTypeOffset)); |
- cmpb(instance_type, Immediate(static_cast<int8_t>(LAST_NAME_TYPE))); |
+ cmpb(instance_type, Immediate(static_cast<uint8_t>(LAST_NAME_TYPE))); |
return below_equal; |
} |