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

Side by Side Diff: src/compiler.h

Issue 585443002: Remove dead CompilationInfo::DisableOptimization predicate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | 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/zone.h" 10 #include "src/zone.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 bool IsOptimizing() const { return mode_ == OPTIMIZE; } 272 bool IsOptimizing() const { return mode_ == OPTIMIZE; }
273 bool IsOptimizable() const { return mode_ == BASE; } 273 bool IsOptimizable() const { return mode_ == BASE; }
274 bool IsStub() const { return mode_ == STUB; } 274 bool IsStub() const { return mode_ == STUB; }
275 void SetOptimizing(BailoutId osr_ast_id, Handle<Code> unoptimized) { 275 void SetOptimizing(BailoutId osr_ast_id, Handle<Code> unoptimized) {
276 DCHECK(!shared_info_.is_null()); 276 DCHECK(!shared_info_.is_null());
277 SetMode(OPTIMIZE); 277 SetMode(OPTIMIZE);
278 osr_ast_id_ = osr_ast_id; 278 osr_ast_id_ = osr_ast_id;
279 unoptimized_code_ = unoptimized; 279 unoptimized_code_ = unoptimized;
280 optimization_id_ = isolate()->NextOptimizationId(); 280 optimization_id_ = isolate()->NextOptimizationId();
281 } 281 }
282 void DisableOptimization();
283 282
284 // Deoptimization support. 283 // Deoptimization support.
285 bool HasDeoptimizationSupport() const { 284 bool HasDeoptimizationSupport() const {
286 return GetFlag(kDeoptimizationSupport); 285 return GetFlag(kDeoptimizationSupport);
287 } 286 }
288 void EnableDeoptimizationSupport() { 287 void EnableDeoptimizationSupport() {
289 DCHECK(IsOptimizable()); 288 DCHECK(IsOptimizable());
290 SetFlag(kDeoptimizationSupport); 289 SetFlag(kDeoptimizationSupport);
291 } 290 }
292 291
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 Zone zone_; 735 Zone zone_;
737 unsigned info_zone_start_allocation_size_; 736 unsigned info_zone_start_allocation_size_;
738 base::ElapsedTimer timer_; 737 base::ElapsedTimer timer_;
739 738
740 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 739 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
741 }; 740 };
742 741
743 } } // namespace v8::internal 742 } } // namespace v8::internal
744 743
745 #endif // V8_COMPILER_H_ 744 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698