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 3001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3012 | 3012 |
3013 __ JumpIfSmi(r3, if_false); | 3013 __ JumpIfSmi(r3, if_false); |
3014 __ CompareObjectType(r3, r4, r4, SIMD128_VALUE_TYPE); | 3014 __ CompareObjectType(r3, r4, r4, SIMD128_VALUE_TYPE); |
3015 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3015 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3016 Split(eq, if_true, if_false, fall_through); | 3016 Split(eq, if_true, if_false, fall_through); |
3017 | 3017 |
3018 context()->Plug(if_true, if_false); | 3018 context()->Plug(if_true, if_false); |
3019 } | 3019 } |
3020 | 3020 |
3021 | 3021 |
3022 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | |
3023 ZoneList<Expression*>* args = expr->arguments(); | |
3024 DCHECK(args->length() == 1); | |
3025 | |
3026 VisitForAccumulatorValue(args->at(0)); | |
3027 | |
3028 Label materialize_true, materialize_false; | |
3029 Label* if_true = NULL; | |
3030 Label* if_false = NULL; | |
3031 Label* fall_through = NULL; | |
3032 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | |
3033 &if_false, &fall_through); | |
3034 | |
3035 __ CheckMap(r3, r4, Heap::kHeapNumberMapRootIndex, if_false, DO_SMI_CHECK); | |
3036 __ TestHeapNumberIsMinusZero(r3, r4, r5); | |
3037 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
3038 Split(eq, if_true, if_false, fall_through); | |
3039 | |
3040 context()->Plug(if_true, if_false); | |
3041 } | |
3042 | |
3043 | |
3044 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 3022 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
3045 ZoneList<Expression*>* args = expr->arguments(); | 3023 ZoneList<Expression*>* args = expr->arguments(); |
3046 DCHECK(args->length() == 1); | 3024 DCHECK(args->length() == 1); |
3047 | 3025 |
3048 VisitForAccumulatorValue(args->at(0)); | 3026 VisitForAccumulatorValue(args->at(0)); |
3049 | 3027 |
3050 Label materialize_true, materialize_false; | 3028 Label materialize_true, materialize_false; |
3051 Label* if_true = NULL; | 3029 Label* if_true = NULL; |
3052 Label* if_false = NULL; | 3030 Label* if_false = NULL; |
3053 Label* fall_through = NULL; | 3031 Label* fall_through = NULL; |
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4653 return ON_STACK_REPLACEMENT; | 4631 return ON_STACK_REPLACEMENT; |
4654 } | 4632 } |
4655 | 4633 |
4656 DCHECK(interrupt_address == | 4634 DCHECK(interrupt_address == |
4657 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4635 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4658 return OSR_AFTER_STACK_CHECK; | 4636 return OSR_AFTER_STACK_CHECK; |
4659 } | 4637 } |
4660 } // namespace internal | 4638 } // namespace internal |
4661 } // namespace v8 | 4639 } // namespace v8 |
4662 #endif // V8_TARGET_ARCH_PPC | 4640 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |