| 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/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 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2010 | 2010 |
| 2011 __ JumpIfSmi(r0, if_false); | 2011 __ JumpIfSmi(r0, if_false); |
| 2012 __ CompareObjectType(r0, r1, r1, JS_TYPED_ARRAY_TYPE); | 2012 __ CompareObjectType(r0, r1, r1, JS_TYPED_ARRAY_TYPE); |
| 2013 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2013 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 2014 Split(eq, if_true, if_false, fall_through); | 2014 Split(eq, if_true, if_false, fall_through); |
| 2015 | 2015 |
| 2016 context()->Plug(if_true, if_false); | 2016 context()->Plug(if_true, if_false); |
| 2017 } | 2017 } |
| 2018 | 2018 |
| 2019 | 2019 |
| 2020 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { |
| 2021 ZoneList<Expression*>* args = expr->arguments(); |
| 2022 DCHECK(args->length() == 1); |
| 2023 |
| 2024 VisitForAccumulatorValue(args->at(0)); |
| 2025 |
| 2026 Label materialize_true, materialize_false; |
| 2027 Label* if_true = NULL; |
| 2028 Label* if_false = NULL; |
| 2029 Label* fall_through = NULL; |
| 2030 context()->PrepareTest(&materialize_true, &materialize_false, |
| 2031 &if_true, &if_false, &fall_through); |
| 2032 |
| 2033 __ JumpIfSmi(r0, if_false); |
| 2034 __ CompareObjectType(r0, r1, r1, JS_REGEXP_TYPE); |
| 2035 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 2036 Split(eq, if_true, if_false, fall_through); |
| 2037 |
| 2038 context()->Plug(if_true, if_false); |
| 2039 } |
| 2040 |
| 2041 |
| 2020 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { | 2042 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { |
| 2021 ZoneList<Expression*>* args = expr->arguments(); | 2043 ZoneList<Expression*>* args = expr->arguments(); |
| 2022 DCHECK(args->length() == 1); | 2044 DCHECK(args->length() == 1); |
| 2023 | 2045 |
| 2024 VisitForAccumulatorValue(args->at(0)); | 2046 VisitForAccumulatorValue(args->at(0)); |
| 2025 | 2047 |
| 2026 Label materialize_true, materialize_false; | 2048 Label materialize_true, materialize_false; |
| 2027 Label* if_true = NULL; | 2049 Label* if_true = NULL; |
| 2028 Label* if_false = NULL; | 2050 Label* if_false = NULL; |
| 2029 Label* fall_through = NULL; | 2051 Label* fall_through = NULL; |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2896 DCHECK(interrupt_address == | 2918 DCHECK(interrupt_address == |
| 2897 isolate->builtins()->OnStackReplacement()->entry()); | 2919 isolate->builtins()->OnStackReplacement()->entry()); |
| 2898 return ON_STACK_REPLACEMENT; | 2920 return ON_STACK_REPLACEMENT; |
| 2899 } | 2921 } |
| 2900 | 2922 |
| 2901 | 2923 |
| 2902 } // namespace internal | 2924 } // namespace internal |
| 2903 } // namespace v8 | 2925 } // namespace v8 |
| 2904 | 2926 |
| 2905 #endif // V8_TARGET_ARCH_ARM | 2927 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |