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 2848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2859 VisitForAccumulatorValue(args->at(0)); | 2859 VisitForAccumulatorValue(args->at(0)); |
2860 | 2860 |
2861 Label materialize_true, materialize_false; | 2861 Label materialize_true, materialize_false; |
2862 Label* if_true = NULL; | 2862 Label* if_true = NULL; |
2863 Label* if_false = NULL; | 2863 Label* if_false = NULL; |
2864 Label* fall_through = NULL; | 2864 Label* fall_through = NULL; |
2865 context()->PrepareTest(&materialize_true, &materialize_false, | 2865 context()->PrepareTest(&materialize_true, &materialize_false, |
2866 &if_true, &if_false, &fall_through); | 2866 &if_true, &if_false, &fall_through); |
2867 | 2867 |
2868 __ JumpIfSmi(x0, if_false); | 2868 __ JumpIfSmi(x0, if_false); |
2869 __ CompareObjectType(x0, x10, x11, FIRST_FUNCTION_TYPE); | 2869 __ CompareObjectType(x0, x10, x11, JS_FUNCTION_TYPE); |
2870 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2870 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2871 Split(hs, if_true, if_false, fall_through); | 2871 Split(eq, if_true, if_false, fall_through); |
2872 | 2872 |
2873 context()->Plug(if_true, if_false); | 2873 context()->Plug(if_true, if_false); |
2874 } | 2874 } |
2875 | 2875 |
2876 | 2876 |
2877 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | 2877 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { |
2878 ZoneList<Expression*>* args = expr->arguments(); | 2878 ZoneList<Expression*>* args = expr->arguments(); |
2879 DCHECK(args->length() == 1); | 2879 DCHECK(args->length() == 1); |
2880 | 2880 |
2881 VisitForAccumulatorValue(args->at(0)); | 2881 VisitForAccumulatorValue(args->at(0)); |
(...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4895 } | 4895 } |
4896 | 4896 |
4897 return INTERRUPT; | 4897 return INTERRUPT; |
4898 } | 4898 } |
4899 | 4899 |
4900 | 4900 |
4901 } // namespace internal | 4901 } // namespace internal |
4902 } // namespace v8 | 4902 } // namespace v8 |
4903 | 4903 |
4904 #endif // V8_TARGET_ARCH_ARM64 | 4904 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |