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

Side by Side Diff: src/compiler.h

Issue 1577193003: Change the CompilationInfo::IsCodePreAgingActive() predicate to CompilationInfo::GeneratePreagingPr… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment cleanup. Created 4 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
« no previous file with comments | « no previous file | src/compiler/arm/code-generator-arm.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/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } 261 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); }
262 262
263 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } 263 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); }
264 264
265 void MarkAsFirstCompile() { SetFlag(kFirstCompile); } 265 void MarkAsFirstCompile() { SetFlag(kFirstCompile); }
266 266
267 void MarkAsCompiled() { SetFlag(kFirstCompile, false); } 267 void MarkAsCompiled() { SetFlag(kFirstCompile, false); }
268 268
269 bool is_first_compile() const { return GetFlag(kFirstCompile); } 269 bool is_first_compile() const { return GetFlag(kFirstCompile); }
270 270
271 bool IsCodePreAgingActive() const { 271 bool GeneratePreagedPrologue() const {
272 // TODO(bradnelson): Figure out why this breaks wasm. 272 // Generate a pre-aged prologue if we are optimizing for size, which
273 // will make code flushing more aggressive. The code for WASM functions
274 // cannot be flushed, so it does not make sense to age them.
273 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && 275 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() &&
274 !is_debug() && !FLAG_expose_wasm; 276 !is_debug() && output_code_kind_ != Code::WASM_FUNCTION;
275 } 277 }
276 278
277 void EnsureFeedbackVector(); 279 void EnsureFeedbackVector();
278 Handle<TypeFeedbackVector> feedback_vector() const { 280 Handle<TypeFeedbackVector> feedback_vector() const {
279 return feedback_vector_; 281 return feedback_vector_;
280 } 282 }
281 void SetCode(Handle<Code> code) { code_ = code; } 283 void SetCode(Handle<Code> code) { code_ = code; }
282 284
283 void SetBytecodeArray(Handle<BytecodeArray> bytecode_array) { 285 void SetBytecodeArray(Handle<BytecodeArray> bytecode_array) {
284 bytecode_array_ = bytecode_array; 286 bytecode_array_ = bytecode_array;
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 size_t info_zone_start_allocation_size_; 719 size_t info_zone_start_allocation_size_;
718 base::ElapsedTimer timer_; 720 base::ElapsedTimer timer_;
719 721
720 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 722 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
721 }; 723 };
722 724
723 } // namespace internal 725 } // namespace internal
724 } // namespace v8 726 } // namespace v8
725 727
726 #endif // V8_COMPILER_H_ 728 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698