Reviewers: rossberg,
Description:
Fix lower bound of shr.
BUG=
Please review this at https://codereview.chromium.org/27503002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/typing.cc
Index: src/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index
c3fd9c0142c3e112b00739ed1d3b4589230485ad..87e3a6e3392408e5c4a123e0337d5d29e5574246
100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -604,7 +604,7 @@ void AstTyper::VisitBinaryOperation(BinaryOperation*
expr) {
RECURSE(Visit(expr->left()));
RECURSE(Visit(expr->right()));
// TODO(rossberg): we could use an UnsignedSmi as lower bound here...
- NarrowType(expr, Bounds(Type::Unsigned32(), isolate_));
+ NarrowType(expr, Bounds(Type::Smi(), Type::Number(), isolate_));
break;
case Token::ADD: {
RECURSE(Visit(expr->left()));
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.