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 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2991 | 2991 |
2992 __ JumpIfSmi(r0, if_false); | 2992 __ JumpIfSmi(r0, if_false); |
2993 __ CompareObjectType(r0, r1, r1, FIRST_JS_RECEIVER_TYPE); | 2993 __ CompareObjectType(r0, r1, r1, FIRST_JS_RECEIVER_TYPE); |
2994 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2994 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2995 Split(ge, if_true, if_false, fall_through); | 2995 Split(ge, if_true, if_false, fall_through); |
2996 | 2996 |
2997 context()->Plug(if_true, if_false); | 2997 context()->Plug(if_true, if_false); |
2998 } | 2998 } |
2999 | 2999 |
3000 | 3000 |
3001 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) { | |
3002 ZoneList<Expression*>* args = expr->arguments(); | |
3003 DCHECK(args->length() == 1); | |
3004 | |
3005 VisitForAccumulatorValue(args->at(0)); | |
3006 | |
3007 Label materialize_true, materialize_false; | |
3008 Label* if_true = NULL; | |
3009 Label* if_false = NULL; | |
3010 Label* fall_through = NULL; | |
3011 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | |
3012 &if_false, &fall_through); | |
3013 | |
3014 __ JumpIfSmi(r0, if_false); | |
3015 __ CompareObjectType(r0, r1, r1, SIMD128_VALUE_TYPE); | |
3016 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
3017 Split(eq, if_true, if_false, fall_through); | |
3018 | |
3019 context()->Plug(if_true, if_false); | |
3020 } | |
3021 | |
3022 | |
3023 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 3001 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
3024 ZoneList<Expression*>* args = expr->arguments(); | 3002 ZoneList<Expression*>* args = expr->arguments(); |
3025 DCHECK(args->length() == 1); | 3003 DCHECK(args->length() == 1); |
3026 | 3004 |
3027 VisitForAccumulatorValue(args->at(0)); | 3005 VisitForAccumulatorValue(args->at(0)); |
3028 | 3006 |
3029 Label materialize_true, materialize_false; | 3007 Label materialize_true, materialize_false; |
3030 Label* if_true = NULL; | 3008 Label* if_true = NULL; |
3031 Label* if_false = NULL; | 3009 Label* if_false = NULL; |
3032 Label* fall_through = NULL; | 3010 Label* fall_through = NULL; |
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4586 DCHECK(interrupt_address == | 4564 DCHECK(interrupt_address == |
4587 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4565 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4588 return OSR_AFTER_STACK_CHECK; | 4566 return OSR_AFTER_STACK_CHECK; |
4589 } | 4567 } |
4590 | 4568 |
4591 | 4569 |
4592 } // namespace internal | 4570 } // namespace internal |
4593 } // namespace v8 | 4571 } // namespace v8 |
4594 | 4572 |
4595 #endif // V8_TARGET_ARCH_ARM | 4573 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |