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

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

Issue 2170343002: [turbofan] Change Float64Max/Float64Min to JavaScript semantics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips/mips64 ports. Created 4 years, 5 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/raw-machine-assembler.h ('k') | src/compiler/simplified-lowering.h » ('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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 case IrOpcode::kNumberFround: 744 case IrOpcode::kNumberFround:
745 return machine()->TruncateFloat64ToFloat32(); 745 return machine()->TruncateFloat64ToFloat32();
746 case IrOpcode::kNumberLog: 746 case IrOpcode::kNumberLog:
747 return machine()->Float64Log(); 747 return machine()->Float64Log();
748 case IrOpcode::kNumberLog1p: 748 case IrOpcode::kNumberLog1p:
749 return machine()->Float64Log1p(); 749 return machine()->Float64Log1p();
750 case IrOpcode::kNumberLog2: 750 case IrOpcode::kNumberLog2:
751 return machine()->Float64Log2(); 751 return machine()->Float64Log2();
752 case IrOpcode::kNumberLog10: 752 case IrOpcode::kNumberLog10:
753 return machine()->Float64Log10(); 753 return machine()->Float64Log10();
754 case IrOpcode::kNumberMax:
755 return machine()->Float64Max();
756 case IrOpcode::kNumberMin:
757 return machine()->Float64Min();
754 case IrOpcode::kNumberPow: 758 case IrOpcode::kNumberPow:
755 return machine()->Float64Pow(); 759 return machine()->Float64Pow();
756 case IrOpcode::kNumberSin: 760 case IrOpcode::kNumberSin:
757 return machine()->Float64Sin(); 761 return machine()->Float64Sin();
758 case IrOpcode::kNumberSinh: 762 case IrOpcode::kNumberSinh:
759 return machine()->Float64Sinh(); 763 return machine()->Float64Sinh();
760 case IrOpcode::kNumberSqrt: 764 case IrOpcode::kNumberSqrt:
761 return machine()->Float64Sqrt(); 765 return machine()->Float64Sqrt();
762 case IrOpcode::kNumberTan: 766 case IrOpcode::kNumberTan:
763 return machine()->Float64Tan(); 767 return machine()->Float64Tan();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 } 818 }
815 819
816 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 820 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
817 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 821 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
818 node); 822 node);
819 } 823 }
820 824
821 } // namespace compiler 825 } // namespace compiler
822 } // namespace internal 826 } // namespace internal
823 } // namespace v8 827 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/simplified-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698