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

Side by Side Diff: src/compiler/representation-change.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 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 #include "src/compiler/representation-change.h" 5 #include "src/compiler/representation-change.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 case IrOpcode::kNumberEqual: 656 case IrOpcode::kNumberEqual:
657 return machine()->Float64Equal(); 657 return machine()->Float64Equal();
658 case IrOpcode::kNumberLessThan: 658 case IrOpcode::kNumberLessThan:
659 return machine()->Float64LessThan(); 659 return machine()->Float64LessThan();
660 case IrOpcode::kNumberLessThanOrEqual: 660 case IrOpcode::kNumberLessThanOrEqual:
661 return machine()->Float64LessThanOrEqual(); 661 return machine()->Float64LessThanOrEqual();
662 case IrOpcode::kNumberLog: 662 case IrOpcode::kNumberLog:
663 return machine()->Float64Log(); 663 return machine()->Float64Log();
664 case IrOpcode::kNumberLog1p: 664 case IrOpcode::kNumberLog1p:
665 return machine()->Float64Log1p(); 665 return machine()->Float64Log1p();
666 case IrOpcode::kNumberSilenceNaN:
667 return machine()->Float64SilenceNaN();
666 default: 668 default:
667 UNREACHABLE(); 669 UNREACHABLE();
668 return nullptr; 670 return nullptr;
669 } 671 }
670 } 672 }
671 673
672 674
673 Node* RepresentationChanger::TypeError(Node* node, 675 Node* RepresentationChanger::TypeError(Node* node,
674 MachineRepresentation output_rep, 676 MachineRepresentation output_rep,
675 Type* output_type, 677 Type* output_type,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 714 }
713 715
714 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 716 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
715 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 717 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
716 node); 718 node);
717 } 719 }
718 720
719 } // namespace compiler 721 } // namespace compiler
720 } // namespace internal 722 } // namespace internal
721 } // namespace v8 723 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698