| 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 3067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3078 &if_true, &if_false, &fall_through); | 3078 &if_true, &if_false, &fall_through); |
| 3079 | 3079 |
| 3080 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3080 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3081 __ SmiTst(v0, t0); | 3081 __ SmiTst(v0, t0); |
| 3082 Split(eq, t0, Operand(zero_reg), if_true, if_false, fall_through); | 3082 Split(eq, t0, Operand(zero_reg), if_true, if_false, fall_through); |
| 3083 | 3083 |
| 3084 context()->Plug(if_true, if_false); | 3084 context()->Plug(if_true, if_false); |
| 3085 } | 3085 } |
| 3086 | 3086 |
| 3087 | 3087 |
| 3088 void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { | 3088 void FullCodeGenerator::EmitIsJSReceiver(CallRuntime* expr) { |
| 3089 ZoneList<Expression*>* args = expr->arguments(); | 3089 ZoneList<Expression*>* args = expr->arguments(); |
| 3090 DCHECK(args->length() == 1); | 3090 DCHECK(args->length() == 1); |
| 3091 | 3091 |
| 3092 VisitForAccumulatorValue(args->at(0)); | 3092 VisitForAccumulatorValue(args->at(0)); |
| 3093 | 3093 |
| 3094 Label materialize_true, materialize_false; | 3094 Label materialize_true, materialize_false; |
| 3095 Label* if_true = NULL; | 3095 Label* if_true = NULL; |
| 3096 Label* if_false = NULL; | 3096 Label* if_false = NULL; |
| 3097 Label* fall_through = NULL; | 3097 Label* fall_through = NULL; |
| 3098 context()->PrepareTest(&materialize_true, &materialize_false, | 3098 context()->PrepareTest(&materialize_true, &materialize_false, |
| (...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4969 reinterpret_cast<uint32_t>( | 4969 reinterpret_cast<uint32_t>( |
| 4970 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4970 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4971 return OSR_AFTER_STACK_CHECK; | 4971 return OSR_AFTER_STACK_CHECK; |
| 4972 } | 4972 } |
| 4973 | 4973 |
| 4974 | 4974 |
| 4975 } // namespace internal | 4975 } // namespace internal |
| 4976 } // namespace v8 | 4976 } // namespace v8 |
| 4977 | 4977 |
| 4978 #endif // V8_TARGET_ARCH_MIPS | 4978 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |