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

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

Issue 13878019: Do not choose parallel recompilation when bootstrapping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "runtime-profiler.h" 30 #include "runtime-profiler.h"
31 31
32 #include "assembler.h" 32 #include "assembler.h"
33 #include "bootstrapper.h"
33 #include "code-stubs.h" 34 #include "code-stubs.h"
34 #include "compilation-cache.h" 35 #include "compilation-cache.h"
35 #include "deoptimizer.h" 36 #include "deoptimizer.h"
36 #include "execution.h" 37 #include "execution.h"
37 #include "full-codegen.h" 38 #include "full-codegen.h"
38 #include "global-handles.h" 39 #include "global-handles.h"
39 #include "isolate-inl.h" 40 #include "isolate-inl.h"
40 #include "mark-compact.h" 41 #include "mark-compact.h"
41 #include "platform.h" 42 #include "platform.h"
42 #include "scopeinfo.h" 43 #include "scopeinfo.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 PrintF(" 0x%" V8PRIxPTR, reinterpret_cast<intptr_t>(function->address())); 128 PrintF(" 0x%" V8PRIxPTR, reinterpret_cast<intptr_t>(function->address()));
128 PrintF(" for recompilation, reason: %s", reason); 129 PrintF(" for recompilation, reason: %s", reason);
129 if (FLAG_type_info_threshold > 0) { 130 if (FLAG_type_info_threshold > 0) {
130 int typeinfo, total, percentage; 131 int typeinfo, total, percentage;
131 GetICCounts(function, &typeinfo, &total, &percentage); 132 GetICCounts(function, &typeinfo, &total, &percentage);
132 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total, percentage); 133 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total, percentage);
133 } 134 }
134 PrintF("]\n"); 135 PrintF("]\n");
135 } 136 }
136 137
137 if (FLAG_parallel_recompilation) { 138 if (FLAG_parallel_recompilation && !isolate_->bootstrapper()->IsActive()) {
138 ASSERT(!function->IsMarkedForInstallingRecompiledCode()); 139 ASSERT(!function->IsMarkedForInstallingRecompiledCode());
139 ASSERT(!function->IsInRecompileQueue()); 140 ASSERT(!function->IsInRecompileQueue());
140 function->MarkForParallelRecompilation(); 141 function->MarkForParallelRecompilation();
141 } else { 142 } else {
142 // The next call to the function will trigger optimization. 143 // The next call to the function will trigger optimization.
143 function->MarkForLazyRecompilation(); 144 function->MarkForLazyRecompilation();
144 } 145 }
145 } 146 }
146 147
147 148
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 421
421 422
422 void RuntimeProfiler::UpdateSamplesAfterCompact(ObjectVisitor* visitor) { 423 void RuntimeProfiler::UpdateSamplesAfterCompact(ObjectVisitor* visitor) {
423 for (int i = 0; i < kSamplerWindowSize; i++) { 424 for (int i = 0; i < kSamplerWindowSize; i++) {
424 visitor->VisitPointer(&sampler_window_[i]); 425 visitor->VisitPointer(&sampler_window_[i]);
425 } 426 }
426 } 427 }
427 428
428 429
429 } } // namespace v8::internal 430 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698