| Index: src/compiler/typer.cc
|
| diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
|
| index 2ab4ab5a7283145312ee438fe5cc5e413eea2773..f891f607223d8c19a83ac3687693bb3132cb47fd 100644
|
| --- a/src/compiler/typer.cc
|
| +++ b/src/compiler/typer.cc
|
| @@ -590,6 +590,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));
|
|
|