| 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/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 3139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3150 VisitForAccumulatorValue(args->at(0)); | 3150 VisitForAccumulatorValue(args->at(0)); |
| 3151 | 3151 |
| 3152 Label materialize_true, materialize_false; | 3152 Label materialize_true, materialize_false; |
| 3153 Label* if_true = NULL; | 3153 Label* if_true = NULL; |
| 3154 Label* if_false = NULL; | 3154 Label* if_false = NULL; |
| 3155 Label* fall_through = NULL; | 3155 Label* fall_through = NULL; |
| 3156 context()->PrepareTest(&materialize_true, &materialize_false, | 3156 context()->PrepareTest(&materialize_true, &materialize_false, |
| 3157 &if_true, &if_false, &fall_through); | 3157 &if_true, &if_false, &fall_through); |
| 3158 | 3158 |
| 3159 __ JumpIfSmi(r0, if_false); | 3159 __ JumpIfSmi(r0, if_false); |
| 3160 __ CompareObjectType(r0, r1, r2, FIRST_FUNCTION_TYPE); | 3160 __ CompareObjectType(r0, r1, r2, JS_FUNCTION_TYPE); |
| 3161 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3161 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3162 Split(hs, if_true, if_false, fall_through); | 3162 Split(eq, if_true, if_false, fall_through); |
| 3163 | 3163 |
| 3164 context()->Plug(if_true, if_false); | 3164 context()->Plug(if_true, if_false); |
| 3165 } | 3165 } |
| 3166 | 3166 |
| 3167 | 3167 |
| 3168 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | 3168 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { |
| 3169 ZoneList<Expression*>* args = expr->arguments(); | 3169 ZoneList<Expression*>* args = expr->arguments(); |
| 3170 DCHECK(args->length() == 1); | 3170 DCHECK(args->length() == 1); |
| 3171 | 3171 |
| 3172 VisitForAccumulatorValue(args->at(0)); | 3172 VisitForAccumulatorValue(args->at(0)); |
| (...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4920 DCHECK(interrupt_address == | 4920 DCHECK(interrupt_address == |
| 4921 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4921 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4922 return OSR_AFTER_STACK_CHECK; | 4922 return OSR_AFTER_STACK_CHECK; |
| 4923 } | 4923 } |
| 4924 | 4924 |
| 4925 | 4925 |
| 4926 } // namespace internal | 4926 } // namespace internal |
| 4927 } // namespace v8 | 4927 } // namespace v8 |
| 4928 | 4928 |
| 4929 #endif // V8_TARGET_ARCH_ARM | 4929 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |