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

Side by Side Diff: src/compiler/simplified-lowering.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/compiler/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/address-map.h" 9 #include "src/address-map.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 MachineRepresentation::kFloat64); 1387 MachineRepresentation::kFloat64);
1388 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node)); 1388 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node));
1389 return; 1389 return;
1390 } 1390 }
1391 case IrOpcode::kNumberFloor: { 1391 case IrOpcode::kNumberFloor: {
1392 VisitUnop(node, UseInfo::TruncatingFloat64(), 1392 VisitUnop(node, UseInfo::TruncatingFloat64(),
1393 MachineRepresentation::kFloat64); 1393 MachineRepresentation::kFloat64);
1394 if (lower()) DeferReplacement(node, lowering->Float64Floor(node)); 1394 if (lower()) DeferReplacement(node, lowering->Float64Floor(node));
1395 return; 1395 return;
1396 } 1396 }
1397 case IrOpcode::kNumberLog: {
1398 VisitUnop(node, UseInfo::TruncatingFloat64(),
1399 MachineRepresentation::kFloat64);
1400 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node));
1401 return;
1402 }
1397 case IrOpcode::kNumberRound: { 1403 case IrOpcode::kNumberRound: {
1398 VisitUnop(node, UseInfo::TruncatingFloat64(), 1404 VisitUnop(node, UseInfo::TruncatingFloat64(),
1399 MachineRepresentation::kFloat64); 1405 MachineRepresentation::kFloat64);
1400 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); 1406 if (lower()) DeferReplacement(node, lowering->Float64Round(node));
1401 return; 1407 return;
1402 } 1408 }
1403 case IrOpcode::kNumberTrunc: { 1409 case IrOpcode::kNumberTrunc: {
1404 VisitUnop(node, UseInfo::TruncatingFloat64(), 1410 VisitUnop(node, UseInfo::TruncatingFloat64(),
1405 MachineRepresentation::kFloat64); 1411 MachineRepresentation::kFloat64);
1406 if (lower()) DeferReplacement(node, lowering->Float64Trunc(node)); 1412 if (lower()) DeferReplacement(node, lowering->Float64Trunc(node));
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 2820 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
2815 Operator::kNoProperties); 2821 Operator::kNoProperties);
2816 to_number_operator_.set(common()->Call(desc)); 2822 to_number_operator_.set(common()->Call(desc));
2817 } 2823 }
2818 return to_number_operator_.get(); 2824 return to_number_operator_.get();
2819 } 2825 }
2820 2826
2821 } // namespace compiler 2827 } // namespace compiler
2822 } // namespace internal 2828 } // namespace internal
2823 } // namespace v8 2829 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698