Index: src/arm/macro-assembler-arm.cc |
=================================================================== |
--- src/arm/macro-assembler-arm.cc (revision 3807) |
+++ src/arm/macro-assembler-arm.cc (working copy) |
@@ -1064,6 +1064,21 @@ |
} |
+void MacroAssembler::CheckMap(Register obj, |
+ Register scratch, |
+ Handle<Map> map, |
+ Label* fail, |
+ bool is_heap_object) { |
+ if (!is_heap_object) { |
+ BranchOnSmi(obj, fail); |
+ } |
+ ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
+ mov(ip, Operand(map)); |
+ cmp(scratch, ip); |
+ b(ne, fail); |
+} |
+ |
+ |
void MacroAssembler::TryGetFunctionPrototype(Register function, |
Register result, |
Register scratch, |