OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |