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

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

Issue 2191883002: [turbofan] Adds speculative opcodes for shift right. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really fix the merge conflicts. Created 4 years, 4 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/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 } 1690 }
1691 1691
1692 Type* Typer::Visitor::TypeSpeculativeNumberModulus(Node* node) { 1692 Type* Typer::Visitor::TypeSpeculativeNumberModulus(Node* node) {
1693 return Type::Number(); 1693 return Type::Number();
1694 } 1694 }
1695 1695
1696 Type* Typer::Visitor::TypeSpeculativeNumberShiftLeft(Node* node) { 1696 Type* Typer::Visitor::TypeSpeculativeNumberShiftLeft(Node* node) {
1697 return Type::Signed32(); 1697 return Type::Signed32();
1698 } 1698 }
1699 1699
1700 Type* Typer::Visitor::TypeSpeculativeNumberShiftRight(Node* node) {
1701 return Type::Signed32();
1702 }
1703
1704 Type* Typer::Visitor::TypeSpeculativeNumberShiftRightLogical(Node* node) {
1705 return Type::Unsigned32();
1706 }
1707
1700 Type* Typer::Visitor::TypeNumberMultiply(Node* node) { return Type::Number(); } 1708 Type* Typer::Visitor::TypeNumberMultiply(Node* node) { return Type::Number(); }
1701 1709
1702 Type* Typer::Visitor::TypeNumberDivide(Node* node) { return Type::Number(); } 1710 Type* Typer::Visitor::TypeNumberDivide(Node* node) { return Type::Number(); }
1703 1711
1704 Type* Typer::Visitor::TypeNumberModulus(Node* node) { return Type::Number(); } 1712 Type* Typer::Visitor::TypeNumberModulus(Node* node) { return Type::Number(); }
1705 1713
1706 Type* Typer::Visitor::TypeNumberBitwiseOr(Node* node) { 1714 Type* Typer::Visitor::TypeNumberBitwiseOr(Node* node) {
1707 return Type::Signed32(); 1715 return Type::Signed32();
1708 } 1716 }
1709 1717
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 } 2663 }
2656 if (Type::IsInteger(*value)) { 2664 if (Type::IsInteger(*value)) {
2657 return Type::Range(value->Number(), value->Number(), zone()); 2665 return Type::Range(value->Number(), value->Number(), zone());
2658 } 2666 }
2659 return Type::Constant(value, zone()); 2667 return Type::Constant(value, zone());
2660 } 2668 }
2661 2669
2662 } // namespace compiler 2670 } // namespace compiler
2663 } // namespace internal 2671 } // namespace internal
2664 } // namespace v8 2672 } // 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