| Index: src/ppc/lithium-codegen-ppc.cc
|
| diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc
|
| index de2e10eab23804c2990efee205488c6044d81590..87e1a8d4966d82a4ddff17af5f2522d22a0d7d57 100644
|
| --- a/src/ppc/lithium-codegen-ppc.cc
|
| +++ b/src/ppc/lithium-codegen-ppc.cc
|
| @@ -2305,6 +2305,12 @@ void LCodeGen::DoBranch(LBranch* instr) {
|
| __ beq(instr->TrueLabel(chunk_));
|
| }
|
|
|
| + if (expected.Contains(ToBooleanStub::SIMD_VALUE)) {
|
| + // SIMD value -> true.
|
| + __ CompareInstanceType(map, ip, FLOAT32X4_TYPE);
|
| + __ beq(instr->TrueLabel(chunk_));
|
| + }
|
| +
|
| if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) {
|
| // heap number -> false iff +0, -0, or NaN.
|
| Label not_heap_number;
|
| @@ -5967,6 +5973,11 @@ Condition LCodeGen::EmitTypeofIs(Label* true_label, Label* false_label,
|
| __ cmpi(r0, Operand::Zero());
|
| final_branch_condition = eq;
|
|
|
| + } else if (String::Equals(type_name, factory->float32x4_string())) {
|
| + __ JumpIfSmi(input, false_label);
|
| + __ CompareObjectType(input, scratch, no_reg, FLOAT32X4_TYPE);
|
| + final_branch_condition = eq;
|
| +
|
| } else {
|
| __ b(false_label);
|
| }
|
|
|