Index: src/arm/macro-assembler-arm.h |
diff --git a/src/arm/macro-assembler-arm.h b/src/arm/macro-assembler-arm.h |
index 5e20eecfb633dfab14a59c7b2679d0dc793034bc..467a1ac4b78d0bd946d8020328bf1db0b137b326 100644 |
--- a/src/arm/macro-assembler-arm.h |
+++ b/src/arm/macro-assembler-arm.h |
@@ -845,11 +845,21 @@ class MacroAssembler: public Assembler { |
// are the same register). It leaves the heap object in the heap_object |
// register unless the heap_object register is the same register as one of the |
// other registers. |
+ // Type_reg can be no_reg. In that case ip is used. |
void CompareObjectType(Register heap_object, |
Register map, |
Register type_reg, |
InstanceType type); |
+ // Compare object type for heap object. Branch to false_label if type |
+ // is lower than min_type or greater than max_type. |
+ // Load map into the register map. |
+ void CheckObjectTypeRange(Register heap_object, |
+ Register map, |
+ InstanceType min_type, |
+ InstanceType max_type, |
+ Label* false_label); |
+ |
// Compare instance type in a map. map contains a valid map object whose |
// object type should be compared with the given type. This both |
// sets the flags and leaves the object type in the type_reg register. |