| 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/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
| 8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1961 | 1961 |
| 1962 __ JumpIfSmi(x0, if_false); | 1962 __ JumpIfSmi(x0, if_false); |
| 1963 __ CompareObjectType(x0, x10, x11, JS_TYPED_ARRAY_TYPE); | 1963 __ CompareObjectType(x0, x10, x11, JS_TYPED_ARRAY_TYPE); |
| 1964 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 1964 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 1965 Split(eq, if_true, if_false, fall_through); | 1965 Split(eq, if_true, if_false, fall_through); |
| 1966 | 1966 |
| 1967 context()->Plug(if_true, if_false); | 1967 context()->Plug(if_true, if_false); |
| 1968 } | 1968 } |
| 1969 | 1969 |
| 1970 | 1970 |
| 1971 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { |
| 1972 ZoneList<Expression*>* args = expr->arguments(); |
| 1973 DCHECK(args->length() == 1); |
| 1974 |
| 1975 VisitForAccumulatorValue(args->at(0)); |
| 1976 |
| 1977 Label materialize_true, materialize_false; |
| 1978 Label* if_true = NULL; |
| 1979 Label* if_false = NULL; |
| 1980 Label* fall_through = NULL; |
| 1981 context()->PrepareTest(&materialize_true, &materialize_false, |
| 1982 &if_true, &if_false, &fall_through); |
| 1983 |
| 1984 __ JumpIfSmi(x0, if_false); |
| 1985 __ CompareObjectType(x0, x10, x11, JS_REGEXP_TYPE); |
| 1986 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 1987 Split(eq, if_true, if_false, fall_through); |
| 1988 |
| 1989 context()->Plug(if_true, if_false); |
| 1990 } |
| 1991 |
| 1992 |
| 1971 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { | 1993 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { |
| 1972 ZoneList<Expression*>* args = expr->arguments(); | 1994 ZoneList<Expression*>* args = expr->arguments(); |
| 1973 DCHECK(args->length() == 1); | 1995 DCHECK(args->length() == 1); |
| 1974 | 1996 |
| 1975 VisitForAccumulatorValue(args->at(0)); | 1997 VisitForAccumulatorValue(args->at(0)); |
| 1976 | 1998 |
| 1977 Label materialize_true, materialize_false; | 1999 Label materialize_true, materialize_false; |
| 1978 Label* if_true = NULL; | 2000 Label* if_true = NULL; |
| 1979 Label* if_false = NULL; | 2001 Label* if_false = NULL; |
| 1980 Label* fall_through = NULL; | 2002 Label* fall_through = NULL; |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2897 } | 2919 } |
| 2898 | 2920 |
| 2899 return INTERRUPT; | 2921 return INTERRUPT; |
| 2900 } | 2922 } |
| 2901 | 2923 |
| 2902 | 2924 |
| 2903 } // namespace internal | 2925 } // namespace internal |
| 2904 } // namespace v8 | 2926 } // namespace v8 |
| 2905 | 2927 |
| 2906 #endif // V8_TARGET_ARCH_ARM64 | 2928 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |