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