| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index d5a3d81d064cf72ff4ebfa58a547870ae96e73f4..53f0f795a78048bc7987b693caa7e76adb7b3805 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -2270,8 +2270,12 @@ void LCodeGen::DoBranch(LBranch* instr) {
|
|
|
| if (expected.Contains(ToBooleanStub::SIMD_VALUE)) {
|
| // SIMD value -> true.
|
| - __ CompareInstanceType(map, ip, FLOAT32X4_TYPE);
|
| - __ b(eq, instr->TrueLabel(chunk_));
|
| + Label not_simd;
|
| + __ CompareInstanceType(map, ip, FIRST_SIMD128_VALUE_TYPE);
|
| + __ b(lt, ¬_simd);
|
| + __ CompareInstanceType(map, ip, LAST_SIMD128_VALUE_TYPE);
|
| + __ b(le, instr->TrueLabel(chunk_));
|
| + __ bind(¬_simd);
|
| }
|
|
|
| if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) {
|
| @@ -5708,6 +5712,36 @@ Condition LCodeGen::EmitTypeofIs(Label* true_label,
|
| __ CompareObjectType(input, scratch, no_reg, FLOAT32X4_TYPE);
|
| final_branch_condition = eq;
|
|
|
| + } else if (String::Equals(type_name, factory->int32x4_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ CompareObjectType(input, scratch, no_reg, INT32X4_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| + } else if (String::Equals(type_name, factory->bool32x4_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ CompareObjectType(input, scratch, no_reg, BOOL32X4_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| + } else if (String::Equals(type_name, factory->int16x8_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ CompareObjectType(input, scratch, no_reg, INT16X8_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| + } else if (String::Equals(type_name, factory->bool16x8_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ CompareObjectType(input, scratch, no_reg, BOOL16X8_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| + } else if (String::Equals(type_name, factory->int8x16_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ CompareObjectType(input, scratch, no_reg, INT8X16_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| + } else if (String::Equals(type_name, factory->bool8x16_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ CompareObjectType(input, scratch, no_reg, BOOL8X16_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| } else {
|
| __ b(false_label);
|
| }
|
|
|