Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 426752e4bffdab40c0bef8a0df58be1f20184a68..26087c60952ce912b5d2faafba451a76f1de1b64 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -750,6 +750,11 @@ MaybeHandle<Code> GetOptimizedCode(Handle<JSFunction> function, |
Isolate* isolate = function->GetIsolate(); |
Handle<SharedFunctionInfo> shared(function->shared(), isolate); |
+ // TODO(4764): Remove this guard once OSR graph construction works. |
+ if (!osr_ast_id.IsNone() && osr_frame->is_interpreted()) { |
+ return MaybeHandle<Code>(); |
+ } |
+ |
Handle<Code> cached_code; |
if (GetCodeFromOptimizedCodeMap(function, osr_ast_id) |
.ToHandle(&cached_code)) { |