Chromium Code Reviews| Index: runtime/vm/assembler_arm.cc |
| =================================================================== |
| --- runtime/vm/assembler_arm.cc (revision 45266) |
| +++ runtime/vm/assembler_arm.cc (working copy) |
| @@ -3387,6 +3387,7 @@ |
| const uword top_address = heap->TopAddress(space); |
| LoadImmediate(temp_reg, top_address); |
| ldr(instance_reg, Address(temp_reg)); |
| + // TODO(koda): Protect against unsigned overflow here. |
| AddImmediate(instance_reg, instance_size); |
|
zra
2015/04/21 14:55:27
Assembler::AddImmediateSetFlags(instance_reg, inst
|
| // instance_reg: potential next object start. |
| @@ -3435,7 +3436,7 @@ |
| LoadImmediate(temp1, heap->TopAddress(space)); |
| ldr(instance, Address(temp1, 0)); // Potential new object start. |
| AddImmediate(end_address, instance, instance_size); |
|
zra
2015/04/21 14:55:27
AddImmediateSetFlags
koda
2015/04/21 16:08:46
Done.
|
| - b(failure, VS); |
| + b(failure, CS); // Branch if unsigned overflow. |
| // Check if the allocation fits into the remaining space. |
| // instance: potential new object start. |