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 3006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3017 | 3017 |
3018 __ JumpIfSmi(r0, if_false); | 3018 __ JumpIfSmi(r0, if_false); |
3019 __ CompareObjectType(r0, r1, r1, SIMD128_VALUE_TYPE); | 3019 __ CompareObjectType(r0, r1, r1, SIMD128_VALUE_TYPE); |
3020 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3020 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3021 Split(eq, if_true, if_false, fall_through); | 3021 Split(eq, if_true, if_false, fall_through); |
3022 | 3022 |
3023 context()->Plug(if_true, if_false); | 3023 context()->Plug(if_true, if_false); |
3024 } | 3024 } |
3025 | 3025 |
3026 | 3026 |
3027 void FullCodeGenerator::EmitIsMinusZero(CallRuntime* expr) { | |
3028 ZoneList<Expression*>* args = expr->arguments(); | |
3029 DCHECK(args->length() == 1); | |
3030 | |
3031 VisitForAccumulatorValue(args->at(0)); | |
3032 | |
3033 Label materialize_true, materialize_false; | |
3034 Label* if_true = NULL; | |
3035 Label* if_false = NULL; | |
3036 Label* fall_through = NULL; | |
3037 context()->PrepareTest(&materialize_true, &materialize_false, | |
3038 &if_true, &if_false, &fall_through); | |
3039 | |
3040 __ CheckMap(r0, r1, Heap::kHeapNumberMapRootIndex, if_false, DO_SMI_CHECK); | |
3041 __ ldr(r2, FieldMemOperand(r0, HeapNumber::kExponentOffset)); | |
3042 __ ldr(r1, FieldMemOperand(r0, HeapNumber::kMantissaOffset)); | |
3043 __ cmp(r2, Operand(0x80000000)); | |
3044 __ cmp(r1, Operand(0x00000000), eq); | |
3045 | |
3046 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
3047 Split(eq, if_true, if_false, fall_through); | |
3048 | |
3049 context()->Plug(if_true, if_false); | |
3050 } | |
3051 | |
3052 | |
3053 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 3027 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
3054 ZoneList<Expression*>* args = expr->arguments(); | 3028 ZoneList<Expression*>* args = expr->arguments(); |
3055 DCHECK(args->length() == 1); | 3029 DCHECK(args->length() == 1); |
3056 | 3030 |
3057 VisitForAccumulatorValue(args->at(0)); | 3031 VisitForAccumulatorValue(args->at(0)); |
3058 | 3032 |
3059 Label materialize_true, materialize_false; | 3033 Label materialize_true, materialize_false; |
3060 Label* if_true = NULL; | 3034 Label* if_true = NULL; |
3061 Label* if_false = NULL; | 3035 Label* if_false = NULL; |
3062 Label* fall_through = NULL; | 3036 Label* fall_through = NULL; |
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4728 DCHECK(interrupt_address == | 4702 DCHECK(interrupt_address == |
4729 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4703 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4730 return OSR_AFTER_STACK_CHECK; | 4704 return OSR_AFTER_STACK_CHECK; |
4731 } | 4705 } |
4732 | 4706 |
4733 | 4707 |
4734 } // namespace internal | 4708 } // namespace internal |
4735 } // namespace v8 | 4709 } // namespace v8 |
4736 | 4710 |
4737 #endif // V8_TARGET_ARCH_ARM | 4711 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |