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

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

Issue 1213803008: [turbofan] Right hand side of shifts needs ToUint32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 Bounds Typer::Visitor::TypeNumberDivide(Node* node) { 1650 Bounds Typer::Visitor::TypeNumberDivide(Node* node) {
1651 return Bounds(Type::None(zone()), Type::Number(zone())); 1651 return Bounds(Type::None(zone()), Type::Number(zone()));
1652 } 1652 }
1653 1653
1654 1654
1655 Bounds Typer::Visitor::TypeNumberModulus(Node* node) { 1655 Bounds Typer::Visitor::TypeNumberModulus(Node* node) {
1656 return Bounds(Type::None(zone()), Type::Number(zone())); 1656 return Bounds(Type::None(zone()), Type::Number(zone()));
1657 } 1657 }
1658 1658
1659 1659
1660 Bounds Typer::Visitor::TypeNumberShiftLeft(Node* node) {
1661 return Bounds(Type::None(zone()), Type::Signed32(zone()));
1662 }
1663
1664
1665 Bounds Typer::Visitor::TypeNumberShiftRight(Node* node) {
1666 return Bounds(Type::None(zone()), Type::Signed32(zone()));
1667 }
1668
1669
1670 Bounds Typer::Visitor::TypeNumberShiftRightLogical(Node* node) {
1671 return Bounds(Type::None(zone()), Type::Unsigned32(zone()));
1672 }
1673
1674
1660 Bounds Typer::Visitor::TypeNumberToInt32(Node* node) { 1675 Bounds Typer::Visitor::TypeNumberToInt32(Node* node) {
1661 return TypeUnaryOp(node, NumberToInt32); 1676 return TypeUnaryOp(node, NumberToInt32);
1662 } 1677 }
1663 1678
1664 1679
1665 Bounds Typer::Visitor::TypeNumberToUint32(Node* node) { 1680 Bounds Typer::Visitor::TypeNumberToUint32(Node* node) {
1666 return TypeUnaryOp(node, NumberToUint32); 1681 return TypeUnaryOp(node, NumberToUint32);
1667 } 1682 }
1668 1683
1669 1684
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2380 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2366 #undef TYPED_ARRAY_CASE 2381 #undef TYPED_ARRAY_CASE
2367 } 2382 }
2368 } 2383 }
2369 return Type::Constant(value, zone()); 2384 return Type::Constant(value, zone());
2370 } 2385 }
2371 2386
2372 } // namespace compiler 2387 } // namespace compiler
2373 } // namespace internal 2388 } // namespace internal
2374 } // namespace v8 2389 } // 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