| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 3609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3620 __ JumpIfSmi(v0, if_false); | 3620 __ JumpIfSmi(v0, if_false); |
| 3621 __ GetObjectType(v0, a1, a1); | 3621 __ GetObjectType(v0, a1, a1); |
| 3622 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3622 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3623 Split(eq, a1, Operand(JS_ARRAY_TYPE), | 3623 Split(eq, a1, Operand(JS_ARRAY_TYPE), |
| 3624 if_true, if_false, fall_through); | 3624 if_true, if_false, fall_through); |
| 3625 | 3625 |
| 3626 context()->Plug(if_true, if_false); | 3626 context()->Plug(if_true, if_false); |
| 3627 } | 3627 } |
| 3628 | 3628 |
| 3629 | 3629 |
| 3630 void FullCodeGenerator::EmitIsTypedArray(CallRuntime* expr) { |
| 3631 ZoneList<Expression*>* args = expr->arguments(); |
| 3632 DCHECK(args->length() == 1); |
| 3633 |
| 3634 VisitForAccumulatorValue(args->at(0)); |
| 3635 |
| 3636 Label materialize_true, materialize_false; |
| 3637 Label* if_true = NULL; |
| 3638 Label* if_false = NULL; |
| 3639 Label* fall_through = NULL; |
| 3640 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, |
| 3641 &if_false, &fall_through); |
| 3642 |
| 3643 __ JumpIfSmi(v0, if_false); |
| 3644 __ GetObjectType(v0, a1, a1); |
| 3645 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3646 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through); |
| 3647 |
| 3648 context()->Plug(if_true, if_false); |
| 3649 } |
| 3650 |
| 3651 |
| 3630 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { | 3652 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { |
| 3631 ZoneList<Expression*>* args = expr->arguments(); | 3653 ZoneList<Expression*>* args = expr->arguments(); |
| 3632 DCHECK(args->length() == 1); | 3654 DCHECK(args->length() == 1); |
| 3633 | 3655 |
| 3634 VisitForAccumulatorValue(args->at(0)); | 3656 VisitForAccumulatorValue(args->at(0)); |
| 3635 | 3657 |
| 3636 Label materialize_true, materialize_false; | 3658 Label materialize_true, materialize_false; |
| 3637 Label* if_true = NULL; | 3659 Label* if_true = NULL; |
| 3638 Label* if_false = NULL; | 3660 Label* if_false = NULL; |
| 3639 Label* fall_through = NULL; | 3661 Label* fall_through = NULL; |
| (...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5538 reinterpret_cast<uint32_t>( | 5560 reinterpret_cast<uint32_t>( |
| 5539 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5561 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5540 return OSR_AFTER_STACK_CHECK; | 5562 return OSR_AFTER_STACK_CHECK; |
| 5541 } | 5563 } |
| 5542 | 5564 |
| 5543 | 5565 |
| 5544 } // namespace internal | 5566 } // namespace internal |
| 5545 } // namespace v8 | 5567 } // namespace v8 |
| 5546 | 5568 |
| 5547 #endif // V8_TARGET_ARCH_MIPS | 5569 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |