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

Unified Diff: src/compiler/typer.cc

Issue 552653003: [turbofan] Fix the node matchers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address nit. Created 6 years, 3 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/simplified-operator-reducer.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('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 a6da257850ab83c53706ccfe001e4c498e58b5e1..2f5ee5db1557ab5945c793faba3394a74a0084cb 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -212,31 +212,31 @@ Bounds Typer::Visitor::TypeParameter(Node* node) {
Bounds Typer::Visitor::TypeInt32Constant(Node* node) {
// TODO(titzer): only call Type::Of() if the type is not already known.
- return Bounds(Type::Of(ValueOf<int32_t>(node->op()), zone()));
+ return Bounds(Type::Of(OpParameter<int32_t>(node), zone()));
}
Bounds Typer::Visitor::TypeInt64Constant(Node* node) {
// TODO(titzer): only call Type::Of() if the type is not already known.
return Bounds(
- Type::Of(static_cast<double>(ValueOf<int64_t>(node->op())), zone()));
+ Type::Of(static_cast<double>(OpParameter<int64_t>(node)), zone()));
}
Bounds Typer::Visitor::TypeFloat64Constant(Node* node) {
// TODO(titzer): only call Type::Of() if the type is not already known.
- return Bounds(Type::Of(ValueOf<double>(node->op()), zone()));
+ return Bounds(Type::Of(OpParameter<double>(node), zone()));
}
Bounds Typer::Visitor::TypeNumberConstant(Node* node) {
// TODO(titzer): only call Type::Of() if the type is not already known.
- return Bounds(Type::Of(ValueOf<double>(node->op()), zone()));
+ return Bounds(Type::Of(OpParameter<double>(node), zone()));
}
Bounds Typer::Visitor::TypeHeapConstant(Node* node) {
- return Bounds(TypeConstant(ValueOf<Handle<Object> >(node->op())));
+ return Bounds(TypeConstant(OpParameter<Unique<Object> >(node).handle()));
}
« no previous file with comments | « src/compiler/simplified-operator-reducer.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698