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/simplified-lowering.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 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 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 MachineRepresentation::kFloat64); 1386 MachineRepresentation::kFloat64);
1387 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node)); 1387 if (lower()) DeferReplacement(node, lowering->Float64Ceil(node));
1388 return; 1388 return;
1389 } 1389 }
1390 case IrOpcode::kNumberFloor: { 1390 case IrOpcode::kNumberFloor: {
1391 VisitUnop(node, UseInfo::TruncatingFloat64(), 1391 VisitUnop(node, UseInfo::TruncatingFloat64(),
1392 MachineRepresentation::kFloat64); 1392 MachineRepresentation::kFloat64);
1393 if (lower()) DeferReplacement(node, lowering->Float64Floor(node)); 1393 if (lower()) DeferReplacement(node, lowering->Float64Floor(node));
1394 return; 1394 return;
1395 } 1395 }
1396 case IrOpcode::kNumberLog: { 1396 case IrOpcode::kNumberLog:
1397 case IrOpcode::kNumberLog1p: {
1397 VisitUnop(node, UseInfo::TruncatingFloat64(), 1398 VisitUnop(node, UseInfo::TruncatingFloat64(),
1398 MachineRepresentation::kFloat64); 1399 MachineRepresentation::kFloat64);
1399 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node)); 1400 if (lower()) NodeProperties::ChangeOp(node, Float64Op(node));
1400 return; 1401 return;
1401 } 1402 }
1402 case IrOpcode::kNumberRound: { 1403 case IrOpcode::kNumberRound: {
1403 VisitUnop(node, UseInfo::TruncatingFloat64(), 1404 VisitUnop(node, UseInfo::TruncatingFloat64(),
1404 MachineRepresentation::kFloat64); 1405 MachineRepresentation::kFloat64);
1405 if (lower()) DeferReplacement(node, lowering->Float64Round(node)); 1406 if (lower()) DeferReplacement(node, lowering->Float64Round(node));
1406 return; 1407 return;
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2839 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 2840 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
2840 Operator::kNoProperties); 2841 Operator::kNoProperties);
2841 to_number_operator_.set(common()->Call(desc)); 2842 to_number_operator_.set(common()->Call(desc));
2842 } 2843 }
2843 return to_number_operator_.get(); 2844 return to_number_operator_.get();
2844 } 2845 }
2845 2846
2846 } // namespace compiler 2847 } // namespace compiler
2847 } // namespace internal 2848 } // namespace internal
2848 } // namespace v8 2849 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698