Index: src/a64/macro-assembler-a64.cc |
diff --git a/src/a64/macro-assembler-a64.cc b/src/a64/macro-assembler-a64.cc |
index 1e8da54314a5fa2434071cb051a8281126f38301..55bf848844764b67806ce04af24f07781de08722 100644 |
--- a/src/a64/macro-assembler-a64.cc |
+++ b/src/a64/macro-assembler-a64.cc |
@@ -3380,18 +3380,14 @@ void MacroAssembler::CompareInstanceType(Register map, |
void MacroAssembler::CompareMap(Register obj, |
Register scratch, |
- Handle<Map> map, |
- Label* early_success) { |
- // TODO(jbramley): The early_success label isn't used. Remove it. |
+ Handle<Map> map) { |
Ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
- CompareMap(scratch, map, early_success); |
+ CompareMap(scratch, map); |
} |
void MacroAssembler::CompareMap(Register obj_map, |
- Handle<Map> map, |
- Label* early_success) { |
- // TODO(jbramley): The early_success label isn't used. Remove it. |
+ Handle<Map> map) { |
Cmp(obj_map, Operand(map)); |
} |
@@ -3405,10 +3401,8 @@ void MacroAssembler::CheckMap(Register obj, |
JumpIfSmi(obj, fail); |
} |
- Label success; |
- CompareMap(obj, scratch, map, &success); |
+ CompareMap(obj, scratch, map); |
B(ne, fail); |
- Bind(&success); |
} |
@@ -3432,10 +3426,9 @@ void MacroAssembler::CheckMap(Register obj_map, |
if (smi_check_type == DO_SMI_CHECK) { |
JumpIfSmi(obj_map, fail); |
} |
- Label success; |
- CompareMap(obj_map, map, &success); |
+ |
+ CompareMap(obj_map, map); |
B(ne, fail); |
- Bind(&success); |
} |