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

Side by Side Diff: src/isolate.cc

Issue 23014007: Rename "parallel recompilation" to "concurrent recompilation". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/ia32/builtins-ia32.cc ('k') | src/log.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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 deferred != NULL; 515 deferred != NULL;
516 deferred = deferred->next_) { 516 deferred = deferred->next_) {
517 deferred->Iterate(visitor); 517 deferred->Iterate(visitor);
518 } 518 }
519 } 519 }
520 520
521 521
522 #ifdef DEBUG 522 #ifdef DEBUG
523 bool Isolate::IsDeferredHandle(Object** handle) { 523 bool Isolate::IsDeferredHandle(Object** handle) {
524 // Each DeferredHandles instance keeps the handles to one job in the 524 // Each DeferredHandles instance keeps the handles to one job in the
525 // parallel recompilation queue, containing a list of blocks. Each block 525 // concurrent recompilation queue, containing a list of blocks. Each block
526 // contains kHandleBlockSize handles except for the first block, which may 526 // contains kHandleBlockSize handles except for the first block, which may
527 // not be fully filled. 527 // not be fully filled.
528 // We iterate through all the blocks to see whether the argument handle 528 // We iterate through all the blocks to see whether the argument handle
529 // belongs to one of the blocks. If so, it is deferred. 529 // belongs to one of the blocks. If so, it is deferred.
530 for (DeferredHandles* deferred = deferred_handles_head_; 530 for (DeferredHandles* deferred = deferred_handles_head_;
531 deferred != NULL; 531 deferred != NULL;
532 deferred = deferred->next_) { 532 deferred = deferred->next_) {
533 List<Object**>* blocks = &deferred->blocks_; 533 List<Object**>* blocks = &deferred->blocks_;
534 for (int i = 0; i < blocks->length(); i++) { 534 for (int i = 0; i < blocks->length(); i++) {
535 Object** block_limit = (i == 0) ? deferred->first_block_limit_ 535 Object** block_limit = (i == 0) ? deferred->first_block_limit_
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1879
1880 1880
1881 void Isolate::Deinit() { 1881 void Isolate::Deinit() {
1882 if (state_ == INITIALIZED) { 1882 if (state_ == INITIALIZED) {
1883 TRACE_ISOLATE(deinit); 1883 TRACE_ISOLATE(deinit);
1884 1884
1885 #ifdef ENABLE_DEBUGGER_SUPPORT 1885 #ifdef ENABLE_DEBUGGER_SUPPORT
1886 debugger()->UnloadDebugger(); 1886 debugger()->UnloadDebugger();
1887 #endif 1887 #endif
1888 1888
1889 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Stop(); 1889 if (FLAG_concurrent_recompilation) optimizing_compiler_thread_.Stop();
1890 1890
1891 if (FLAG_sweeper_threads > 0) { 1891 if (FLAG_sweeper_threads > 0) {
1892 for (int i = 0; i < FLAG_sweeper_threads; i++) { 1892 for (int i = 0; i < FLAG_sweeper_threads; i++) {
1893 sweeper_thread_[i]->Stop(); 1893 sweeper_thread_[i]->Stop();
1894 delete sweeper_thread_[i]; 1894 delete sweeper_thread_[i];
1895 } 1895 }
1896 delete[] sweeper_thread_; 1896 delete[] sweeper_thread_;
1897 } 1897 }
1898 1898
1899 if (FLAG_marking_threads > 0) { 1899 if (FLAG_marking_threads > 0) {
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2324 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, 2324 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS,
2325 DONT_TRACK_ALLOCATION_SITE, 0); 2325 DONT_TRACK_ALLOCATION_SITE, 0);
2326 stub.InitializeInterfaceDescriptor( 2326 stub.InitializeInterfaceDescriptor(
2327 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); 2327 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray));
2328 CompareNilICStub::InitializeForIsolate(this); 2328 CompareNilICStub::InitializeForIsolate(this);
2329 ToBooleanStub::InitializeForIsolate(this); 2329 ToBooleanStub::InitializeForIsolate(this);
2330 ArrayConstructorStubBase::InstallDescriptors(this); 2330 ArrayConstructorStubBase::InstallDescriptors(this);
2331 InternalArrayConstructorStubBase::InstallDescriptors(this); 2331 InternalArrayConstructorStubBase::InstallDescriptors(this);
2332 } 2332 }
2333 2333
2334 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start(); 2334 if (FLAG_concurrent_recompilation) optimizing_compiler_thread_.Start();
2335 2335
2336 if (FLAG_marking_threads > 0) { 2336 if (FLAG_marking_threads > 0) {
2337 marking_thread_ = new MarkingThread*[FLAG_marking_threads]; 2337 marking_thread_ = new MarkingThread*[FLAG_marking_threads];
2338 for (int i = 0; i < FLAG_marking_threads; i++) { 2338 for (int i = 0; i < FLAG_marking_threads; i++) {
2339 marking_thread_[i] = new MarkingThread(this); 2339 marking_thread_[i] = new MarkingThread(this);
2340 marking_thread_[i]->Start(); 2340 marking_thread_[i]->Start();
2341 } 2341 }
2342 } 2342 }
2343 2343
2344 if (FLAG_sweeper_threads > 0) { 2344 if (FLAG_sweeper_threads > 0) {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 2527
2528 #ifdef DEBUG 2528 #ifdef DEBUG
2529 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2529 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2530 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2530 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2531 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2531 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2532 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2532 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2533 #undef ISOLATE_FIELD_OFFSET 2533 #undef ISOLATE_FIELD_OFFSET
2534 #endif 2534 #endif
2535 2535
2536 } } // namespace v8::internal 2536 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698