| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 2967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2978 __ JumpIfSmi(v0, if_false); | 2978 __ JumpIfSmi(v0, if_false); |
| 2979 __ GetObjectType(v0, a1, a1); | 2979 __ GetObjectType(v0, a1, a1); |
| 2980 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2980 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 2981 Split(ge, a1, Operand(FIRST_JS_RECEIVER_TYPE), | 2981 Split(ge, a1, Operand(FIRST_JS_RECEIVER_TYPE), |
| 2982 if_true, if_false, fall_through); | 2982 if_true, if_false, fall_through); |
| 2983 | 2983 |
| 2984 context()->Plug(if_true, if_false); | 2984 context()->Plug(if_true, if_false); |
| 2985 } | 2985 } |
| 2986 | 2986 |
| 2987 | 2987 |
| 2988 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) { | |
| 2989 ZoneList<Expression*>* args = expr->arguments(); | |
| 2990 DCHECK(args->length() == 1); | |
| 2991 | |
| 2992 VisitForAccumulatorValue(args->at(0)); | |
| 2993 | |
| 2994 Label materialize_true, materialize_false; | |
| 2995 Label* if_true = NULL; | |
| 2996 Label* if_false = NULL; | |
| 2997 Label* fall_through = NULL; | |
| 2998 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | |
| 2999 &if_false, &fall_through); | |
| 3000 | |
| 3001 __ JumpIfSmi(v0, if_false); | |
| 3002 __ GetObjectType(v0, a1, a1); | |
| 3003 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
| 3004 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through); | |
| 3005 | |
| 3006 context()->Plug(if_true, if_false); | |
| 3007 } | |
| 3008 | |
| 3009 | |
| 3010 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 2988 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
| 3011 ZoneList<Expression*>* args = expr->arguments(); | 2989 ZoneList<Expression*>* args = expr->arguments(); |
| 3012 DCHECK(args->length() == 1); | 2990 DCHECK(args->length() == 1); |
| 3013 | 2991 |
| 3014 VisitForAccumulatorValue(args->at(0)); | 2992 VisitForAccumulatorValue(args->at(0)); |
| 3015 | 2993 |
| 3016 Label materialize_true, materialize_false; | 2994 Label materialize_true, materialize_false; |
| 3017 Label* if_true = NULL; | 2995 Label* if_true = NULL; |
| 3018 Label* if_false = NULL; | 2996 Label* if_false = NULL; |
| 3019 Label* fall_through = NULL; | 2997 Label* fall_through = NULL; |
| (...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4520 reinterpret_cast<uint32_t>( | 4498 reinterpret_cast<uint32_t>( |
| 4521 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4499 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4522 return OSR_AFTER_STACK_CHECK; | 4500 return OSR_AFTER_STACK_CHECK; |
| 4523 } | 4501 } |
| 4524 | 4502 |
| 4525 | 4503 |
| 4526 } // namespace internal | 4504 } // namespace internal |
| 4527 } // namespace v8 | 4505 } // namespace v8 |
| 4528 | 4506 |
| 4529 #endif // V8_TARGET_ARCH_MIPS | 4507 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |