Index: src/arm/macro-assembler-arm.h |
diff --git a/src/arm/macro-assembler-arm.h b/src/arm/macro-assembler-arm.h |
index 4897064fc68f88e01510b4bf48962995dc0ff4f6..e0f92dfa8eecee1d082e9186176b0388b84e7ada 100644 |
--- a/src/arm/macro-assembler-arm.h |
+++ b/src/arm/macro-assembler-arm.h |
@@ -845,11 +845,20 @@ 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. |
ulan
2013/11/22 15:43:46
Add a comment that it writes map to the given map
|
+ void CheckObjectTypeRange(Register heap_object, |
+ Register map, |
ulan
2013/11/22 15:43:46
Indentation is off
|
+ 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. |