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

Side by Side Diff: src/compiler.h

Issue 1872333002: [turbofan] Remove support for --turbo-types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « 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/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 kSavesCallerDoubles = 1 << 2, 147 kSavesCallerDoubles = 1 << 2,
148 kRequiresFrame = 1 << 3, 148 kRequiresFrame = 1 << 3,
149 kMustNotHaveEagerFrame = 1 << 4, 149 kMustNotHaveEagerFrame = 1 << 4,
150 kDeoptimizationSupport = 1 << 5, 150 kDeoptimizationSupport = 1 << 5,
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 kTypingEnabled = 1 << 12, 157 kDisableFutureOptimization = 1 << 12,
158 kDisableFutureOptimization = 1 << 13, 158 kSplittingEnabled = 1 << 13,
159 kSplittingEnabled = 1 << 14, 159 kDeoptimizationEnabled = 1 << 14,
160 kDeoptimizationEnabled = 1 << 16, 160 kSourcePositionsEnabled = 1 << 15,
161 kSourcePositionsEnabled = 1 << 17, 161 kFirstCompile = 1 << 16,
162 kFirstCompile = 1 << 18, 162 kBailoutOnUninitialized = 1 << 17,
163 kBailoutOnUninitialized = 1 << 19,
164 }; 163 };
165 164
166 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); 165 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
167 CompilationInfo(const char* debug_name, Isolate* isolate, Zone* zone, 166 CompilationInfo(const char* debug_name, Isolate* isolate, Zone* zone,
168 Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); 167 Code::Flags code_flags = Code::ComputeFlags(Code::STUB));
169 virtual ~CompilationInfo(); 168 virtual ~CompilationInfo();
170 169
171 ParseInfo* parse_info() const { return parse_info_; } 170 ParseInfo* parse_info() const { return parse_info_; }
172 171
173 // ----------------------------------------------------------- 172 // -----------------------------------------------------------
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } 281 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); }
283 282
284 bool is_source_positions_enabled() const { 283 bool is_source_positions_enabled() const {
285 return GetFlag(kSourcePositionsEnabled); 284 return GetFlag(kSourcePositionsEnabled);
286 } 285 }
287 286
288 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } 287 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); }
289 288
290 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } 289 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); }
291 290
292 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); }
293
294 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); }
295
296 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } 291 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); }
297 292
298 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); } 293 bool is_splitting_enabled() const { return GetFlag(kSplittingEnabled); }
299 294
300 void MarkAsFirstCompile() { SetFlag(kFirstCompile); } 295 void MarkAsFirstCompile() { SetFlag(kFirstCompile); }
301 296
302 void MarkAsCompiled() { SetFlag(kFirstCompile, false); } 297 void MarkAsCompiled() { SetFlag(kFirstCompile, false); }
303 298
304 bool is_first_compile() const { return GetFlag(kFirstCompile); } 299 bool is_first_compile() const { return GetFlag(kFirstCompile); }
305 300
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 MUST_USE_RESULT Status SetLastStatus(Status status) { 622 MUST_USE_RESULT Status SetLastStatus(Status status) {
628 last_status_ = status; 623 last_status_ = status;
629 return last_status_; 624 return last_status_;
630 } 625 }
631 }; 626 };
632 627
633 } // namespace internal 628 } // namespace internal
634 } // namespace v8 629 } // namespace v8
635 630
636 #endif // V8_COMPILER_H_ 631 #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