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

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

Issue 668173002: Add Float64Round operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add unittest. Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/simplified-lowering.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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 #include "src/compiler/graph-inl.h" 6 #include "src/compiler/graph-inl.h"
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 Bounds Typer::Visitor::TypeFloat64LessThan(Node* node) { 1763 Bounds Typer::Visitor::TypeFloat64LessThan(Node* node) {
1764 return Bounds(Type::Boolean()); 1764 return Bounds(Type::Boolean());
1765 } 1765 }
1766 1766
1767 1767
1768 Bounds Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) { 1768 Bounds Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) {
1769 return Bounds(Type::Boolean()); 1769 return Bounds(Type::Boolean());
1770 } 1770 }
1771 1771
1772 1772
1773 Bounds Typer::Visitor::TypeFloat64Floor(Node* node) {
1774 // TODO(sigurds): We could have a tighter bound here.
1775 return Bounds(Type::Number());
1776 }
1777
1778
1779 Bounds Typer::Visitor::TypeFloat64Ceil(Node* node) {
1780 // TODO(sigurds): We could have a tighter bound here.
1781 return Bounds(Type::Number());
1782 }
1783
1784
1785 Bounds Typer::Visitor::TypeFloat64RoundTruncate(Node* node) {
1786 // TODO(sigurds): We could have a tighter bound here.
1787 return Bounds(Type::Number());
1788 }
1789
1790
1791 Bounds Typer::Visitor::TypeFloat64RoundTiesAway(Node* node) {
1792 // TODO(sigurds): We could have a tighter bound here.
1793 return Bounds(Type::Number());
1794 }
1795
1796
1773 Bounds Typer::Visitor::TypeLoadStackPointer(Node* node) { 1797 Bounds Typer::Visitor::TypeLoadStackPointer(Node* node) {
1774 return Bounds(Type::Internal()); 1798 return Bounds(Type::Internal());
1775 } 1799 }
1776 1800
1777 1801
1778 // Heap constants. 1802 // Heap constants.
1779 1803
1780 1804
1781 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1805 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1782 if (value->IsJSFunction()) { 1806 if (value->IsJSFunction()) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 return typer_->float64_array_fun_; 1875 return typer_->float64_array_fun_;
1852 } 1876 }
1853 } 1877 }
1854 } 1878 }
1855 return Type::Constant(value, zone()); 1879 return Type::Constant(value, zone());
1856 } 1880 }
1857 1881
1858 } 1882 }
1859 } 1883 }
1860 } // namespace v8::internal::compiler 1884 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698