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

Side by Side Diff: src/compiler/mips/instruction-selector-mips.cc

Issue 2053893003: [builtins] Introduce proper base::ieee754::log. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: BUILD.gn 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 VisitRR(this, kMipsAbsS, node); 871 VisitRR(this, kMipsAbsS, node);
872 } 872 }
873 873
874 874
875 void InstructionSelector::VisitFloat64Abs(Node* node) { 875 void InstructionSelector::VisitFloat64Abs(Node* node) {
876 VisitRR(this, kMipsAbsD, node); 876 VisitRR(this, kMipsAbsD, node);
877 } 877 }
878 878
879 void InstructionSelector::VisitFloat64Log(Node* node) { 879 void InstructionSelector::VisitFloat64Log(Node* node) {
880 MipsOperandGenerator g(this); 880 MipsOperandGenerator g(this);
881 Emit(kMipsLogD, g.DefineAsFixed(node, f0), g.UseFixed(node->InputAt(0), f12)) 881 Emit(kIeee754Float64Log, g.DefineAsFixed(node, f0),
882 g.UseFixed(node->InputAt(0), f12))
882 ->MarkAsCall(); 883 ->MarkAsCall();
883 } 884 }
884 885
885 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 886 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
886 VisitRR(this, kMipsSqrtS, node); 887 VisitRR(this, kMipsSqrtS, node);
887 } 888 }
888 889
889 890
890 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 891 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
891 VisitRR(this, kMipsSqrtD, node); 892 VisitRR(this, kMipsSqrtD, node);
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || 1567 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) ||
1567 IsMipsArchVariant(kMips32r2)); 1568 IsMipsArchVariant(kMips32r2));
1568 return MachineOperatorBuilder::AlignmentRequirements:: 1569 return MachineOperatorBuilder::AlignmentRequirements::
1569 NoUnalignedAccessSupport(); 1570 NoUnalignedAccessSupport();
1570 } 1571 }
1571 } 1572 }
1572 1573
1573 } // namespace compiler 1574 } // namespace compiler
1574 } // namespace internal 1575 } // namespace internal
1575 } // namespace v8 1576 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/instruction-codes-mips.h ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698