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 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1972 | 1972 |
1973 __ JumpIfSmi(v0, if_false); | 1973 __ JumpIfSmi(v0, if_false); |
1974 __ GetObjectType(v0, a1, a1); | 1974 __ GetObjectType(v0, a1, a1); |
1975 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 1975 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
1976 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through); | 1976 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through); |
1977 | 1977 |
1978 context()->Plug(if_true, if_false); | 1978 context()->Plug(if_true, if_false); |
1979 } | 1979 } |
1980 | 1980 |
1981 | 1981 |
1982 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { | |
1983 ZoneList<Expression*>* args = expr->arguments(); | |
1984 DCHECK(args->length() == 1); | |
1985 | |
1986 VisitForAccumulatorValue(args->at(0)); | |
1987 | |
1988 Label materialize_true, materialize_false; | |
1989 Label* if_true = NULL; | |
1990 Label* if_false = NULL; | |
1991 Label* fall_through = NULL; | |
1992 context()->PrepareTest(&materialize_true, &materialize_false, | |
1993 &if_true, &if_false, &fall_through); | |
1994 | |
1995 __ JumpIfSmi(v0, if_false); | |
1996 __ GetObjectType(v0, a1, a1); | |
1997 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
1998 Split(eq, a1, Operand(JS_REGEXP_TYPE), if_true, if_false, fall_through); | |
1999 | |
2000 context()->Plug(if_true, if_false); | |
2001 } | |
2002 | |
2003 | |
2004 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { | 1982 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { |
2005 ZoneList<Expression*>* args = expr->arguments(); | 1983 ZoneList<Expression*>* args = expr->arguments(); |
2006 DCHECK(args->length() == 1); | 1984 DCHECK(args->length() == 1); |
2007 | 1985 |
2008 VisitForAccumulatorValue(args->at(0)); | 1986 VisitForAccumulatorValue(args->at(0)); |
2009 | 1987 |
2010 Label materialize_true, materialize_false; | 1988 Label materialize_true, materialize_false; |
2011 Label* if_true = NULL; | 1989 Label* if_true = NULL; |
2012 Label* if_false = NULL; | 1990 Label* if_false = NULL; |
2013 Label* fall_through = NULL; | 1991 Label* fall_through = NULL; |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2823 reinterpret_cast<uint64_t>( | 2801 reinterpret_cast<uint64_t>( |
2824 isolate->builtins()->OnStackReplacement()->entry())); | 2802 isolate->builtins()->OnStackReplacement()->entry())); |
2825 return ON_STACK_REPLACEMENT; | 2803 return ON_STACK_REPLACEMENT; |
2826 } | 2804 } |
2827 | 2805 |
2828 | 2806 |
2829 } // namespace internal | 2807 } // namespace internal |
2830 } // namespace v8 | 2808 } // namespace v8 |
2831 | 2809 |
2832 #endif // V8_TARGET_ARCH_MIPS64 | 2810 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |