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

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: Introduce several machine ops instead of round + mode param. 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
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 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 Bounds Typer::Visitor::TypeFloat64LessThan(Node* node) { 1547 Bounds Typer::Visitor::TypeFloat64LessThan(Node* node) {
1548 return Bounds(Type::Boolean()); 1548 return Bounds(Type::Boolean());
1549 } 1549 }
1550 1550
1551 1551
1552 Bounds Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) { 1552 Bounds Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) {
1553 return Bounds(Type::Boolean()); 1553 return Bounds(Type::Boolean());
1554 } 1554 }
1555 1555
1556 1556
1557 Bounds Typer::Visitor::TypeFloat64Floor(Node* node) {
1558 // TODO(sigurds): We could have a tighter bound here.
1559 return Bounds(Type::Number());
1560 }
1561
1562
1563 Bounds Typer::Visitor::TypeFloat64Ceil(Node* node) {
1564 // TODO(sigurds): We could have a tighter bound here.
1565 return Bounds(Type::Number());
1566 }
1567
1568
1569 Bounds Typer::Visitor::TypeFloat64RoundAwayFromZero(Node* node) {
1570 // TODO(sigurds): We could have a tighter bound here.
1571 return Bounds(Type::Number());
1572 }
1573
1574
1575 Bounds Typer::Visitor::TypeFloat64RoundToZero(Node* node) {
1576 // TODO(sigurds): We could have a tighter bound here.
1577 return Bounds(Type::Number());
1578 }
1579
1580
1557 Bounds Typer::Visitor::TypeLoadStackPointer(Node* node) { 1581 Bounds Typer::Visitor::TypeLoadStackPointer(Node* node) {
1558 return Bounds(Type::Internal()); 1582 return Bounds(Type::Internal());
1559 } 1583 }
1560 1584
1561 1585
1562 // Heap constants. 1586 // Heap constants.
1563 1587
1564 1588
1565 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1589 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1566 if (value->IsJSFunction()) { 1590 if (value->IsJSFunction()) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 return typer_->float64_array_fun_; 1659 return typer_->float64_array_fun_;
1636 } 1660 }
1637 } 1661 }
1638 } 1662 }
1639 return Type::Constant(value, zone()); 1663 return Type::Constant(value, zone());
1640 } 1664 }
1641 1665
1642 } 1666 }
1643 } 1667 }
1644 } // namespace v8::internal::compiler 1668 } // namespace v8::internal::compiler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698