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

Unified Diff: src/objects.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 | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index dc403d90b049390354bb824ba39e1a98a7a226dd..921bb8f7bcac572114d18bf7aeb1e55780cbdf15 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -12212,9 +12212,11 @@ void JSFunction::MarkForOptimization() {
void JSFunction::AttemptConcurrentOptimization() {
- // Mark the shared function for optimization regardless of whether the
- // optimization is concurrent or not.
- shared()->set_was_marked_for_optimization(true);
+ if (FLAG_optimize_shared_functions) {
+ // Mark the shared function for optimization regardless of whether the
+ // optimization is concurrent or not.
+ shared()->set_was_marked_for_optimization(true);
+ }
Isolate* isolate = GetIsolate();
if (!isolate->concurrent_recompilation_enabled() ||
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698