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 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3082 &if_true, &if_false, &fall_through); | 3082 &if_true, &if_false, &fall_through); |
3083 | 3083 |
3084 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3084 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3085 __ SmiTst(v0, a4); | 3085 __ SmiTst(v0, a4); |
3086 Split(eq, a4, Operand(zero_reg), if_true, if_false, fall_through); | 3086 Split(eq, a4, Operand(zero_reg), if_true, if_false, fall_through); |
3087 | 3087 |
3088 context()->Plug(if_true, if_false); | 3088 context()->Plug(if_true, if_false); |
3089 } | 3089 } |
3090 | 3090 |
3091 | 3091 |
3092 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { | 3092 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) { |
3093 ZoneList<Expression*>* args = expr->arguments(); | 3093 ZoneList<Expression*>* args = expr->arguments(); |
3094 DCHECK(args->length() == 1); | 3094 DCHECK(args->length() == 1); |
3095 | 3095 |
3096 VisitForAccumulatorValue(args->at(0)); | 3096 VisitForAccumulatorValue(args->at(0)); |
3097 | 3097 |
3098 Label materialize_true, materialize_false; | 3098 Label materialize_true, materialize_false; |
3099 Label* if_true = NULL; | 3099 Label* if_true = NULL; |
3100 Label* if_false = NULL; | 3100 Label* if_false = NULL; |
3101 Label* fall_through = NULL; | 3101 Label* fall_through = NULL; |
3102 context()->PrepareTest(&materialize_true, &materialize_false, | 3102 context()->PrepareTest(&materialize_true, &materialize_false, |
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4977 reinterpret_cast<uint64_t>( | 4977 reinterpret_cast<uint64_t>( |
4978 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4978 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4979 return OSR_AFTER_STACK_CHECK; | 4979 return OSR_AFTER_STACK_CHECK; |
4980 } | 4980 } |
4981 | 4981 |
4982 | 4982 |
4983 } // namespace internal | 4983 } // namespace internal |
4984 } // namespace v8 | 4984 } // namespace v8 |
4985 | 4985 |
4986 #endif // V8_TARGET_ARCH_MIPS64 | 4986 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |