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

Unified Diff: src/compiler/typer.cc

Issue 1630523002: [turbofan] Switch JSForInPrepare to %ForInPrepare style. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/js-typed-lowering.cc ('k') | src/crankshaft/hydrogen.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 7e36f0a315b1f796d36346f276bc52d4f494d2b4..1024f0a25dbafb0e7a3a5d5f8a3dfae2cf934a08 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -650,6 +650,11 @@ Type* Typer::Visitor::TypeCall(Node* node) { return Type::Any(); }
Type* Typer::Visitor::TypeProjection(Node* node) {
+ // TODO(bmeurer): Make this beautiful! Use tuple type here.
+ if (node->InputAt(0)->opcode() == IrOpcode::kJSForInPrepare &&
+ ProjectionIndexOf(node->op()) == 2) {
+ return typer_->cache_.kSmi;
+ }
// TODO(titzer): use the output type of the input to determine the bounds.
return Type::Any();
}
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698