| 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 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2627 __ LoadRoot(at, Heap::kNullValueRootIndex); | 2627 __ LoadRoot(at, Heap::kNullValueRootIndex); |
| 2628 __ Branch(if_true, eq, v0, Operand(at)); | 2628 __ Branch(if_true, eq, v0, Operand(at)); |
| 2629 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); | 2629 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); |
| 2630 __ GetObjectType(v0, v0, a1); | 2630 __ GetObjectType(v0, v0, a1); |
| 2631 __ Branch(if_false, lt, a1, Operand(FIRST_JS_RECEIVER_TYPE)); | 2631 __ Branch(if_false, lt, a1, Operand(FIRST_JS_RECEIVER_TYPE)); |
| 2632 // Check for callable or undetectable objects => false. | 2632 // Check for callable or undetectable objects => false. |
| 2633 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); | 2633 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); |
| 2634 __ And(a1, a1, | 2634 __ And(a1, a1, |
| 2635 Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); | 2635 Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); |
| 2636 Split(eq, a1, Operand(zero_reg), if_true, if_false, fall_through); | 2636 Split(eq, a1, Operand(zero_reg), if_true, if_false, fall_through); |
| 2637 // clang-format off |
| 2638 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \ |
| 2639 } else if (String::Equals(check, factory->type##_string())) { \ |
| 2640 __ JumpIfSmi(v0, if_false); \ |
| 2641 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset)); \ |
| 2642 __ LoadRoot(at, Heap::k##Type##MapRootIndex); \ |
| 2643 Split(eq, v0, Operand(at), if_true, if_false, fall_through); |
| 2644 SIMD128_TYPES(SIMD128_TYPE) |
| 2645 #undef SIMD128_TYPE |
| 2646 // clang-format on |
| 2637 } else { | 2647 } else { |
| 2638 if (if_false != fall_through) __ jmp(if_false); | 2648 if (if_false != fall_through) __ jmp(if_false); |
| 2639 } | 2649 } |
| 2640 context()->Plug(if_true, if_false); | 2650 context()->Plug(if_true, if_false); |
| 2641 } | 2651 } |
| 2642 | 2652 |
| 2643 | 2653 |
| 2644 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { | 2654 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
| 2645 Comment cmnt(masm_, "[ CompareOperation"); | 2655 Comment cmnt(masm_, "[ CompareOperation"); |
| 2646 | 2656 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2858 reinterpret_cast<uint32_t>( | 2868 reinterpret_cast<uint32_t>( |
| 2859 isolate->builtins()->OnStackReplacement()->entry())); | 2869 isolate->builtins()->OnStackReplacement()->entry())); |
| 2860 return ON_STACK_REPLACEMENT; | 2870 return ON_STACK_REPLACEMENT; |
| 2861 } | 2871 } |
| 2862 | 2872 |
| 2863 | 2873 |
| 2864 } // namespace internal | 2874 } // namespace internal |
| 2865 } // namespace v8 | 2875 } // namespace v8 |
| 2866 | 2876 |
| 2867 #endif // V8_TARGET_ARCH_MIPS | 2877 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |