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

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

Issue 2695653005: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: 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
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
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 2544 matching lines...) Expand 10 before | Expand all | Expand 10 after
2555 } else if (String::Equals(check, factory->object_string())) { 2555 } else if (String::Equals(check, factory->object_string())) {
2556 __ JumpIfSmi(r2, if_false); 2556 __ JumpIfSmi(r2, if_false);
2557 __ CompareRoot(r2, Heap::kNullValueRootIndex); 2557 __ CompareRoot(r2, Heap::kNullValueRootIndex);
2558 __ beq(if_true); 2558 __ beq(if_true);
2559 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2559 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
2560 __ CompareObjectType(r2, r2, r3, FIRST_JS_RECEIVER_TYPE); 2560 __ CompareObjectType(r2, r2, r3, FIRST_JS_RECEIVER_TYPE);
2561 __ blt(if_false); 2561 __ blt(if_false);
2562 __ tm(FieldMemOperand(r2, Map::kBitFieldOffset), 2562 __ tm(FieldMemOperand(r2, Map::kBitFieldOffset),
2563 Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); 2563 Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable)));
2564 Split(eq, if_true, if_false, fall_through); 2564 Split(eq, if_true, if_false, fall_through);
2565 // clang-format off
2566 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \
2567 } else if (String::Equals(check, factory->type##_string())) { \
2568 __ JumpIfSmi(r2, if_false); \
2569 __ LoadP(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); \
2570 __ CompareRoot(r2, Heap::k##Type##MapRootIndex); \
2571 Split(eq, if_true, if_false, fall_through);
2572 SIMD128_TYPES(SIMD128_TYPE)
2573 #undef SIMD128_TYPE
2574 // clang-format on
2565 } else { 2575 } else {
2566 if (if_false != fall_through) __ b(if_false); 2576 if (if_false != fall_through) __ b(if_false);
2567 } 2577 }
2568 context()->Plug(if_true, if_false); 2578 context()->Plug(if_true, if_false);
2569 } 2579 }
2570 2580
2571 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { 2581 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
2572 Comment cmnt(masm_, "[ CompareOperation"); 2582 Comment cmnt(masm_, "[ CompareOperation");
2573 2583
2574 // First we try a fast inlined version of the compare when one of 2584 // First we try a fast inlined version of the compare when one of
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2776 USE(kOSRBranchInstruction); 2786 USE(kOSRBranchInstruction);
2777 DCHECK(kOSRBranchInstruction == br_instr); 2787 DCHECK(kOSRBranchInstruction == br_instr);
2778 2788
2779 DCHECK(interrupt_address == 2789 DCHECK(interrupt_address ==
2780 isolate->builtins()->OnStackReplacement()->entry()); 2790 isolate->builtins()->OnStackReplacement()->entry());
2781 return ON_STACK_REPLACEMENT; 2791 return ON_STACK_REPLACEMENT;
2782 } 2792 }
2783 } // namespace internal 2793 } // namespace internal
2784 } // namespace v8 2794 } // namespace v8
2785 #endif // V8_TARGET_ARCH_S390 2795 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698