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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.cc

Issue 2060233002: [turbofan] Prevent storing signalling NaNs into holey double arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test Created 4 years, 6 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 #include <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 2038
2039 2039
2040 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { 2040 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) {
2041 X64OperandGenerator g(this); 2041 X64OperandGenerator g(this);
2042 Node* left = node->InputAt(0); 2042 Node* left = node->InputAt(0);
2043 Node* right = node->InputAt(1); 2043 Node* right = node->InputAt(1);
2044 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), 2044 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node),
2045 g.UseRegister(left), g.Use(right)); 2045 g.UseRegister(left), g.Use(right));
2046 } 2046 }
2047 2047
2048 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) {
2049 X64OperandGenerator g(this);
2050 Emit(kSSEFloat64SilenceNaN, g.DefineSameAsFirst(node),
2051 g.UseRegister(node->InputAt(0)));
2052 }
2053
2048 void InstructionSelector::VisitAtomicLoad(Node* node) { 2054 void InstructionSelector::VisitAtomicLoad(Node* node) {
2049 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); 2055 LoadRepresentation load_rep = LoadRepresentationOf(node->op());
2050 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 || 2056 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 ||
2051 load_rep.representation() == MachineRepresentation::kWord16 || 2057 load_rep.representation() == MachineRepresentation::kWord16 ||
2052 load_rep.representation() == MachineRepresentation::kWord32); 2058 load_rep.representation() == MachineRepresentation::kWord32);
2053 USE(load_rep); 2059 USE(load_rep);
2054 VisitLoad(node); 2060 VisitLoad(node);
2055 } 2061 }
2056 2062
2057 void InstructionSelector::VisitAtomicStore(Node* node) { 2063 void InstructionSelector::VisitAtomicStore(Node* node) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 // static 2128 // static
2123 MachineOperatorBuilder::AlignmentRequirements 2129 MachineOperatorBuilder::AlignmentRequirements
2124 InstructionSelector::AlignmentRequirements() { 2130 InstructionSelector::AlignmentRequirements() {
2125 return MachineOperatorBuilder::AlignmentRequirements:: 2131 return MachineOperatorBuilder::AlignmentRequirements::
2126 FullUnalignedAccessSupport(); 2132 FullUnalignedAccessSupport();
2127 } 2133 }
2128 2134
2129 } // namespace compiler 2135 } // namespace compiler
2130 } // namespace internal 2136 } // namespace internal
2131 } // namespace v8 2137 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698