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

Side by Side Diff: src/arm64/full-codegen-arm64.cc

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: samevalue.js tweak. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 4873 matching lines...) Expand 10 before | Expand all | Expand 10 after
4884 // Check for undetectable objects => false. 4884 // Check for undetectable objects => false.
4885 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge); 4885 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge);
4886 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset)); 4886 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset));
4887 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false, 4887 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false,
4888 fall_through); 4888 fall_through);
4889 } else if (String::Equals(check, factory->symbol_string())) { 4889 } else if (String::Equals(check, factory->symbol_string())) {
4890 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); 4890 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string");
4891 __ JumpIfSmi(x0, if_false); 4891 __ JumpIfSmi(x0, if_false);
4892 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE); 4892 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE);
4893 Split(eq, if_true, if_false, fall_through); 4893 Split(eq, if_true, if_false, fall_through);
4894 } else if (String::Equals(check, factory->float32x4_string())) {
4895 ASM_LOCATION(
4896 "FullCodeGenerator::EmitLiteralCompareTypeof float32x4_string");
4897 __ JumpIfSmi(x0, if_false);
4898 __ CompareObjectType(x0, x0, x1, FLOAT32X4_TYPE);
4899 Split(eq, if_true, if_false, fall_through);
4894 } else if (String::Equals(check, factory->boolean_string())) { 4900 } else if (String::Equals(check, factory->boolean_string())) {
4895 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string"); 4901 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string");
4896 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true); 4902 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true);
4897 __ CompareRoot(x0, Heap::kFalseValueRootIndex); 4903 __ CompareRoot(x0, Heap::kFalseValueRootIndex);
4898 Split(eq, if_true, if_false, fall_through); 4904 Split(eq, if_true, if_false, fall_through);
4899 } else if (String::Equals(check, factory->undefined_string())) { 4905 } else if (String::Equals(check, factory->undefined_string())) {
4900 ASM_LOCATION( 4906 ASM_LOCATION(
4901 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string"); 4907 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string");
4902 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true); 4908 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true);
4903 __ JumpIfSmi(x0, if_false); 4909 __ JumpIfSmi(x0, if_false);
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
5571 } 5577 }
5572 5578
5573 return INTERRUPT; 5579 return INTERRUPT;
5574 } 5580 }
5575 5581
5576 5582
5577 } // namespace internal 5583 } // namespace internal
5578 } // namespace v8 5584 } // namespace v8
5579 5585
5580 #endif // V8_TARGET_ARCH_ARM64 5586 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698