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

Side by Side Diff: src/compiler.h

Issue 1209383002: Mark function info as compiled after EnsureDeoptimizationSupport. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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.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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); } 242 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); }
243 243
244 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } 244 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); }
245 245
246 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } 246 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); }
247 247
248 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } 248 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); }
249 249
250 void MarkAsFirstCompile() { SetFlag(kFirstCompile); } 250 void MarkAsFirstCompile() { SetFlag(kFirstCompile); }
251 251
252 void MarkAsCompiled() { SetFlag(kFirstCompile, false); }
253
252 bool is_first_compile() const { return GetFlag(kFirstCompile); } 254 bool is_first_compile() const { return GetFlag(kFirstCompile); }
253 255
254 bool IsCodePreAgingActive() const { 256 bool IsCodePreAgingActive() const {
255 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && 257 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() &&
256 !is_debug(); 258 !is_debug();
257 } 259 }
258 260
259 void EnsureFeedbackVector(); 261 void EnsureFeedbackVector();
260 Handle<TypeFeedbackVector> feedback_vector() const { 262 Handle<TypeFeedbackVector> feedback_vector() const {
261 return feedback_vector_; 263 return feedback_vector_;
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 Zone zone_; 696 Zone zone_;
695 size_t info_zone_start_allocation_size_; 697 size_t info_zone_start_allocation_size_;
696 base::ElapsedTimer timer_; 698 base::ElapsedTimer timer_;
697 699
698 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 700 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
699 }; 701 };
700 702
701 } } // namespace v8::internal 703 } } // namespace v8::internal
702 704
703 #endif // V8_COMPILER_H_ 705 #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