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

Unified Diff: src/compiler/typer.cc

Issue 2819653002: Merged: Squashed multiple commits. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/typed-optimization.cc ('k') | src/compiler/types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index ed1a04aa3b42632c7486defa186fb9e140754cf5..80d8abd3c7a3d416488d9bde94b5d9d9fb9e73e0 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1804,8 +1804,7 @@ Type* Typer::Visitor::TypeCheckMaps(Node* node) {
}
Type* Typer::Visitor::TypeCheckNumber(Node* node) {
- Type* arg = Operand(node, 0);
- return Type::Intersect(arg, Type::Number(), zone());
+ return typer_->operation_typer_.CheckNumber(Operand(node, 0));
}
Type* Typer::Visitor::TypeCheckReceiver(Node* node) {
@@ -1824,8 +1823,7 @@ Type* Typer::Visitor::TypeCheckString(Node* node) {
}
Type* Typer::Visitor::TypeCheckFloat64Hole(Node* node) {
- Type* type = Operand(node, 0);
- return type;
+ return typer_->operation_typer_.CheckFloat64Hole(Operand(node, 0));
}
Type* Typer::Visitor::TypeCheckTaggedHole(Node* node) {
« no previous file with comments | « src/compiler/typed-optimization.cc ('k') | src/compiler/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698