| 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 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2032 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | 2032 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, |
| 2033 &if_false, &fall_through); | 2033 &if_false, &fall_through); |
| 2034 | 2034 |
| 2035 __ JumpIfSmi(v0, if_false); | 2035 __ JumpIfSmi(v0, if_false); |
| 2036 __ GetObjectType(v0, a1, a1); | 2036 __ GetObjectType(v0, a1, a1); |
| 2037 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 2037 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 2038 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through); | 2038 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through); |
| 2039 | 2039 |
| 2040 context()->Plug(if_true, if_false); | 2040 context()->Plug(if_true, if_false); |
| 2041 } | 2041 } |
| 2042 |
| 2043 |
| 2044 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { |
| 2045 ZoneList<Expression*>* args = expr->arguments(); |
| 2046 DCHECK(args->length() == 1); |
| 2047 |
| 2048 VisitForAccumulatorValue(args->at(0)); |
| 2049 |
| 2050 Label materialize_true, materialize_false; |
| 2051 Label* if_true = NULL; |
| 2052 Label* if_false = NULL; |
| 2053 Label* fall_through = NULL; |
| 2054 context()->PrepareTest(&materialize_true, &materialize_false, |
| 2055 &if_true, &if_false, &fall_through); |
| 2056 |
| 2057 __ JumpIfSmi(v0, if_false); |
| 2058 __ GetObjectType(v0, a1, a1); |
| 2059 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 2060 Split(eq, a1, Operand(JS_REGEXP_TYPE), if_true, if_false, fall_through); |
| 2061 |
| 2062 context()->Plug(if_true, if_false); |
| 2063 } |
| 2042 | 2064 |
| 2043 | 2065 |
| 2044 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { | 2066 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { |
| 2045 ZoneList<Expression*>* args = expr->arguments(); | 2067 ZoneList<Expression*>* args = expr->arguments(); |
| 2046 DCHECK(args->length() == 1); | 2068 DCHECK(args->length() == 1); |
| 2047 | 2069 |
| 2048 VisitForAccumulatorValue(args->at(0)); | 2070 VisitForAccumulatorValue(args->at(0)); |
| 2049 | 2071 |
| 2050 Label materialize_true, materialize_false; | 2072 Label materialize_true, materialize_false; |
| 2051 Label* if_true = NULL; | 2073 Label* if_true = NULL; |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2864 reinterpret_cast<uint64_t>( | 2886 reinterpret_cast<uint64_t>( |
| 2865 isolate->builtins()->OnStackReplacement()->entry())); | 2887 isolate->builtins()->OnStackReplacement()->entry())); |
| 2866 return ON_STACK_REPLACEMENT; | 2888 return ON_STACK_REPLACEMENT; |
| 2867 } | 2889 } |
| 2868 | 2890 |
| 2869 | 2891 |
| 2870 } // namespace internal | 2892 } // namespace internal |
| 2871 } // namespace v8 | 2893 } // namespace v8 |
| 2872 | 2894 |
| 2873 #endif // V8_TARGET_ARCH_MIPS64 | 2895 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |