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

Side by Side Diff: src/compiler.h

Issue 1106613003: [turbofan] Unify frame state inputs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment. 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 | « 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 kDeoptimizationSupport = 1 << 5, 119 kDeoptimizationSupport = 1 << 5,
120 kDebug = 1 << 6, 120 kDebug = 1 << 6,
121 kCompilingForDebugging = 1 << 7, 121 kCompilingForDebugging = 1 << 7,
122 kSerializing = 1 << 8, 122 kSerializing = 1 << 8,
123 kContextSpecializing = 1 << 9, 123 kContextSpecializing = 1 << 9,
124 kInliningEnabled = 1 << 10, 124 kInliningEnabled = 1 << 10,
125 kTypingEnabled = 1 << 11, 125 kTypingEnabled = 1 << 11,
126 kDisableFutureOptimization = 1 << 12, 126 kDisableFutureOptimization = 1 << 12,
127 kSplittingEnabled = 1 << 13, 127 kSplittingEnabled = 1 << 13,
128 kBuiltinInliningEnabled = 1 << 14, 128 kBuiltinInliningEnabled = 1 << 14,
129 kTypeFeedbackEnabled = 1 << 15 129 kTypeFeedbackEnabled = 1 << 15,
130 kDeoptimizationEnabled = 1 << 16
130 }; 131 };
131 132
132 explicit CompilationInfo(ParseInfo* parse_info); 133 explicit CompilationInfo(ParseInfo* parse_info);
133 CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone); 134 CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone);
134 virtual ~CompilationInfo(); 135 virtual ~CompilationInfo();
135 136
136 ParseInfo* parse_info() const { return parse_info_; } 137 ParseInfo* parse_info() const { return parse_info_; }
137 138
138 // ----------------------------------------------------------- 139 // -----------------------------------------------------------
139 // TODO(titzer): inline and delete accessors of ParseInfo 140 // TODO(titzer): inline and delete accessors of ParseInfo
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); } 211 void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); }
211 212
212 bool is_context_specializing() const { return GetFlag(kContextSpecializing); } 213 bool is_context_specializing() const { return GetFlag(kContextSpecializing); }
213 214
214 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } 215 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); }
215 216
216 bool is_type_feedback_enabled() const { 217 bool is_type_feedback_enabled() const {
217 return GetFlag(kTypeFeedbackEnabled); 218 return GetFlag(kTypeFeedbackEnabled);
218 } 219 }
219 220
221 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); }
222
223 bool is_deoptimization_enabled() const {
224 return GetFlag(kDeoptimizationEnabled);
225 }
226
220 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } 227 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); }
221 228
222 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } 229 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); }
223 230
224 void MarkAsBuiltinInliningEnabled() { SetFlag(kBuiltinInliningEnabled); } 231 void MarkAsBuiltinInliningEnabled() { SetFlag(kBuiltinInliningEnabled); }
225 232
226 bool is_builtin_inlining_enabled() const { 233 bool is_builtin_inlining_enabled() const {
227 return GetFlag(kBuiltinInliningEnabled); 234 return GetFlag(kBuiltinInliningEnabled);
228 } 235 }
229 236
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 Zone zone_; 667 Zone zone_;
661 size_t info_zone_start_allocation_size_; 668 size_t info_zone_start_allocation_size_;
662 base::ElapsedTimer timer_; 669 base::ElapsedTimer timer_;
663 670
664 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 671 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
665 }; 672 };
666 673
667 } } // namespace v8::internal 674 } } // namespace v8::internal
668 675
669 #endif // V8_COMPILER_H_ 676 #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