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

Unified Diff: src/compiler.cc

Issue 2594543003: [Interpreter] Ensure that a function is compiled before tiering up to baseline. (Closed)
Patch Set: Fixed an error in DCHECK. Created 3 years, 12 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 | src/runtime/runtime-test.cc » ('j') | 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 299b1d49fc0ecc8c3ab94b77b39683a268726a28..392972cbc9cb4b85c6a08e027e914378a43f3f7f 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -822,6 +822,8 @@ MaybeHandle<Code> GetBaselineCode(Handle<JSFunction> function) {
ParseInfo parse_info(&zone, handle(function->shared()));
CompilationInfo info(&parse_info, function);
+ DCHECK(function->shared()->is_compiled());
+
// Function no longer needs to be tiered up
function->shared()->set_marked_for_tier_up(false);
« no previous file with comments | « no previous file | src/runtime/runtime-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698