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

Unified Diff: src/compiler.cc

Issue 2261123002: [compiler] Fix uncommon CompileOptimized fallback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: No simplify. :( Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index ad5e5e99554f0553436f871357672e4ca8688ecd..1ae567fee8e69dad398db5b9b8cae4028a1fa4d9 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1277,6 +1277,9 @@ bool Compiler::CompileOptimized(Handle<JSFunction> function,
DCHECK(!isolate->has_pending_exception());
if (function->shared()->is_compiled()) {
code = handle(function->shared()->code(), isolate);
+ } else if (function->shared()->HasBytecodeArray()) {
+ code = isolate->builtins()->InterpreterEntryTrampoline();
+ function->shared()->ReplaceCode(*code);
} else {
Zone zone(isolate->allocator());
ParseInfo parse_info(&zone, function);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698