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

Unified Diff: src/compiler/typer.cc

Issue 2171723002: [turbofan] Remove unused function_type_ from Typer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/typer.h ('k') | no next file » | 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 1e8d64af0e7d3bced34115b23b4c4f11fa2e8821..4d57144809da3eb16e2c5d2bca379c8777319c6d 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -31,12 +31,11 @@ class Typer::Decorator final : public GraphDecorator {
};
Typer::Typer(Isolate* isolate, Graph* graph, Flags flags,
- CompilationDependencies* dependencies, FunctionType* function_type)
+ CompilationDependencies* dependencies)
: isolate_(isolate),
graph_(graph),
flags_(flags),
dependencies_(dependencies),
- function_type_(function_type),
decorator_(nullptr),
cache_(TypeCache::Get()),
operation_typer_(isolate, zone()) {
@@ -625,17 +624,7 @@ Type* Typer::Visitor::TypeIfException(Node* node) { return Type::Any(); }
// Common operators.
-
-Type* Typer::Visitor::TypeParameter(Node* node) {
- if (FunctionType* function_type = typer_->function_type()) {
- int const index = ParameterIndexOf(node->op());
- if (index >= 0 && index < function_type->Arity()) {
- return function_type->Parameter(index);
- }
- }
- return Type::Any();
-}
-
+Type* Typer::Visitor::TypeParameter(Node* node) { return Type::Any(); }
Type* Typer::Visitor::TypeOsrValue(Node* node) { return Type::Any(); }
« no previous file with comments | « src/compiler/typer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698