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

Side by Side Diff: src/compiler/typer.cc

Issue 2063693002: [builtins] Introduce proper Float64Log2 and Float64Log10 operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More precise log10. 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
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 Type* Typer::Visitor::TypeNumberFround(Node* node) { return Type::Number(); } 1797 Type* Typer::Visitor::TypeNumberFround(Node* node) { return Type::Number(); }
1798 1798
1799 Type* Typer::Visitor::TypeNumberAtan(Node* node) { return Type::Number(); } 1799 Type* Typer::Visitor::TypeNumberAtan(Node* node) { return Type::Number(); }
1800 1800
1801 Type* Typer::Visitor::TypeNumberAtan2(Node* node) { return Type::Number(); } 1801 Type* Typer::Visitor::TypeNumberAtan2(Node* node) { return Type::Number(); }
1802 1802
1803 Type* Typer::Visitor::TypeNumberLog(Node* node) { return Type::Number(); } 1803 Type* Typer::Visitor::TypeNumberLog(Node* node) { return Type::Number(); }
1804 1804
1805 Type* Typer::Visitor::TypeNumberLog1p(Node* node) { return Type::Number(); } 1805 Type* Typer::Visitor::TypeNumberLog1p(Node* node) { return Type::Number(); }
1806 1806
1807 Type* Typer::Visitor::TypeNumberLog2(Node* node) { return Type::Number(); }
1808
1809 Type* Typer::Visitor::TypeNumberLog10(Node* node) { return Type::Number(); }
1810
1807 Type* Typer::Visitor::TypeNumberRound(Node* node) { 1811 Type* Typer::Visitor::TypeNumberRound(Node* node) {
1808 return TypeUnaryOp(node, NumberRound); 1812 return TypeUnaryOp(node, NumberRound);
1809 } 1813 }
1810 1814
1811 Type* Typer::Visitor::TypeNumberSqrt(Node* node) { return Type::Number(); } 1815 Type* Typer::Visitor::TypeNumberSqrt(Node* node) { return Type::Number(); }
1812 1816
1813 Type* Typer::Visitor::TypeNumberTrunc(Node* node) { 1817 Type* Typer::Visitor::TypeNumberTrunc(Node* node) {
1814 return TypeUnaryOp(node, NumberTrunc); 1818 return TypeUnaryOp(node, NumberTrunc);
1815 } 1819 }
1816 1820
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 } 2556 }
2553 2557
2554 Type* Typer::Visitor::TypeFloat64Atan(Node* node) { return Type::Number(); } 2558 Type* Typer::Visitor::TypeFloat64Atan(Node* node) { return Type::Number(); }
2555 2559
2556 Type* Typer::Visitor::TypeFloat64Atan2(Node* node) { return Type::Number(); } 2560 Type* Typer::Visitor::TypeFloat64Atan2(Node* node) { return Type::Number(); }
2557 2561
2558 Type* Typer::Visitor::TypeFloat64Log(Node* node) { return Type::Number(); } 2562 Type* Typer::Visitor::TypeFloat64Log(Node* node) { return Type::Number(); }
2559 2563
2560 Type* Typer::Visitor::TypeFloat64Log1p(Node* node) { return Type::Number(); } 2564 Type* Typer::Visitor::TypeFloat64Log1p(Node* node) { return Type::Number(); }
2561 2565
2566 Type* Typer::Visitor::TypeFloat64Log2(Node* node) { return Type::Number(); }
2567
2568 Type* Typer::Visitor::TypeFloat64Log10(Node* node) { return Type::Number(); }
2569
2562 Type* Typer::Visitor::TypeFloat64Sqrt(Node* node) { return Type::Number(); } 2570 Type* Typer::Visitor::TypeFloat64Sqrt(Node* node) { return Type::Number(); }
2563 2571
2564 2572
2565 Type* Typer::Visitor::TypeFloat64Equal(Node* node) { return Type::Boolean(); } 2573 Type* Typer::Visitor::TypeFloat64Equal(Node* node) { return Type::Boolean(); }
2566 2574
2567 2575
2568 Type* Typer::Visitor::TypeFloat64LessThan(Node* node) { 2576 Type* Typer::Visitor::TypeFloat64LessThan(Node* node) {
2569 return Type::Boolean(); 2577 return Type::Boolean();
2570 } 2578 }
2571 2579
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
2720 } 2728 }
2721 if (Type::IsInteger(*value)) { 2729 if (Type::IsInteger(*value)) {
2722 return Type::Range(value->Number(), value->Number(), zone()); 2730 return Type::Range(value->Number(), value->Number(), zone());
2723 } 2731 }
2724 return Type::Constant(value, zone()); 2732 return Type::Constant(value, zone());
2725 } 2733 }
2726 2734
2727 } // namespace compiler 2735 } // namespace compiler
2728 } // namespace internal 2736 } // namespace internal
2729 } // namespace v8 2737 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698