Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: src/full-codegen/arm64/full-codegen-arm64.cc

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/full-codegen/arm64/full-codegen-arm64.cc
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
index 40af62cf1953f2b95a2b129b24c3a722eef8b3ea..567c0edec7ff646e270363db088e4dcccef58c2c 100644
--- a/src/full-codegen/arm64/full-codegen-arm64.cc
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc
@@ -4772,6 +4772,36 @@ void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr,
__ JumpIfSmi(x0, if_false);
__ CompareObjectType(x0, x0, x1, FLOAT32X4_TYPE);
Split(eq, if_true, if_false, fall_through);
+ } else if (String::Equals(check, factory->int32x4_string())) {
+ ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof int32x4_string");
+ __ JumpIfSmi(x0, if_false);
+ __ CompareObjectType(x0, x0, x1, INT32X4_TYPE);
+ Split(eq, if_true, if_false, fall_through);
+ } else if (String::Equals(check, factory->bool32x4_string())) {
+ ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof bool32x4_string");
+ __ JumpIfSmi(x0, if_false);
+ __ CompareObjectType(x0, x0, x1, BOOL32X4_TYPE);
+ Split(eq, if_true, if_false, fall_through);
+ } else if (String::Equals(check, factory->int16x8_string())) {
+ ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof int16x8_string");
+ __ JumpIfSmi(x0, if_false);
+ __ CompareObjectType(x0, x0, x1, INT16X8_TYPE);
+ Split(eq, if_true, if_false, fall_through);
+ } else if (String::Equals(check, factory->bool16x8_string())) {
+ ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof bool16x8_string");
+ __ JumpIfSmi(x0, if_false);
+ __ CompareObjectType(x0, x0, x1, BOOL16X8_TYPE);
+ Split(eq, if_true, if_false, fall_through);
+ } else if (String::Equals(check, factory->int8x16_string())) {
+ ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof int8x16_string");
+ __ JumpIfSmi(x0, if_false);
+ __ CompareObjectType(x0, x0, x1, INT8X16_TYPE);
+ Split(eq, if_true, if_false, fall_through);
+ } else if (String::Equals(check, factory->bool8x16_string())) {
+ ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof bool8x16_string");
+ __ JumpIfSmi(x0, if_false);
+ __ CompareObjectType(x0, x0, x1, BOOL8X16_TYPE);
+ Split(eq, if_true, if_false, fall_through);
} else if (String::Equals(check, factory->boolean_string())) {
ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string");
__ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true);

Powered by Google App Engine
This is Rietveld 408576698