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

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: Back out changes to include/v8.h 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
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4902 matching lines...) Expand 10 before | Expand all | Expand 10 after
4913 // Check for undetectable objects => false. 4913 // Check for undetectable objects => false.
4914 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge); 4914 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge);
4915 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset)); 4915 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset));
4916 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false, 4916 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false,
4917 fall_through); 4917 fall_through);
4918 } else if (String::Equals(check, factory->symbol_string())) { 4918 } else if (String::Equals(check, factory->symbol_string())) {
4919 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); 4919 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string");
4920 __ JumpIfSmi(x0, if_false); 4920 __ JumpIfSmi(x0, if_false);
4921 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE); 4921 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE);
4922 Split(eq, if_true, if_false, fall_through); 4922 Split(eq, if_true, if_false, fall_through);
4923 } else if (String::Equals(check, factory->float32x4_string())) {
4924 ASM_LOCATION(
4925 "FullCodeGenerator::EmitLiteralCompareTypeof float32x4_string");
4926 __ JumpIfSmi(x0, if_false);
4927 __ CompareObjectType(x0, x0, x1, FLOAT32X4_TYPE);
4928 Split(eq, if_true, if_false, fall_through);
4923 } else if (String::Equals(check, factory->boolean_string())) { 4929 } else if (String::Equals(check, factory->boolean_string())) {
4924 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string"); 4930 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string");
4925 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true); 4931 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true);
4926 __ CompareRoot(x0, Heap::kFalseValueRootIndex); 4932 __ CompareRoot(x0, Heap::kFalseValueRootIndex);
4927 Split(eq, if_true, if_false, fall_through); 4933 Split(eq, if_true, if_false, fall_through);
4928 } else if (String::Equals(check, factory->undefined_string())) { 4934 } else if (String::Equals(check, factory->undefined_string())) {
4929 ASM_LOCATION( 4935 ASM_LOCATION(
4930 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string"); 4936 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string");
4931 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true); 4937 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true);
4932 __ JumpIfSmi(x0, if_false); 4938 __ JumpIfSmi(x0, if_false);
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
5601 } 5607 }
5602 5608
5603 return INTERRUPT; 5609 return INTERRUPT;
5604 } 5610 }
5605 5611
5606 5612
5607 } // namespace internal 5613 } // namespace internal
5608 } // namespace v8 5614 } // namespace v8
5609 5615
5610 #endif // V8_TARGET_ARCH_ARM64 5616 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698