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

Side by Side Diff: src/compiler.h

Issue 1849603002: [turbofan] Effect linearization after representation inference. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 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 | « BUILD.gn ('k') | src/compiler/effect-control-linearizer.h » ('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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 kDebug = 1 << 6, 151 kDebug = 1 << 6,
152 kSerializing = 1 << 7, 152 kSerializing = 1 << 7,
153 kFunctionContextSpecializing = 1 << 8, 153 kFunctionContextSpecializing = 1 << 8,
154 kFrameSpecializing = 1 << 9, 154 kFrameSpecializing = 1 << 9,
155 kNativeContextSpecializing = 1 << 10, 155 kNativeContextSpecializing = 1 << 10,
156 kInliningEnabled = 1 << 11, 156 kInliningEnabled = 1 << 11,
157 kDisableFutureOptimization = 1 << 12, 157 kDisableFutureOptimization = 1 << 12,
158 kSplittingEnabled = 1 << 13, 158 kSplittingEnabled = 1 << 13,
159 kDeoptimizationEnabled = 1 << 14, 159 kDeoptimizationEnabled = 1 << 14,
160 kSourcePositionsEnabled = 1 << 15, 160 kSourcePositionsEnabled = 1 << 15,
161 kBailoutOnUninitialized = 1 << 16, 161 kEffectSchedulingEnabled = 1 << 16,
162 kBailoutOnUninitialized = 1 << 17,
162 }; 163 };
163 164
164 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); 165 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
165 CompilationInfo(const char* debug_name, Isolate* isolate, Zone* zone, 166 CompilationInfo(const char* debug_name, Isolate* isolate, Zone* zone,
166 Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); 167 Code::Flags code_flags = Code::ComputeFlags(Code::STUB));
167 virtual ~CompilationInfo(); 168 virtual ~CompilationInfo();
168 169
169 ParseInfo* parse_info() const { return parse_info_; } 170 ParseInfo* parse_info() const { return parse_info_; }
170 171
171 // ----------------------------------------------------------- 172 // -----------------------------------------------------------
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 bool is_native_context_specializing() const { 271 bool is_native_context_specializing() const {
271 return GetFlag(kNativeContextSpecializing); 272 return GetFlag(kNativeContextSpecializing);
272 } 273 }
273 274
274 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); } 275 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); }
275 276
276 bool is_deoptimization_enabled() const { 277 bool is_deoptimization_enabled() const {
277 return GetFlag(kDeoptimizationEnabled); 278 return GetFlag(kDeoptimizationEnabled);
278 } 279 }
279 280
281 void MarkAsEffectSchedulingEnabled() { SetFlag(kEffectSchedulingEnabled); }
282
283 bool is_effect_scheduling_enabled() const {
284 return GetFlag(kEffectSchedulingEnabled);
285 }
286
280 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } 287 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); }
281 288
282 bool is_source_positions_enabled() const { 289 bool is_source_positions_enabled() const {
283 return GetFlag(kSourcePositionsEnabled); 290 return GetFlag(kSourcePositionsEnabled);
284 } 291 }
285 292
286 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } 293 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); }
287 294
288 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } 295 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); }
289 296
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 MUST_USE_RESULT Status SetLastStatus(Status status) { 623 MUST_USE_RESULT Status SetLastStatus(Status status) {
617 last_status_ = status; 624 last_status_ = status;
618 return last_status_; 625 return last_status_;
619 } 626 }
620 }; 627 };
621 628
622 } // namespace internal 629 } // namespace internal
623 } // namespace v8 630 } // namespace v8
624 631
625 #endif // V8_COMPILER_H_ 632 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/effect-control-linearizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698