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

Side by Side Diff: src/compiler.h

Issue 1921563002: [turbofan] Initial version of number type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 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 | « BUILD.gn ('k') | src/compiler/ast-graph-builder.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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 kFunctionContextSpecializing = 1 << 8, 139 kFunctionContextSpecializing = 1 << 8,
140 kFrameSpecializing = 1 << 9, 140 kFrameSpecializing = 1 << 9,
141 kNativeContextSpecializing = 1 << 10, 141 kNativeContextSpecializing = 1 << 10,
142 kInliningEnabled = 1 << 11, 142 kInliningEnabled = 1 << 11,
143 kDisableFutureOptimization = 1 << 12, 143 kDisableFutureOptimization = 1 << 12,
144 kSplittingEnabled = 1 << 13, 144 kSplittingEnabled = 1 << 13,
145 kDeoptimizationEnabled = 1 << 14, 145 kDeoptimizationEnabled = 1 << 14,
146 kSourcePositionsEnabled = 1 << 15, 146 kSourcePositionsEnabled = 1 << 15,
147 kBailoutOnUninitialized = 1 << 16, 147 kBailoutOnUninitialized = 1 << 16,
148 kOptimizeFromBytecode = 1 << 17, 148 kOptimizeFromBytecode = 1 << 17,
149 kTypeFeedbackEnabled = 1 << 18,
149 }; 150 };
150 151
151 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); 152 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
152 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, 153 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone,
153 Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); 154 Code::Flags code_flags = Code::ComputeFlags(Code::STUB));
154 ~CompilationInfo(); 155 ~CompilationInfo();
155 156
156 ParseInfo* parse_info() const { return parse_info_; } 157 ParseInfo* parse_info() const { return parse_info_; }
157 158
158 // ----------------------------------------------------------- 159 // -----------------------------------------------------------
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 bool is_native_context_specializing() const { 250 bool is_native_context_specializing() const {
250 return GetFlag(kNativeContextSpecializing); 251 return GetFlag(kNativeContextSpecializing);
251 } 252 }
252 253
253 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); } 254 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); }
254 255
255 bool is_deoptimization_enabled() const { 256 bool is_deoptimization_enabled() const {
256 return GetFlag(kDeoptimizationEnabled); 257 return GetFlag(kDeoptimizationEnabled);
257 } 258 }
258 259
260 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); }
261
262 bool is_type_feedback_enabled() const {
263 return GetFlag(kTypeFeedbackEnabled);
264 }
265
259 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } 266 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); }
260 267
261 bool is_source_positions_enabled() const { 268 bool is_source_positions_enabled() const {
262 return GetFlag(kSourcePositionsEnabled); 269 return GetFlag(kSourcePositionsEnabled);
263 } 270 }
264 271
265 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } 272 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); }
266 273
267 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } 274 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); }
268 275
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 MUST_USE_RESULT Status SetLastStatus(Status status) { 593 MUST_USE_RESULT Status SetLastStatus(Status status) {
587 last_status_ = status; 594 last_status_ = status;
588 return last_status_; 595 return last_status_;
589 } 596 }
590 }; 597 };
591 598
592 } // namespace internal 599 } // namespace internal
593 } // namespace v8 600 } // namespace v8
594 601
595 #endif // V8_COMPILER_H_ 602 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698