| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index c92e5d7f698824f723442f3c31703214b77b109d..02f1b763bb2c8fafbc4bf0fa7f0e362840ccb704 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -3407,9 +3407,12 @@ void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) {
|
| &if_true, &if_false, &fall_through);
|
|
|
| __ JumpIfSmi(v0, if_false);
|
| - __ GetObjectType(v0, a1, a1);
|
| + Register map = a1;
|
| + Register type_reg = a2;
|
| + __ GetObjectType(v0, map, type_reg);
|
| + __ Subu(type_reg, type_reg, Operand(FIRST_SIMD_VALUE_TYPE));
|
| PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
|
| - Split(ge, a1, Operand(FIRST_SPEC_OBJECT_TYPE),
|
| + Split(ls, type_reg, Operand(LAST_SIMD_VALUE_TYPE - FIRST_SIMD_VALUE_TYPE),
|
| if_true, if_false, fall_through);
|
|
|
| context()->Plug(if_true, if_false);
|
| @@ -5089,6 +5092,30 @@ void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr,
|
| __ JumpIfSmi(v0, if_false);
|
| __ GetObjectType(v0, v0, a1);
|
| Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through);
|
| + } else if (String::Equals(check, factory->int32x4_string())) {
|
| + __ JumpIfSmi(v0, if_false);
|
| + __ GetObjectType(v0, v0, a1);
|
| + Split(eq, a1, Operand(INT32X4_TYPE), if_true, if_false, fall_through);
|
| + } else if (String::Equals(check, factory->bool32x4_string())) {
|
| + __ JumpIfSmi(v0, if_false);
|
| + __ GetObjectType(v0, v0, a1);
|
| + Split(eq, a1, Operand(BOOL32X4_TYPE), if_true, if_false, fall_through);
|
| + } else if (String::Equals(check, factory->int16x8_string())) {
|
| + __ JumpIfSmi(v0, if_false);
|
| + __ GetObjectType(v0, v0, a1);
|
| + Split(eq, a1, Operand(INT16X8_TYPE), if_true, if_false, fall_through);
|
| + } else if (String::Equals(check, factory->bool16x8_string())) {
|
| + __ JumpIfSmi(v0, if_false);
|
| + __ GetObjectType(v0, v0, a1);
|
| + Split(eq, a1, Operand(BOOL16X8_TYPE), if_true, if_false, fall_through);
|
| + } else if (String::Equals(check, factory->int8x16_string())) {
|
| + __ JumpIfSmi(v0, if_false);
|
| + __ GetObjectType(v0, v0, a1);
|
| + Split(eq, a1, Operand(INT8X16_TYPE), if_true, if_false, fall_through);
|
| + } else if (String::Equals(check, factory->bool8x16_string())) {
|
| + __ JumpIfSmi(v0, if_false);
|
| + __ GetObjectType(v0, v0, a1);
|
| + Split(eq, a1, Operand(BOOL8X16_TYPE), if_true, if_false, fall_through);
|
| } else if (String::Equals(check, factory->boolean_string())) {
|
| __ LoadRoot(at, Heap::kTrueValueRootIndex);
|
| __ Branch(if_true, eq, v0, Operand(at));
|
|
|