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

Side by Side Diff: src/objects.cc

Issue 1082183003: Revert of Reland "Remove support for thread-based recompilation" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/isolate.cc ('k') | src/optimizing-compile-dispatcher.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 9690 matching lines...) Expand 10 before | Expand all | Expand 10 after
9701 9701
9702 9702
9703 void JSFunction::AttemptConcurrentOptimization() { 9703 void JSFunction::AttemptConcurrentOptimization() {
9704 Isolate* isolate = GetIsolate(); 9704 Isolate* isolate = GetIsolate();
9705 if (!isolate->concurrent_recompilation_enabled() || 9705 if (!isolate->concurrent_recompilation_enabled() ||
9706 isolate->bootstrapper()->IsActive()) { 9706 isolate->bootstrapper()->IsActive()) {
9707 MarkForOptimization(); 9707 MarkForOptimization();
9708 return; 9708 return;
9709 } 9709 }
9710 if (isolate->concurrent_osr_enabled() && 9710 if (isolate->concurrent_osr_enabled() &&
9711 isolate->optimizing_compile_dispatcher()->IsQueuedForOSR(this)) { 9711 isolate->optimizing_compiler_thread()->IsQueuedForOSR(this)) {
9712 // Do not attempt regular recompilation if we already queued this for OSR. 9712 // Do not attempt regular recompilation if we already queued this for OSR.
9713 // TODO(yangguo): This is necessary so that we don't install optimized 9713 // TODO(yangguo): This is necessary so that we don't install optimized
9714 // code on a function that is already optimized, since OSR and regular 9714 // code on a function that is already optimized, since OSR and regular
9715 // recompilation race. This goes away as soon as OSR becomes one-shot. 9715 // recompilation race. This goes away as soon as OSR becomes one-shot.
9716 return; 9716 return;
9717 } 9717 }
9718 DCHECK(!IsInOptimizationQueue()); 9718 DCHECK(!IsInOptimizationQueue());
9719 DCHECK(!IsOptimized()); 9719 DCHECK(!IsOptimized());
9720 DCHECK(shared()->allows_lazy_compilation() || code()->optimizable()); 9720 DCHECK(shared()->allows_lazy_compilation() || code()->optimizable());
9721 DCHECK(isolate->concurrent_recompilation_enabled()); 9721 DCHECK(isolate->concurrent_recompilation_enabled());
(...skipping 7329 matching lines...) Expand 10 before | Expand all | Expand 10 after
17051 CompilationInfo* info) { 17051 CompilationInfo* info) {
17052 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17052 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17053 handle(cell->dependent_code(), info->isolate()), 17053 handle(cell->dependent_code(), info->isolate()),
17054 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17054 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17055 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17055 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17056 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17056 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17057 cell, info->zone()); 17057 cell, info->zone());
17058 } 17058 }
17059 17059
17060 } } // namespace v8::internal 17060 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/optimizing-compile-dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698