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

Side by Side Diff: src/compiler/representation-change.cc

Issue 2064953004: [turbofan] Unify the PlainPrimitive as Number treatment. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.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 #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::kNumberAtan: 662 case IrOpcode::kNumberAtan:
663 return machine()->Float64Atan(); 663 return machine()->Float64Atan();
664 case IrOpcode::kNumberAtan2: 664 case IrOpcode::kNumberAtan2:
665 return machine()->Float64Atan2(); 665 return machine()->Float64Atan2();
666 case IrOpcode::kNumberFround:
667 return machine()->TruncateFloat64ToFloat32();
666 case IrOpcode::kNumberLog: 668 case IrOpcode::kNumberLog:
667 return machine()->Float64Log(); 669 return machine()->Float64Log();
668 case IrOpcode::kNumberLog1p: 670 case IrOpcode::kNumberLog1p:
669 return machine()->Float64Log1p(); 671 return machine()->Float64Log1p();
672 case IrOpcode::kNumberSqrt:
673 return machine()->Float64Sqrt();
670 case IrOpcode::kNumberSilenceNaN: 674 case IrOpcode::kNumberSilenceNaN:
671 return machine()->Float64SilenceNaN(); 675 return machine()->Float64SilenceNaN();
672 default: 676 default:
673 UNREACHABLE(); 677 UNREACHABLE();
674 return nullptr; 678 return nullptr;
675 } 679 }
676 } 680 }
677 681
678 682
679 Node* RepresentationChanger::TypeError(Node* node, 683 Node* RepresentationChanger::TypeError(Node* node,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 } 722 }
719 723
720 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 724 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
721 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 725 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
722 node); 726 node);
723 } 727 }
724 728
725 } // namespace compiler 729 } // namespace compiler
726 } // namespace internal 730 } // namespace internal
727 } // namespace v8 731 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698