Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index 5502e7beaf7d2a27a448069e05a074bc9fa96edf..cac7f92ec78beb37a57c128d17082dc721dc5f35 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -3458,33 +3458,42 @@ |
elements_kind, |
instr->base_offset()); |
- if (elements_kind == FLOAT32_ELEMENTS) { |
+ if ((elements_kind == EXTERNAL_FLOAT32_ELEMENTS) || |
+ (elements_kind == FLOAT32_ELEMENTS)) { |
DoubleRegister result = ToDoubleRegister(instr->result()); |
__ Ldr(result.S(), mem_op); |
__ Fcvt(result, result.S()); |
- } else if (elements_kind == FLOAT64_ELEMENTS) { |
+ } else if ((elements_kind == EXTERNAL_FLOAT64_ELEMENTS) || |
+ (elements_kind == FLOAT64_ELEMENTS)) { |
DoubleRegister result = ToDoubleRegister(instr->result()); |
__ Ldr(result, mem_op); |
} else { |
Register result = ToRegister(instr->result()); |
switch (elements_kind) { |
+ case EXTERNAL_INT8_ELEMENTS: |
case INT8_ELEMENTS: |
__ Ldrsb(result, mem_op); |
break; |
+ case EXTERNAL_UINT8_CLAMPED_ELEMENTS: |
+ case EXTERNAL_UINT8_ELEMENTS: |
case UINT8_ELEMENTS: |
case UINT8_CLAMPED_ELEMENTS: |
__ Ldrb(result, mem_op); |
break; |
+ case EXTERNAL_INT16_ELEMENTS: |
case INT16_ELEMENTS: |
__ Ldrsh(result, mem_op); |
break; |
+ case EXTERNAL_UINT16_ELEMENTS: |
case UINT16_ELEMENTS: |
__ Ldrh(result, mem_op); |
break; |
+ case EXTERNAL_INT32_ELEMENTS: |
case INT32_ELEMENTS: |
__ Ldrsw(result, mem_op); |
break; |
+ case EXTERNAL_UINT32_ELEMENTS: |
case UINT32_ELEMENTS: |
__ Ldr(result.W(), mem_op); |
if (!instr->hydrogen()->CheckFlag(HInstruction::kUint32)) { |
@@ -3495,6 +3504,8 @@ |
break; |
case FLOAT32_ELEMENTS: |
case FLOAT64_ELEMENTS: |
+ case EXTERNAL_FLOAT32_ELEMENTS: |
+ case EXTERNAL_FLOAT64_ELEMENTS: |
case FAST_HOLEY_DOUBLE_ELEMENTS: |
case FAST_HOLEY_ELEMENTS: |
case FAST_HOLEY_SMI_ELEMENTS: |
@@ -5169,33 +5180,44 @@ |
elements_kind, |
instr->base_offset()); |
- if (elements_kind == FLOAT32_ELEMENTS) { |
+ if ((elements_kind == EXTERNAL_FLOAT32_ELEMENTS) || |
+ (elements_kind == FLOAT32_ELEMENTS)) { |
DoubleRegister value = ToDoubleRegister(instr->value()); |
DoubleRegister dbl_scratch = double_scratch(); |
__ Fcvt(dbl_scratch.S(), value); |
__ Str(dbl_scratch.S(), dst); |
- } else if (elements_kind == FLOAT64_ELEMENTS) { |
+ } else if ((elements_kind == EXTERNAL_FLOAT64_ELEMENTS) || |
+ (elements_kind == FLOAT64_ELEMENTS)) { |
DoubleRegister value = ToDoubleRegister(instr->value()); |
__ Str(value, dst); |
} else { |
Register value = ToRegister(instr->value()); |
switch (elements_kind) { |
+ case EXTERNAL_UINT8_CLAMPED_ELEMENTS: |
+ case EXTERNAL_INT8_ELEMENTS: |
+ case EXTERNAL_UINT8_ELEMENTS: |
case UINT8_ELEMENTS: |
case UINT8_CLAMPED_ELEMENTS: |
case INT8_ELEMENTS: |
__ Strb(value, dst); |
break; |
+ case EXTERNAL_INT16_ELEMENTS: |
+ case EXTERNAL_UINT16_ELEMENTS: |
case INT16_ELEMENTS: |
case UINT16_ELEMENTS: |
__ Strh(value, dst); |
break; |
+ case EXTERNAL_INT32_ELEMENTS: |
+ case EXTERNAL_UINT32_ELEMENTS: |
case INT32_ELEMENTS: |
case UINT32_ELEMENTS: |
__ Str(value.W(), dst); |
break; |
case FLOAT32_ELEMENTS: |
case FLOAT64_ELEMENTS: |
+ case EXTERNAL_FLOAT32_ELEMENTS: |
+ case EXTERNAL_FLOAT64_ELEMENTS: |
case FAST_DOUBLE_ELEMENTS: |
case FAST_ELEMENTS: |
case FAST_SMI_ELEMENTS: |