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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 3589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3600 __ mov(a2, a1); | 3600 __ mov(a2, a1); |
3601 __ bind(¬_nan); | 3601 __ bind(¬_nan); |
3602 | 3602 |
3603 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3603 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3604 Split(eq, a2, Operand(a4), if_true, if_false, fall_through); | 3604 Split(eq, a2, Operand(a4), if_true, if_false, fall_through); |
3605 | 3605 |
3606 context()->Plug(if_true, if_false); | 3606 context()->Plug(if_true, if_false); |
3607 } | 3607 } |
3608 | 3608 |
3609 | 3609 |
3610 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 3610 void FullCodeGenerator::EmitIsTypedArray(CallRuntime* expr) { |
adamk
2015/06/15 20:25:50
I think you'll need to keep EmitIsArray() and add
Dan Ehrenberg
2015/06/15 20:32:23
Oops, fixed.
| |
3611 ZoneList<Expression*>* args = expr->arguments(); | 3611 ZoneList<Expression*>* args = expr->arguments(); |
3612 DCHECK(args->length() == 1); | 3612 DCHECK(args->length() == 1); |
3613 | 3613 |
3614 VisitForAccumulatorValue(args->at(0)); | 3614 VisitForAccumulatorValue(args->at(0)); |
3615 | 3615 |
3616 Label materialize_true, materialize_false; | 3616 Label materialize_true, materialize_false; |
3617 Label* if_true = NULL; | 3617 Label* if_true = NULL; |
3618 Label* if_false = NULL; | 3618 Label* if_false = NULL; |
3619 Label* fall_through = NULL; | 3619 Label* fall_through = NULL; |
3620 context()->PrepareTest(&materialize_true, &materialize_false, | 3620 context()->PrepareTest(&materialize_true, &materialize_false, |
3621 &if_true, &if_false, &fall_through); | 3621 &if_true, &if_false, &fall_through); |
3622 | 3622 |
3623 __ JumpIfSmi(v0, if_false); | 3623 __ JumpIfSmi(v0, if_false); |
3624 __ GetObjectType(v0, a1, a1); | 3624 __ GetObjectType(v0, a1, a1); |
3625 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3625 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3626 Split(eq, a1, Operand(JS_ARRAY_TYPE), | 3626 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through); |
3627 if_true, if_false, fall_through); | |
3628 | 3627 |
3629 context()->Plug(if_true, if_false); | 3628 context()->Plug(if_true, if_false); |
3630 } | 3629 } |
3631 | 3630 |
3632 | 3631 |
3633 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { | 3632 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { |
3634 ZoneList<Expression*>* args = expr->arguments(); | 3633 ZoneList<Expression*>* args = expr->arguments(); |
3635 DCHECK(args->length() == 1); | 3634 DCHECK(args->length() == 1); |
3636 | 3635 |
3637 VisitForAccumulatorValue(args->at(0)); | 3636 VisitForAccumulatorValue(args->at(0)); |
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5545 reinterpret_cast<uint64_t>( | 5544 reinterpret_cast<uint64_t>( |
5546 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5545 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5547 return OSR_AFTER_STACK_CHECK; | 5546 return OSR_AFTER_STACK_CHECK; |
5548 } | 5547 } |
5549 | 5548 |
5550 | 5549 |
5551 } // namespace internal | 5550 } // namespace internal |
5552 } // namespace v8 | 5551 } // namespace v8 |
5553 | 5552 |
5554 #endif // V8_TARGET_ARCH_MIPS64 | 5553 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |