| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 2969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2980 | 2980 |
| 2981 __ JumpIfSmi(r3, if_false); | 2981 __ JumpIfSmi(r3, if_false); |
| 2982 __ CompareObjectType(r3, r4, r4, FIRST_JS_RECEIVER_TYPE); | 2982 __ CompareObjectType(r3, r4, r4, FIRST_JS_RECEIVER_TYPE); |
| 2983 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2983 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 2984 Split(ge, if_true, if_false, fall_through); | 2984 Split(ge, if_true, if_false, fall_through); |
| 2985 | 2985 |
| 2986 context()->Plug(if_true, if_false); | 2986 context()->Plug(if_true, if_false); |
| 2987 } | 2987 } |
| 2988 | 2988 |
| 2989 | 2989 |
| 2990 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) { | |
| 2991 ZoneList<Expression*>* args = expr->arguments(); | |
| 2992 DCHECK(args->length() == 1); | |
| 2993 | |
| 2994 VisitForAccumulatorValue(args->at(0)); | |
| 2995 | |
| 2996 Label materialize_true, materialize_false; | |
| 2997 Label* if_true = NULL; | |
| 2998 Label* if_false = NULL; | |
| 2999 Label* fall_through = NULL; | |
| 3000 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | |
| 3001 &if_false, &fall_through); | |
| 3002 | |
| 3003 __ JumpIfSmi(r3, if_false); | |
| 3004 __ CompareObjectType(r3, r4, r4, SIMD128_VALUE_TYPE); | |
| 3005 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
| 3006 Split(eq, if_true, if_false, fall_through); | |
| 3007 | |
| 3008 context()->Plug(if_true, if_false); | |
| 3009 } | |
| 3010 | |
| 3011 | |
| 3012 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 2990 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
| 3013 ZoneList<Expression*>* args = expr->arguments(); | 2991 ZoneList<Expression*>* args = expr->arguments(); |
| 3014 DCHECK(args->length() == 1); | 2992 DCHECK(args->length() == 1); |
| 3015 | 2993 |
| 3016 VisitForAccumulatorValue(args->at(0)); | 2994 VisitForAccumulatorValue(args->at(0)); |
| 3017 | 2995 |
| 3018 Label materialize_true, materialize_false; | 2996 Label materialize_true, materialize_false; |
| 3019 Label* if_true = NULL; | 2997 Label* if_true = NULL; |
| 3020 Label* if_false = NULL; | 2998 Label* if_false = NULL; |
| 3021 Label* fall_through = NULL; | 2999 Label* fall_through = NULL; |
| (...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4529 return ON_STACK_REPLACEMENT; | 4507 return ON_STACK_REPLACEMENT; |
| 4530 } | 4508 } |
| 4531 | 4509 |
| 4532 DCHECK(interrupt_address == | 4510 DCHECK(interrupt_address == |
| 4533 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4511 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4534 return OSR_AFTER_STACK_CHECK; | 4512 return OSR_AFTER_STACK_CHECK; |
| 4535 } | 4513 } |
| 4536 } // namespace internal | 4514 } // namespace internal |
| 4537 } // namespace v8 | 4515 } // namespace v8 |
| 4538 #endif // V8_TARGET_ARCH_PPC | 4516 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |