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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2857 | 2857 |
2858 __ JumpIfSmi(x0, if_false); | 2858 __ JumpIfSmi(x0, if_false); |
2859 __ CompareObjectType(x0, x10, x11, SIMD128_VALUE_TYPE); | 2859 __ CompareObjectType(x0, x10, x11, SIMD128_VALUE_TYPE); |
2860 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2860 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2861 Split(eq, if_true, if_false, fall_through); | 2861 Split(eq, if_true, if_false, fall_through); |
2862 | 2862 |
2863 context()->Plug(if_true, if_false); | 2863 context()->Plug(if_true, if_false); |
2864 } | 2864 } |
2865 | 2865 |
2866 | 2866 |
2867 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) { | |
2868 ZoneList<Expression*>* args = expr->arguments(); | |
2869 DCHECK(args->length() == 1); | |
2870 | |
2871 VisitForAccumulatorValue(args->at(0)); | |
2872 | |
2873 Label materialize_true, materialize_false; | |
2874 Label* if_true = NULL; | |
2875 Label* if_false = NULL; | |
2876 Label* fall_through = NULL; | |
2877 context()->PrepareTest(&materialize_true, &materialize_false, | |
2878 &if_true, &if_false, &fall_through); | |
2879 | |
2880 __ JumpIfSmi(x0, if_false); | |
2881 __ CompareObjectType(x0, x10, x11, FIRST_FUNCTION_TYPE); | |
2882 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
2883 Split(hs, if_true, if_false, fall_through); | |
2884 | |
2885 context()->Plug(if_true, if_false); | |
2886 } | |
2887 | |
2888 | |
2889 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | 2867 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { |
2890 ZoneList<Expression*>* args = expr->arguments(); | 2868 ZoneList<Expression*>* args = expr->arguments(); |
2891 DCHECK(args->length() == 1); | 2869 DCHECK(args->length() == 1); |
2892 | 2870 |
2893 VisitForAccumulatorValue(args->at(0)); | 2871 VisitForAccumulatorValue(args->at(0)); |
2894 | 2872 |
2895 Label materialize_true, materialize_false; | 2873 Label materialize_true, materialize_false; |
2896 Label* if_true = NULL; | 2874 Label* if_true = NULL; |
2897 Label* if_false = NULL; | 2875 Label* if_false = NULL; |
2898 Label* fall_through = NULL; | 2876 Label* fall_through = NULL; |
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4851 } | 4829 } |
4852 | 4830 |
4853 return INTERRUPT; | 4831 return INTERRUPT; |
4854 } | 4832 } |
4855 | 4833 |
4856 | 4834 |
4857 } // namespace internal | 4835 } // namespace internal |
4858 } // namespace v8 | 4836 } // namespace v8 |
4859 | 4837 |
4860 #endif // V8_TARGET_ARCH_ARM64 | 4838 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |