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 4914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4925 // Check for undetectable objects => false. | 4925 // Check for undetectable objects => false. |
4926 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge); | 4926 __ JumpIfObjectType(x0, x0, x1, FIRST_NONSTRING_TYPE, if_false, ge); |
4927 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset)); | 4927 __ Ldrb(x1, FieldMemOperand(x0, Map::kBitFieldOffset)); |
4928 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false, | 4928 __ TestAndSplit(x1, 1 << Map::kIsUndetectable, if_true, if_false, |
4929 fall_through); | 4929 fall_through); |
4930 } else if (String::Equals(check, factory->symbol_string())) { | 4930 } else if (String::Equals(check, factory->symbol_string())) { |
4931 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); | 4931 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); |
4932 __ JumpIfSmi(x0, if_false); | 4932 __ JumpIfSmi(x0, if_false); |
4933 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE); | 4933 __ CompareObjectType(x0, x0, x1, SYMBOL_TYPE); |
4934 Split(eq, if_true, if_false, fall_through); | 4934 Split(eq, if_true, if_false, fall_through); |
| 4935 } else if (String::Equals(check, factory->float32x4_string())) { |
| 4936 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof symbol_string"); |
| 4937 __ JumpIfSmi(x0, if_false); |
| 4938 __ CompareObjectType(x0, x0, x1, FLOAT32X4_TYPE); |
| 4939 Split(eq, if_true, if_false, fall_through); |
4935 } else if (String::Equals(check, factory->boolean_string())) { | 4940 } else if (String::Equals(check, factory->boolean_string())) { |
4936 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string"); | 4941 ASM_LOCATION("FullCodeGenerator::EmitLiteralCompareTypeof boolean_string"); |
4937 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true); | 4942 __ JumpIfRoot(x0, Heap::kTrueValueRootIndex, if_true); |
4938 __ CompareRoot(x0, Heap::kFalseValueRootIndex); | 4943 __ CompareRoot(x0, Heap::kFalseValueRootIndex); |
4939 Split(eq, if_true, if_false, fall_through); | 4944 Split(eq, if_true, if_false, fall_through); |
4940 } else if (String::Equals(check, factory->undefined_string())) { | 4945 } else if (String::Equals(check, factory->undefined_string())) { |
4941 ASM_LOCATION( | 4946 ASM_LOCATION( |
4942 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string"); | 4947 "FullCodeGenerator::EmitLiteralCompareTypeof undefined_string"); |
4943 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true); | 4948 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, if_true); |
4944 __ JumpIfSmi(x0, if_false); | 4949 __ JumpIfSmi(x0, if_false); |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5611 } | 5616 } |
5612 | 5617 |
5613 return INTERRUPT; | 5618 return INTERRUPT; |
5614 } | 5619 } |
5615 | 5620 |
5616 | 5621 |
5617 } // namespace internal | 5622 } // namespace internal |
5618 } // namespace v8 | 5623 } // namespace v8 |
5619 | 5624 |
5620 #endif // V8_TARGET_ARCH_ARM64 | 5625 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |