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

Side by Side Diff: src/runtime-profiler.cc

Issue 699633002: Optimize function across closures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/runtime-profiler.h" 7 #include "src/runtime-profiler.h"
8 8
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int typeinfo, generic, total, type_percentage, generic_percentage; 99 int typeinfo, generic, total, type_percentage, generic_percentage;
100 GetICCounts(function->shared(), &typeinfo, &generic, &total, 100 GetICCounts(function->shared(), &typeinfo, &generic, &total,
101 &type_percentage, &generic_percentage); 101 &type_percentage, &generic_percentage);
102 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total, 102 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total,
103 type_percentage); 103 type_percentage);
104 PrintF(", generic ICs: %d/%d (%d%%)", generic, total, generic_percentage); 104 PrintF(", generic ICs: %d/%d (%d%%)", generic, total, generic_percentage);
105 } 105 }
106 PrintF("]\n"); 106 PrintF("]\n");
107 } 107 }
108 108
109 109 function->shared()->set_optimize_next_closure(true);
110 if (isolate_->concurrent_recompilation_enabled() && 110 if (isolate_->concurrent_recompilation_enabled() &&
111 !isolate_->bootstrapper()->IsActive()) { 111 !isolate_->bootstrapper()->IsActive()) {
112 if (isolate_->concurrent_osr_enabled() && 112 if (isolate_->concurrent_osr_enabled() &&
113 isolate_->optimizing_compiler_thread()->IsQueuedForOSR(function)) { 113 isolate_->optimizing_compiler_thread()->IsQueuedForOSR(function)) {
114 // Do not attempt regular recompilation if we already queued this for OSR. 114 // Do not attempt regular recompilation if we already queued this for OSR.
115 // TODO(yangguo): This is necessary so that we don't install optimized 115 // TODO(yangguo): This is necessary so that we don't install optimized
116 // code on a function that is already optimized, since OSR and regular 116 // code on a function that is already optimized, since OSR and regular
117 // recompilation race. This goes away as soon as OSR becomes one-shot. 117 // recompilation race. This goes away as soon as OSR becomes one-shot.
118 return; 118 return;
119 } 119 }
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 277 }
278 } else { 278 } else {
279 shared_code->set_profiler_ticks(ticks + 1); 279 shared_code->set_profiler_ticks(ticks + 1);
280 } 280 }
281 } 281 }
282 any_ic_changed_ = false; 282 any_ic_changed_ = false;
283 } 283 }
284 284
285 285
286 } } // namespace v8::internal 286 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698