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

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

Issue 68203029: Make number of available threads isolate-dependent and expose it to ResourceConstraints. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 7 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/runtime.cc ('k') | src/sweeper-thread.h » ('j') | 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 PrintF(" for recompilation, reason: %s", reason); 132 PrintF(" for recompilation, reason: %s", reason);
133 if (FLAG_type_info_threshold > 0) { 133 if (FLAG_type_info_threshold > 0) {
134 int typeinfo, total, percentage; 134 int typeinfo, total, percentage;
135 GetICCounts(function->shared()->code(), &typeinfo, &total, &percentage); 135 GetICCounts(function->shared()->code(), &typeinfo, &total, &percentage);
136 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total, percentage); 136 PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total, percentage);
137 } 137 }
138 PrintF("]\n"); 138 PrintF("]\n");
139 } 139 }
140 140
141 141
142 if (FLAG_concurrent_recompilation && !isolate_->bootstrapper()->IsActive()) { 142 if (isolate_->concurrent_recompilation_enabled() &&
143 if (FLAG_concurrent_osr && 143 !isolate_->bootstrapper()->IsActive()) {
144 if (isolate_->concurrent_osr_enabled() &&
144 isolate_->optimizing_compiler_thread()->IsQueuedForOSR(function)) { 145 isolate_->optimizing_compiler_thread()->IsQueuedForOSR(function)) {
145 // Do not attempt regular recompilation if we already queued this for OSR. 146 // Do not attempt regular recompilation if we already queued this for OSR.
146 // TODO(yangguo): This is necessary so that we don't install optimized 147 // TODO(yangguo): This is necessary so that we don't install optimized
147 // code on a function that is already optimized, since OSR and regular 148 // code on a function that is already optimized, since OSR and regular
148 // recompilation race. This goes away as soon as OSR becomes one-shot. 149 // recompilation race. This goes away as soon as OSR becomes one-shot.
149 return; 150 return;
150 } 151 }
151 ASSERT(!function->IsInRecompileQueue()); 152 ASSERT(!function->IsInRecompileQueue());
152 function->MarkForConcurrentRecompilation(); 153 function->MarkForConcurrentRecompilation();
153 } else { 154 } else {
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 429
429 430
430 void RuntimeProfiler::UpdateSamplesAfterCompact(ObjectVisitor* visitor) { 431 void RuntimeProfiler::UpdateSamplesAfterCompact(ObjectVisitor* visitor) {
431 for (int i = 0; i < kSamplerWindowSize; i++) { 432 for (int i = 0; i < kSamplerWindowSize; i++) {
432 visitor->VisitPointer(&sampler_window_[i]); 433 visitor->VisitPointer(&sampler_window_[i]);
433 } 434 }
434 } 435 }
435 436
436 437
437 } } // namespace v8::internal 438 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/sweeper-thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698