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

Side by Side Diff: src/isolate.cc

Issue 141363005: A64: Synchronize with r15204. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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/incremental-marking.cc ('k') | src/lithium.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 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 stub.InitializeInterfaceDescriptor( 2258 stub.InitializeInterfaceDescriptor(
2259 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); 2259 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray));
2260 CompareNilICStub::InitializeForIsolate(this); 2260 CompareNilICStub::InitializeForIsolate(this);
2261 ToBooleanStub::InitializeForIsolate(this); 2261 ToBooleanStub::InitializeForIsolate(this);
2262 ArrayConstructorStubBase::InstallDescriptors(this); 2262 ArrayConstructorStubBase::InstallDescriptors(this);
2263 InternalArrayConstructorStubBase::InstallDescriptors(this); 2263 InternalArrayConstructorStubBase::InstallDescriptors(this);
2264 } 2264 }
2265 2265
2266 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start(); 2266 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start();
2267 2267
2268 if (FLAG_parallel_marking && FLAG_marking_threads == 0) {
2269 FLAG_marking_threads = SystemThreadManager::
2270 NumberOfParallelSystemThreads(
2271 SystemThreadManager::PARALLEL_MARKING);
2272 }
2273 if (FLAG_marking_threads > 0) { 2268 if (FLAG_marking_threads > 0) {
2274 marking_thread_ = new MarkingThread*[FLAG_marking_threads]; 2269 marking_thread_ = new MarkingThread*[FLAG_marking_threads];
2275 for (int i = 0; i < FLAG_marking_threads; i++) { 2270 for (int i = 0; i < FLAG_marking_threads; i++) {
2276 marking_thread_[i] = new MarkingThread(this); 2271 marking_thread_[i] = new MarkingThread(this);
2277 marking_thread_[i]->Start(); 2272 marking_thread_[i]->Start();
2278 } 2273 }
2279 } else {
2280 FLAG_parallel_marking = false;
2281 } 2274 }
2282 2275
2283 if (FLAG_sweeper_threads == 0) {
2284 if (FLAG_concurrent_sweeping) {
2285 FLAG_sweeper_threads = SystemThreadManager::
2286 NumberOfParallelSystemThreads(
2287 SystemThreadManager::CONCURRENT_SWEEPING);
2288 } else if (FLAG_parallel_sweeping) {
2289 FLAG_sweeper_threads = SystemThreadManager::
2290 NumberOfParallelSystemThreads(
2291 SystemThreadManager::PARALLEL_SWEEPING);
2292 }
2293 }
2294 if (FLAG_sweeper_threads > 0) { 2276 if (FLAG_sweeper_threads > 0) {
2295 sweeper_thread_ = new SweeperThread*[FLAG_sweeper_threads]; 2277 sweeper_thread_ = new SweeperThread*[FLAG_sweeper_threads];
2296 for (int i = 0; i < FLAG_sweeper_threads; i++) { 2278 for (int i = 0; i < FLAG_sweeper_threads; i++) {
2297 sweeper_thread_[i] = new SweeperThread(this); 2279 sweeper_thread_[i] = new SweeperThread(this);
2298 sweeper_thread_[i]->Start(); 2280 sweeper_thread_[i]->Start();
2299 } 2281 }
2300 } else {
2301 FLAG_concurrent_sweeping = false;
2302 FLAG_parallel_sweeping = false;
2303 }
2304 if (FLAG_parallel_recompilation &&
2305 SystemThreadManager::NumberOfParallelSystemThreads(
2306 SystemThreadManager::PARALLEL_RECOMPILATION) == 0) {
2307 FLAG_parallel_recompilation = false;
2308 } 2282 }
2309 return true; 2283 return true;
2310 } 2284 }
2311 2285
2312 2286
2313 // Initialized lazily to allow early 2287 // Initialized lazily to allow early
2314 // v8::V8::SetAddHistogramSampleFunction calls. 2288 // v8::V8::SetAddHistogramSampleFunction calls.
2315 StatsTable* Isolate::stats_table() { 2289 StatsTable* Isolate::stats_table() {
2316 if (stats_table_ == NULL) { 2290 if (stats_table_ == NULL) {
2317 stats_table_ = new StatsTable; 2291 stats_table_ = new StatsTable;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2477 2451
2478 #ifdef DEBUG 2452 #ifdef DEBUG
2479 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2453 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2480 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2454 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2481 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2455 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2482 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2456 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2483 #undef ISOLATE_FIELD_OFFSET 2457 #undef ISOLATE_FIELD_OFFSET
2484 #endif 2458 #endif
2485 2459
2486 } } // namespace v8::internal 2460 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698