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 4872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4883 // Check for undetectable objects => false. | 4883 // Check for undetectable objects => false. |
4884 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge); | 4884 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge); |
4885 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset)); | 4885 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset)); |
4886 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false, | 4886 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false, |
4887 fall_through); | 4887 fall_through); |
4888 } else if (String::Equals(check, factory->symbol_string())) { | 4888 } else if (String::Equals(check, factory->symbol_string())) { |
4889 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); | 4889 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); |
4890 __ JumpIfSmi(x0, if_false); | 4890 __ JumpIfSmi(x0, if_false); |
4891 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE); | 4891 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE); |
4892 Split(eq, if_true, if_false, fall_through); | 4892 Split(eq, if_true, if_false, fall_through); |
| 4893 } else if (String::Equals(check, factory->float32x4_string())) { |
| 4894 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); |
| 4895 __ JumpIfSmi(x0, if_false); |
| 4896 __ CompareObjectType(x0, x0, x1, FLOAT32X4_TYPE); |
| 4897 Split(eq, if_true, if_false, fall_through); |
4893 } else if (String::Equals(check, factory->boolean_string())) { | 4898 } else if (String::Equals(check, factory->boolean_string())) { |
4894 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string"); | 4899 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string"); |
4895 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true); | 4900 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true); |
4896 __ CompareRoot(x0, Heap::kFalseValueRootIndex); | 4901 __ CompareRoot(x0, Heap::kFalseValueRootIndex); |
4897 Split(eq, if_true, if_false, fall_through); | 4902 Split(eq, if_true, if_false, fall_through); |
4898 } else if (String::Equals(check, factory->undefined_string())) { | 4903 } else if (String::Equals(check, factory->undefined_string())) { |
4899 ASM_LOCATION( | 4904 ASM_LOCATION( |
4900 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string"); | 4905 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string"); |
4901 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true); | 4906 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true); |
4902 __ JumpIfSmi(x0, if_false); | 4907 __ JumpIfSmi(x0, if_false); |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5569 } | 5574 } |
5570 | 5575 |
5571 return INTERRUPT; | 5576 return INTERRUPT; |
5572 } | 5577 } |
5573 | 5578 |
5574 | 5579 |
5575 } // namespace internal | 5580 } // namespace internal |
5576 } // namespace v8 | 5581 } // namespace v8 |
5577 | 5582 |
5578 #endif // V8_TARGET_ARCH_ARM64 | 5583 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |