Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index 894a64a2ee657f5c23b9b79ddaad84cf1febc17d..c2a6f7c5266e664558e1c58328f180cd9ba13ea6 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -5031,6 +5031,30 @@ void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr, |
__ JumpIfSmi(rax, if_false); |
__ CmpObjectType(rax, FLOAT32X4_TYPE, rdx); |
Split(equal, if_true, if_false, fall_through); |
+ } else if (String::Equals(check, factory->int32x4_string())) { |
+ __ JumpIfSmi(rax, if_false); |
+ __ CmpObjectType(rax, INT32X4_TYPE, rdx); |
+ Split(equal, if_true, if_false, fall_through); |
+ } else if (String::Equals(check, factory->bool32x4_string())) { |
+ __ JumpIfSmi(rax, if_false); |
+ __ CmpObjectType(rax, BOOL32X4_TYPE, rdx); |
+ Split(equal, if_true, if_false, fall_through); |
+ } else if (String::Equals(check, factory->int16x8_string())) { |
+ __ JumpIfSmi(rax, if_false); |
+ __ CmpObjectType(rax, INT16X8_TYPE, rdx); |
+ Split(equal, if_true, if_false, fall_through); |
+ } else if (String::Equals(check, factory->bool16x8_string())) { |
+ __ JumpIfSmi(rax, if_false); |
+ __ CmpObjectType(rax, BOOL16X8_TYPE, rdx); |
+ Split(equal, if_true, if_false, fall_through); |
+ } else if (String::Equals(check, factory->int8x16_string())) { |
+ __ JumpIfSmi(rax, if_false); |
+ __ CmpObjectType(rax, INT8X16_TYPE, rdx); |
+ Split(equal, if_true, if_false, fall_through); |
+ } else if (String::Equals(check, factory->bool8x16_string())) { |
+ __ JumpIfSmi(rax, if_false); |
+ __ CmpObjectType(rax, BOOL8X16_TYPE, rdx); |
+ Split(equal, if_true, if_false, fall_through); |
} else if (String::Equals(check, factory->boolean_string())) { |
__ CompareRoot(rax, Heap::kTrueValueRootIndex); |
__ j(equal, if_true); |