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

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

Issue 2096403002: [turbofan] Introduce simplified operator NumberAbs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: This time fix the compile error for realz 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/opcodes.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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 return machine()->Float64Mod(); 680 return machine()->Float64Mod();
681 case IrOpcode::kNumberEqual: 681 case IrOpcode::kNumberEqual:
682 case IrOpcode::kSpeculativeNumberEqual: 682 case IrOpcode::kSpeculativeNumberEqual:
683 return machine()->Float64Equal(); 683 return machine()->Float64Equal();
684 case IrOpcode::kNumberLessThan: 684 case IrOpcode::kNumberLessThan:
685 case IrOpcode::kSpeculativeNumberLessThan: 685 case IrOpcode::kSpeculativeNumberLessThan:
686 return machine()->Float64LessThan(); 686 return machine()->Float64LessThan();
687 case IrOpcode::kNumberLessThanOrEqual: 687 case IrOpcode::kNumberLessThanOrEqual:
688 case IrOpcode::kSpeculativeNumberLessThanOrEqual: 688 case IrOpcode::kSpeculativeNumberLessThanOrEqual:
689 return machine()->Float64LessThanOrEqual(); 689 return machine()->Float64LessThanOrEqual();
690 case IrOpcode::kNumberAbs:
691 return machine()->Float64Abs();
690 case IrOpcode::kNumberAtan: 692 case IrOpcode::kNumberAtan:
691 return machine()->Float64Atan(); 693 return machine()->Float64Atan();
692 case IrOpcode::kNumberAtan2: 694 case IrOpcode::kNumberAtan2:
693 return machine()->Float64Atan2(); 695 return machine()->Float64Atan2();
694 case IrOpcode::kNumberCos: 696 case IrOpcode::kNumberCos:
695 return machine()->Float64Cos(); 697 return machine()->Float64Cos();
696 case IrOpcode::kNumberExp: 698 case IrOpcode::kNumberExp:
697 return machine()->Float64Exp(); 699 return machine()->Float64Exp();
698 case IrOpcode::kNumberFround: 700 case IrOpcode::kNumberFround:
699 return machine()->TruncateFloat64ToFloat32(); 701 return machine()->TruncateFloat64ToFloat32();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 } 770 }
769 771
770 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 772 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
771 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 773 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
772 node); 774 node);
773 } 775 }
774 776
775 } // namespace compiler 777 } // namespace compiler
776 } // namespace internal 778 } // namespace internal
777 } // namespace v8 779 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698