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

Unified Diff: src/compiler.cc

Issue 2446673002: [compiler] Put shared function marking behind a flag (Closed)
Patch Set: Rename flag and change to DCHECK Created 4 years, 2 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/flag-definitions.h » ('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 08a1339de033faa85dc487aa206b429da76d50d8..1ccf5c2a394cb125b09e9c20549dab38d2b662b1 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -978,6 +978,8 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
}
if (function->shared()->was_marked_for_optimization()) {
+ DCHECK(FLAG_optimize_shared_functions);
+
function->shared()->set_was_marked_for_optimization(false);
if (FLAG_trace_opt) {
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698