Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 2684313003: Remove SIMD.js from V8. (Closed)
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 2603 matching lines...) Expand 10 before | Expand all | Expand 10 after
2614 __ CompareRoot(r3, Heap::kNullValueRootIndex); 2614 __ CompareRoot(r3, Heap::kNullValueRootIndex);
2615 __ beq(if_true); 2615 __ beq(if_true);
2616 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2616 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
2617 __ CompareObjectType(r3, r3, r4, FIRST_JS_RECEIVER_TYPE); 2617 __ CompareObjectType(r3, r3, r4, FIRST_JS_RECEIVER_TYPE);
2618 __ blt(if_false); 2618 __ blt(if_false);
2619 // Check for callable or undetectable objects => false. 2619 // Check for callable or undetectable objects => false.
2620 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset)); 2620 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset));
2621 __ andi(r0, r4, 2621 __ andi(r0, r4,
2622 Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); 2622 Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable)));
2623 Split(eq, if_true, if_false, fall_through, cr0); 2623 Split(eq, if_true, if_false, fall_through, cr0);
2624 // clang-format off
2625 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \
2626 } else if (String::Equals(check, factory->type##_string())) { \
2627 __ JumpIfSmi(r3, if_false); \
2628 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); \
2629 __ CompareRoot(r3, Heap::k##Type##MapRootIndex); \
2630 Split(eq, if_true, if_false, fall_through);
2631 SIMD128_TYPES(SIMD128_TYPE)
2632 #undef SIMD128_TYPE
2633 // clang-format on
2634 } else { 2624 } else {
2635 if (if_false != fall_through) __ b(if_false); 2625 if (if_false != fall_through) __ b(if_false);
2636 } 2626 }
2637 context()->Plug(if_true, if_false); 2627 context()->Plug(if_true, if_false);
2638 } 2628 }
2639 2629
2640 2630
2641 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { 2631 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
2642 Comment cmnt(masm_, "[ CompareOperation"); 2632 Comment cmnt(masm_, "[ CompareOperation");
2643 2633
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 2836
2847 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2837 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2848 2838
2849 DCHECK(interrupt_address == 2839 DCHECK(interrupt_address ==
2850 isolate->builtins()->OnStackReplacement()->entry()); 2840 isolate->builtins()->OnStackReplacement()->entry());
2851 return ON_STACK_REPLACEMENT; 2841 return ON_STACK_REPLACEMENT;
2852 } 2842 }
2853 } // namespace internal 2843 } // namespace internal
2854 } // namespace v8 2844 } // namespace v8
2855 #endif // V8_TARGET_ARCH_PPC 2845 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698