Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index aada244f7fad8f09c7e8a772a45afaced9858dba..9b59aca2e4d9da62a68b4600ce26c7db8b7f1c82 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -745,6 +745,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)) { |