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

Unified Diff: src/compiler/typer.cc

Issue 809333002: [turbofan] Implement OSR for outer loops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/scheduler.cc ('k') | src/compiler/verifier.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 1fcfa17de9a4b920a30e7ead291e7921d5d1c10b..88a3666565875f8a8715326b3a1577bc8ada348a 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -598,6 +598,16 @@ Bounds Typer::Visitor::TypeParameter(Node* node) {
}
+Bounds Typer::Visitor::TypeOsrValue(Node* node) {
+ // OSR values explicitly have type {None} before OSR form is deconstructed.
+ if (node->InputAt(0)->opcode() == IrOpcode::kOsrLoopEntry) {
+ return Bounds(Type::None(), Type::None());
+ }
+ // TODO(turbofan): preserve the type of OSR values after deconstruction.
+ return Bounds::Unbounded(zone());
+}
+
+
Bounds Typer::Visitor::TypeInt32Constant(Node* node) {
Factory* f = isolate()->factory();
Handle<Object> number = f->NewNumber(OpParameter<int32_t>(node));
« no previous file with comments | « src/compiler/scheduler.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698