| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index b89c2e867fab4d2b76ee4b72b1a4fda3285d1684..80c0f982bddb74509fb10991bb24091e7a0e9ace 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -2164,6 +2164,12 @@ void LCodeGen::DoBranch(LBranch* instr) {
|
| __ j(equal, instr->TrueLabel(chunk_));
|
| }
|
|
|
| + if (expected.Contains(ToBooleanStub::SIMD_VALUE)) {
|
| + // SIMD value -> true.
|
| + __ CmpInstanceType(map, FLOAT32X4_TYPE);
|
| + __ j(equal, instr->TrueLabel(chunk_));
|
| + }
|
| +
|
| if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) {
|
| // heap number -> false iff +0, -0, or NaN.
|
| Label not_heap_number;
|
| @@ -5508,6 +5514,11 @@ Condition LCodeGen::EmitTypeofIs(LTypeofIsAndBranch* instr, Register input) {
|
| 1 << Map::kIsUndetectable);
|
| final_branch_condition = zero;
|
|
|
| + } else if (String::Equals(type_name, factory()->float32x4_string())) {
|
| + __ JumpIfSmi(input, false_label, false_distance);
|
| + __ CmpObjectType(input, FLOAT32X4_TYPE, input);
|
| + final_branch_condition = equal;
|
| +
|
| } else {
|
| __ jmp(false_label, false_distance);
|
| }
|
|
|