OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1948 | 1948 |
1949 __ JumpIfSmi(r0, if_false); | 1949 __ JumpIfSmi(r0, if_false); |
1950 __ CompareObjectType(r0, r1, r1, JS_TYPED_ARRAY_TYPE); | 1950 __ CompareObjectType(r0, r1, r1, JS_TYPED_ARRAY_TYPE); |
1951 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 1951 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
1952 Split(eq, if_true, if_false, fall_through); | 1952 Split(eq, if_true, if_false, fall_through); |
1953 | 1953 |
1954 context()->Plug(if_true, if_false); | 1954 context()->Plug(if_true, if_false); |
1955 } | 1955 } |
1956 | 1956 |
1957 | 1957 |
1958 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { | |
1959 ZoneList<Expression*>* args = expr->arguments(); | |
1960 DCHECK(args->length() == 1); | |
1961 | |
1962 VisitForAccumulatorValue(args->at(0)); | |
1963 | |
1964 Label materialize_true, materialize_false; | |
1965 Label* if_true = NULL; | |
1966 Label* if_false = NULL; | |
1967 Label* fall_through = NULL; | |
1968 context()->PrepareTest(&materialize_true, &materialize_false, | |
1969 &if_true, &if_false, &fall_through); | |
1970 | |
1971 __ JumpIfSmi(r0, if_false); | |
1972 __ CompareObjectType(r0, r1, r1, JS_REGEXP_TYPE); | |
1973 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
1974 Split(eq, if_true, if_false, fall_through); | |
1975 | |
1976 context()->Plug(if_true, if_false); | |
1977 } | |
1978 | |
1979 | |
1980 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { | 1958 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { |
1981 ZoneList<Expression*>* args = expr->arguments(); | 1959 ZoneList<Expression*>* args = expr->arguments(); |
1982 DCHECK(args->length() == 1); | 1960 DCHECK(args->length() == 1); |
1983 | 1961 |
1984 VisitForAccumulatorValue(args->at(0)); | 1962 VisitForAccumulatorValue(args->at(0)); |
1985 | 1963 |
1986 Label materialize_true, materialize_false; | 1964 Label materialize_true, materialize_false; |
1987 Label* if_true = NULL; | 1965 Label* if_true = NULL; |
1988 Label* if_false = NULL; | 1966 Label* if_false = NULL; |
1989 Label* fall_through = NULL; | 1967 Label* fall_through = NULL; |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2855 DCHECK(interrupt_address == | 2833 DCHECK(interrupt_address == |
2856 isolate->builtins()->OnStackReplacement()->entry()); | 2834 isolate->builtins()->OnStackReplacement()->entry()); |
2857 return ON_STACK_REPLACEMENT; | 2835 return ON_STACK_REPLACEMENT; |
2858 } | 2836 } |
2859 | 2837 |
2860 | 2838 |
2861 } // namespace internal | 2839 } // namespace internal |
2862 } // namespace v8 | 2840 } // namespace v8 |
2863 | 2841 |
2864 #endif // V8_TARGET_ARCH_ARM | 2842 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |