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

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

Issue 2029413005: [builtins] Migrate Math.log to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo. 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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 1275
1276 void InstructionSelector::VisitFloat32Abs(Node* node) { 1276 void InstructionSelector::VisitFloat32Abs(Node* node) {
1277 VisitRR(this, kMips64AbsS, node); 1277 VisitRR(this, kMips64AbsS, node);
1278 } 1278 }
1279 1279
1280 1280
1281 void InstructionSelector::VisitFloat64Abs(Node* node) { 1281 void InstructionSelector::VisitFloat64Abs(Node* node) {
1282 VisitRR(this, kMips64AbsD, node); 1282 VisitRR(this, kMips64AbsD, node);
1283 } 1283 }
1284 1284
1285 void InstructionSelector::VisitFloat64Log(Node* node) {
1286 Mips64OperandGenerator g(this);
1287 Emit(kMips64LogD, g.DefineAsFixed(node, f0),
1288 g.UseFixed(node->InputAt(0), f12))
1289 ->MarkAsCall();
1290 }
1285 1291
1286 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 1292 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
1287 VisitRR(this, kMips64SqrtS, node); 1293 VisitRR(this, kMips64SqrtS, node);
1288 } 1294 }
1289 1295
1290 1296
1291 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1297 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1292 VisitRR(this, kMips64SqrtD, node); 1298 VisitRR(this, kMips64SqrtD, node);
1293 } 1299 }
1294 1300
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 } else { 2075 } else {
2070 DCHECK(kArchVariant == kMips64r2); 2076 DCHECK(kArchVariant == kMips64r2);
2071 return MachineOperatorBuilder::AlignmentRequirements:: 2077 return MachineOperatorBuilder::AlignmentRequirements::
2072 NoUnalignedAccessSupport(); 2078 NoUnalignedAccessSupport();
2073 } 2079 }
2074 } 2080 }
2075 2081
2076 } // namespace compiler 2082 } // namespace compiler
2077 } // namespace internal 2083 } // namespace internal
2078 } // namespace v8 2084 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698