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

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

Issue 2060743002: [builtins] Introduce proper Float64Log1p operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@Math_Log
Patch Set: REBASE 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 case IrOpcode::kNumberModulus: 654 case IrOpcode::kNumberModulus:
655 return machine()->Float64Mod(); 655 return machine()->Float64Mod();
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:
665 return machine()->Float64Log1p();
664 default: 666 default:
665 UNREACHABLE(); 667 UNREACHABLE();
666 return nullptr; 668 return nullptr;
667 } 669 }
668 } 670 }
669 671
670 672
671 Node* RepresentationChanger::TypeError(Node* node, 673 Node* RepresentationChanger::TypeError(Node* node,
672 MachineRepresentation output_rep, 674 MachineRepresentation output_rep,
673 Type* output_type, 675 Type* output_type,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 } 712 }
711 713
712 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { 714 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) {
713 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), 715 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
714 node); 716 node);
715 } 717 }
716 718
717 } // namespace compiler 719 } // namespace compiler
718 } // namespace internal 720 } // namespace internal
719 } // namespace v8 721 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698