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

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: Update. 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
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/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 } 1698 }
1699 1699
1700 Type* Typer::Visitor::TypeSpeculativeNumberModulus(Node* node) { 1700 Type* Typer::Visitor::TypeSpeculativeNumberModulus(Node* node) {
1701 return Type::Number(); 1701 return Type::Number();
1702 } 1702 }
1703 1703
1704 Type* Typer::Visitor::TypeSpeculativeNumberShiftLeft(Node* node) { 1704 Type* Typer::Visitor::TypeSpeculativeNumberShiftLeft(Node* node) {
1705 return Type::Signed32(); 1705 return Type::Signed32();
1706 } 1706 }
1707 1707
1708 Type* Typer::Visitor::TypeSpeculativeNumberShiftRight(Node* node) {
1709 return Type::Signed32();
1710 }
1711
1712 Type* Typer::Visitor::TypeSpeculativeNumberShiftRightLogical(Node* node) {
1713 return Type::Unsigned32();
1714 }
1715
1708 Type* Typer::Visitor::TypeNumberMultiply(Node* node) { return Type::Number(); } 1716 Type* Typer::Visitor::TypeNumberMultiply(Node* node) { return Type::Number(); }
1709 1717
1710 Type* Typer::Visitor::TypeNumberDivide(Node* node) { return Type::Number(); } 1718 Type* Typer::Visitor::TypeNumberDivide(Node* node) { return Type::Number(); }
1711 1719
1712 Type* Typer::Visitor::TypeNumberModulus(Node* node) { return Type::Number(); } 1720 Type* Typer::Visitor::TypeNumberModulus(Node* node) { return Type::Number(); }
1713 1721
1714 Type* Typer::Visitor::TypeNumberBitwiseOr(Node* node) { 1722 Type* Typer::Visitor::TypeNumberBitwiseOr(Node* node) {
1715 return Type::Signed32(); 1723 return Type::Signed32();
1716 } 1724 }
1717 1725
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
2705 } 2713 }
2706 if (Type::IsInteger(*value)) { 2714 if (Type::IsInteger(*value)) {
2707 return Type::Range(value->Number(), value->Number(), zone()); 2715 return Type::Range(value->Number(), value->Number(), zone());
2708 } 2716 }
2709 return Type::Constant(value, zone()); 2717 return Type::Constant(value, zone());
2710 } 2718 }
2711 2719
2712 } // namespace compiler 2720 } // namespace compiler
2713 } // namespace internal 2721 } // namespace internal
2714 } // namespace v8 2722 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698