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

Side by Side Diff: src/v8.cc

Issue 25260003: Remove parallel marking support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/marking-thread.cc ('k') | tools/gyp/v8.gyp » ('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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 SystemThreadManager::PARALLEL_SWEEPING); 220 SystemThreadManager::PARALLEL_SWEEPING);
221 } 221 }
222 if (FLAG_sweeper_threads == 0) { 222 if (FLAG_sweeper_threads == 0) {
223 FLAG_concurrent_sweeping = false; 223 FLAG_concurrent_sweeping = false;
224 FLAG_parallel_sweeping = false; 224 FLAG_parallel_sweeping = false;
225 } 225 }
226 } else if (!FLAG_concurrent_sweeping && !FLAG_parallel_sweeping) { 226 } else if (!FLAG_concurrent_sweeping && !FLAG_parallel_sweeping) {
227 FLAG_sweeper_threads = 0; 227 FLAG_sweeper_threads = 0;
228 } 228 }
229 229
230 if (FLAG_parallel_marking) {
231 if (FLAG_marking_threads <= 0) {
232 FLAG_marking_threads = SystemThreadManager::
233 NumberOfParallelSystemThreads(
234 SystemThreadManager::PARALLEL_MARKING);
235 }
236 if (FLAG_marking_threads == 0) {
237 FLAG_parallel_marking = false;
238 }
239 } else {
240 FLAG_marking_threads = 0;
241 }
242
243 if (FLAG_concurrent_recompilation && 230 if (FLAG_concurrent_recompilation &&
244 SystemThreadManager::NumberOfParallelSystemThreads( 231 SystemThreadManager::NumberOfParallelSystemThreads(
245 SystemThreadManager::PARALLEL_RECOMPILATION) == 0) { 232 SystemThreadManager::PARALLEL_RECOMPILATION) == 0) {
246 FLAG_concurrent_recompilation = false; 233 FLAG_concurrent_recompilation = false;
247 } 234 }
248 235
249 Sampler::SetUp(); 236 Sampler::SetUp();
250 CPU::SetUp(); 237 CPU::SetUp();
251 OS::PostSetUp(); 238 OS::PostSetUp();
252 ElementsAccessor::InitializeOncePerProcess(); 239 ElementsAccessor::InitializeOncePerProcess();
253 LOperand::SetUpCaches(); 240 LOperand::SetUpCaches();
254 SetUpJSCallerSavedCodeData(); 241 SetUpJSCallerSavedCodeData();
255 ExternalReference::SetUp(); 242 ExternalReference::SetUp();
256 Bootstrapper::InitializeOncePerProcess(); 243 Bootstrapper::InitializeOncePerProcess();
257 } 244 }
258 245
259 246
260 void V8::InitializeOncePerProcess() { 247 void V8::InitializeOncePerProcess() {
261 CallOnce(&init_once, &InitializeOncePerProcessImpl); 248 CallOnce(&init_once, &InitializeOncePerProcessImpl);
262 } 249 }
263 250
264 } } // namespace v8::internal 251 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/marking-thread.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698