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

Unified Diff: src/compiler.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
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/flag-definitions.h » ('J')
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 482392a38c38b64f162cc24d5ea711fa1afd73d3..3941d754d4159c7939c41aad1dfd60e9f8986789 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -973,7 +973,8 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
return cached_code;
}
- if (function->shared()->was_marked_for_optimization()) {
+ if (FLAG_mark_shared_functions &&
+ function->shared()->was_marked_for_optimization()) {
Michael Starzinger 2016/10/25 10:38:24 nit: This should actually never happen when the fl
Leszek Swirski 2016/10/25 10:56:10 Good point, done.
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') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698