Index: runtime/vm/stub_code_arm64.cc |
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc |
index 43732de9f9d1128a4c563f7bd4cdd10ffdf0633b..53ee64b428a35ef0a1fd81535dac8d070f8b758c 100644 |
--- a/runtime/vm/stub_code_arm64.cc |
+++ b/runtime/vm/stub_code_arm64.cc |
@@ -723,9 +723,8 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) { |
// R2: array length as Smi. |
// R8: heap. |
__ LoadFromOffset(R0, R8, Heap::TopOffset(space)); |
- intptr_t fixed_size_plus_alignment_padding = |
- sizeof(RawArray) + kObjectAlignment - 1; |
- __ LoadImmediate(R3, fixed_size_plus_alignment_padding); |
+ intptr_t fixed_size = sizeof(RawArray) + kObjectAlignment - 1; |
+ __ LoadImmediate(R3, fixed_size); |
__ add(R3, R3, Operand(R2, LSL, 2)); // R2 is Smi. |
ASSERT(kSmiTagShift == 1); |
__ andi(R3, R3, Immediate(~(kObjectAlignment - 1))); |
@@ -970,9 +969,8 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) { |
Label slow_case; |
// First compute the rounded instance size. |
// R1: number of context variables. |
- intptr_t fixed_size_plus_alignment_padding = |
- sizeof(RawContext) + kObjectAlignment - 1; |
- __ LoadImmediate(R2, fixed_size_plus_alignment_padding); |
+ intptr_t fixed_size = sizeof(RawContext) + kObjectAlignment - 1; |
+ __ LoadImmediate(R2, fixed_size); |
__ add(R2, R2, Operand(R1, LSL, 3)); |
ASSERT(kSmiTagShift == 1); |
__ andi(R2, R2, Immediate(~(kObjectAlignment - 1))); |
@@ -2304,9 +2302,9 @@ void StubCode::GenerateSingleTargetCallStub(Assembler* assembler) { |
Label miss; |
__ LoadClassIdMayBeSmi(R1, R0); |
__ ldr(R2, FieldAddress(R5, SingleTargetCache::lower_limit_offset()), |
- kUnsignedHalfword); |
+ kUnsignedWord); |
__ ldr(R3, FieldAddress(R5, SingleTargetCache::upper_limit_offset()), |
- kUnsignedHalfword); |
+ kUnsignedWord); |
__ cmp(R1, Operand(R2)); |
__ b(&miss, LT); |