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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.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 "src/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 Node* right_of_left = left->InputAt(1); 2386 Node* right_of_left = left->InputAt(1);
2387 Emit(kArm64Bfi, g.DefineSameAsFirst(left), g.UseRegister(right_of_left), 2387 Emit(kArm64Bfi, g.DefineSameAsFirst(left), g.UseRegister(right_of_left),
2388 g.UseRegister(right), g.TempImmediate(32), g.TempImmediate(32)); 2388 g.UseRegister(right), g.TempImmediate(32), g.TempImmediate(32));
2389 Emit(kArm64Float64MoveU64, g.DefineAsRegister(node), g.UseRegister(left)); 2389 Emit(kArm64Float64MoveU64, g.DefineAsRegister(node), g.UseRegister(left));
2390 return; 2390 return;
2391 } 2391 }
2392 Emit(kArm64Float64InsertHighWord32, g.DefineAsRegister(node), 2392 Emit(kArm64Float64InsertHighWord32, g.DefineAsRegister(node),
2393 g.UseRegister(left), g.UseRegister(right)); 2393 g.UseRegister(left), g.UseRegister(right));
2394 } 2394 }
2395 2395
2396 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) {
2397 VisitRR(this, kArm64Float64SilenceNaN, node);
2398 }
2399
2396 void InstructionSelector::VisitAtomicLoad(Node* node) { 2400 void InstructionSelector::VisitAtomicLoad(Node* node) {
2397 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); 2401 LoadRepresentation load_rep = LoadRepresentationOf(node->op());
2398 Arm64OperandGenerator g(this); 2402 Arm64OperandGenerator g(this);
2399 Node* base = node->InputAt(0); 2403 Node* base = node->InputAt(0);
2400 Node* index = node->InputAt(1); 2404 Node* index = node->InputAt(1);
2401 ArchOpcode opcode = kArchNop; 2405 ArchOpcode opcode = kArchNop;
2402 switch (load_rep.representation()) { 2406 switch (load_rep.representation()) {
2403 case MachineRepresentation::kWord8: 2407 case MachineRepresentation::kWord8:
2404 opcode = load_rep.IsSigned() ? kAtomicLoadInt8 : kAtomicLoadUint8; 2408 opcode = load_rep.IsSigned() ? kAtomicLoadInt8 : kAtomicLoadUint8;
2405 break; 2409 break;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
2477 // static 2481 // static
2478 MachineOperatorBuilder::AlignmentRequirements 2482 MachineOperatorBuilder::AlignmentRequirements
2479 InstructionSelector::AlignmentRequirements() { 2483 InstructionSelector::AlignmentRequirements() {
2480 return MachineOperatorBuilder::AlignmentRequirements:: 2484 return MachineOperatorBuilder::AlignmentRequirements::
2481 FullUnalignedAccessSupport(); 2485 FullUnalignedAccessSupport();
2482 } 2486 }
2483 2487
2484 } // namespace compiler 2488 } // namespace compiler
2485 } // namespace internal 2489 } // namespace internal
2486 } // namespace v8 2490 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698