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

Side by Side Diff: src/compiler.h

Issue 752613002: Revert "Remove deprecated ShouldSelfOptimize machinery." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler.cc » ('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 // 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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 // Deoptimization support. 295 // Deoptimization support.
296 bool HasDeoptimizationSupport() const { 296 bool HasDeoptimizationSupport() const {
297 return GetFlag(kDeoptimizationSupport); 297 return GetFlag(kDeoptimizationSupport);
298 } 298 }
299 void EnableDeoptimizationSupport() { 299 void EnableDeoptimizationSupport() {
300 DCHECK(IsOptimizable()); 300 DCHECK(IsOptimizable());
301 SetFlag(kDeoptimizationSupport); 301 SetFlag(kDeoptimizationSupport);
302 } 302 }
303 303
304 // Determines whether or not to insert a self-optimization header.
305 bool ShouldSelfOptimize();
306
304 void set_deferred_handles(DeferredHandles* deferred_handles) { 307 void set_deferred_handles(DeferredHandles* deferred_handles) {
305 DCHECK(deferred_handles_ == NULL); 308 DCHECK(deferred_handles_ == NULL);
306 deferred_handles_ = deferred_handles; 309 deferred_handles_ = deferred_handles;
307 } 310 }
308 311
309 ZoneList<Handle<HeapObject> >* dependencies( 312 ZoneList<Handle<HeapObject> >* dependencies(
310 DependentCode::DependencyGroup group) { 313 DependentCode::DependencyGroup group) {
311 if (dependencies_[group] == NULL) { 314 if (dependencies_[group] == NULL) {
312 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_); 315 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_);
313 } 316 }
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 Zone zone_; 751 Zone zone_;
749 unsigned info_zone_start_allocation_size_; 752 unsigned info_zone_start_allocation_size_;
750 base::ElapsedTimer timer_; 753 base::ElapsedTimer timer_;
751 754
752 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 755 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
753 }; 756 };
754 757
755 } } // namespace v8::internal 758 } } // namespace v8::internal
756 759
757 #endif // V8_COMPILER_H_ 760 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698