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_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2601 __ JumpIfSmi(r0, if_false); | 2601 __ JumpIfSmi(r0, if_false); |
2602 __ CompareRoot(r0, Heap::kNullValueRootIndex); | 2602 __ CompareRoot(r0, Heap::kNullValueRootIndex); |
2603 __ b(eq, if_true); | 2603 __ b(eq, if_true); |
2604 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); | 2604 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); |
2605 __ CompareObjectType(r0, r0, r1, FIRST_JS_RECEIVER_TYPE); | 2605 __ CompareObjectType(r0, r0, r1, FIRST_JS_RECEIVER_TYPE); |
2606 __ b(lt, if_false); | 2606 __ b(lt, if_false); |
2607 // Check for callable or undetectable objects => false. | 2607 // Check for callable or undetectable objects => false. |
2608 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); | 2608 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); |
2609 __ tst(r1, Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); | 2609 __ tst(r1, Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); |
2610 Split(eq, if_true, if_false, fall_through); | 2610 Split(eq, if_true, if_false, fall_through); |
2611 // clang-format off | |
2612 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \ | |
2613 } else if (String::Equals(check, factory->type##_string())) { \ | |
2614 __ JumpIfSmi(r0, if_false); \ | |
2615 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); \ | |
2616 __ CompareRoot(r0, Heap::k##Type##MapRootIndex); \ | |
2617 Split(eq, if_true, if_false, fall_through); | |
2618 SIMD128_TYPES(SIMD128_TYPE) | |
2619 #undef SIMD128_TYPE | |
2620 // clang-format on | |
2621 } else { | 2611 } else { |
2622 if (if_false != fall_through) __ jmp(if_false); | 2612 if (if_false != fall_through) __ jmp(if_false); |
2623 } | 2613 } |
2624 context()->Plug(if_true, if_false); | 2614 context()->Plug(if_true, if_false); |
2625 } | 2615 } |
2626 | 2616 |
2627 | 2617 |
2628 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { | 2618 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
2629 Comment cmnt(masm_, "[ CompareOperation"); | 2619 Comment cmnt(masm_, "[ CompareOperation"); |
2630 | 2620 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2908 DCHECK(interrupt_address == | 2898 DCHECK(interrupt_address == |
2909 isolate->builtins()->OnStackReplacement()->entry()); | 2899 isolate->builtins()->OnStackReplacement()->entry()); |
2910 return ON_STACK_REPLACEMENT; | 2900 return ON_STACK_REPLACEMENT; |
2911 } | 2901 } |
2912 | 2902 |
2913 | 2903 |
2914 } // namespace internal | 2904 } // namespace internal |
2915 } // namespace v8 | 2905 } // namespace v8 |
2916 | 2906 |
2917 #endif // V8_TARGET_ARCH_ARM | 2907 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |