Index: src/ia32/macro-assembler-ia32.cc |
=================================================================== |
--- src/ia32/macro-assembler-ia32.cc (revision 3531) |
+++ src/ia32/macro-assembler-ia32.cc (working copy) |
@@ -325,6 +325,17 @@ |
} |
+Condition MacroAssembler::IsObjectStringType(Register heap_object, |
+ Register map, |
+ Register instance_type) { |
+ mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); |
+ movzx_b(instance_type, FieldOperand(map, Map::kInstanceTypeOffset)); |
+ ASSERT(kNotStringTag != 0); |
+ test(instance_type, Immediate(kIsNotStringMask)); |
+ return zero; |
+} |
+ |
+ |
void MacroAssembler::FCmp() { |
if (CpuFeatures::IsSupported(CMOV)) { |
fucomip(); |