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

Unified Diff: src/objects.cc

Issue 2446673002: [compiler] Put shared function marking behind a flag (Closed)
Patch Set: 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
« src/flag-definitions.h ('K') | « 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 9e8b06c6fc467e8ca7668d039df96b29a9f9c4eb..00f393053e1aa80a769fef2f5943764d4a79211d 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -12211,9 +12211,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_mark_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() ||
« src/flag-definitions.h ('K') | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698