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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 2972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2983 __ JumpIfSmi(v0, if_false); | 2983 __ JumpIfSmi(v0, if_false); |
2984 __ GetObjectType(v0, a1, a1); | 2984 __ GetObjectType(v0, a1, a1); |
2985 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2985 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
2986 Split(ge, a1, Operand(FIRST_JS_RECEIVER_TYPE), | 2986 Split(ge, a1, Operand(FIRST_JS_RECEIVER_TYPE), |
2987 if_true, if_false, fall_through); | 2987 if_true, if_false, fall_through); |
2988 | 2988 |
2989 context()->Plug(if_true, if_false); | 2989 context()->Plug(if_true, if_false); |
2990 } | 2990 } |
2991 | 2991 |
2992 | 2992 |
2993 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) { | |
2994 ZoneList<Expression*>* args = expr->arguments(); | |
2995 DCHECK(args->length() == 1); | |
2996 | |
2997 VisitForAccumulatorValue(args->at(0)); | |
2998 | |
2999 Label materialize_true, materialize_false; | |
3000 Label* if_true = NULL; | |
3001 Label* if_false = NULL; | |
3002 Label* fall_through = NULL; | |
3003 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | |
3004 &if_false, &fall_through); | |
3005 | |
3006 __ JumpIfSmi(v0, if_false); | |
3007 __ GetObjectType(v0, a1, a1); | |
3008 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
3009 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through); | |
3010 | |
3011 context()->Plug(if_true, if_false); | |
3012 } | |
3013 | |
3014 | |
3015 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 2993 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
3016 ZoneList<Expression*>* args = expr->arguments(); | 2994 ZoneList<Expression*>* args = expr->arguments(); |
3017 DCHECK(args->length() == 1); | 2995 DCHECK(args->length() == 1); |
3018 | 2996 |
3019 VisitForAccumulatorValue(args->at(0)); | 2997 VisitForAccumulatorValue(args->at(0)); |
3020 | 2998 |
3021 Label materialize_true, materialize_false; | 2999 Label materialize_true, materialize_false; |
3022 Label* if_true = NULL; | 3000 Label* if_true = NULL; |
3023 Label* if_false = NULL; | 3001 Label* if_false = NULL; |
3024 Label* fall_through = NULL; | 3002 Label* fall_through = NULL; |
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4535 reinterpret_cast<uint64_t>( | 4513 reinterpret_cast<uint64_t>( |
4536 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4514 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4537 return OSR_AFTER_STACK_CHECK; | 4515 return OSR_AFTER_STACK_CHECK; |
4538 } | 4516 } |
4539 | 4517 |
4540 | 4518 |
4541 } // namespace internal | 4519 } // namespace internal |
4542 } // namespace v8 | 4520 } // namespace v8 |
4543 | 4521 |
4544 #endif // V8_TARGET_ARCH_MIPS64 | 4522 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |