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