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

Side by Side Diff: src/compiler.h

Issue 1372513003: [turbofan] Rename --context-specialization to --function-context-specialization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // of the compiled code produced by a compilation. 114 // of the compiled code produced by a compilation.
115 enum Flag { 115 enum Flag {
116 kDeferredCalling = 1 << 0, 116 kDeferredCalling = 1 << 0,
117 kNonDeferredCalling = 1 << 1, 117 kNonDeferredCalling = 1 << 1,
118 kSavesCallerDoubles = 1 << 2, 118 kSavesCallerDoubles = 1 << 2,
119 kRequiresFrame = 1 << 3, 119 kRequiresFrame = 1 << 3,
120 kMustNotHaveEagerFrame = 1 << 4, 120 kMustNotHaveEagerFrame = 1 << 4,
121 kDeoptimizationSupport = 1 << 5, 121 kDeoptimizationSupport = 1 << 5,
122 kDebug = 1 << 6, 122 kDebug = 1 << 6,
123 kSerializing = 1 << 7, 123 kSerializing = 1 << 7,
124 kContextSpecializing = 1 << 8, 124 kFunctionContextSpecializing = 1 << 8,
125 kFrameSpecializing = 1 << 9, 125 kFrameSpecializing = 1 << 9,
126 kInliningEnabled = 1 << 10, 126 kInliningEnabled = 1 << 10,
127 kTypingEnabled = 1 << 11, 127 kTypingEnabled = 1 << 11,
128 kDisableFutureOptimization = 1 << 12, 128 kDisableFutureOptimization = 1 << 12,
129 kSplittingEnabled = 1 << 13, 129 kSplittingEnabled = 1 << 13,
130 kTypeFeedbackEnabled = 1 << 14, 130 kTypeFeedbackEnabled = 1 << 14,
131 kDeoptimizationEnabled = 1 << 15, 131 kDeoptimizationEnabled = 1 << 15,
132 kSourcePositionsEnabled = 1 << 16, 132 kSourcePositionsEnabled = 1 << 16,
133 kFirstCompile = 1 << 17, 133 kFirstCompile = 1 << 17,
134 }; 134 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 SetFlag(kDebug); 214 SetFlag(kDebug);
215 SetFlag(kDeoptimizationSupport); 215 SetFlag(kDeoptimizationSupport);
216 } 216 }
217 217
218 bool is_debug() const { return GetFlag(kDebug); } 218 bool is_debug() const { return GetFlag(kDebug); }
219 219
220 void PrepareForSerializing() { SetFlag(kSerializing); } 220 void PrepareForSerializing() { SetFlag(kSerializing); }
221 221
222 bool will_serialize() const { return GetFlag(kSerializing); } 222 bool will_serialize() const { return GetFlag(kSerializing); }
223 223
224 void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); } 224 void MarkAsFunctionContextSpecializing() {
225 SetFlag(kFunctionContextSpecializing);
226 }
225 227
226 bool is_context_specializing() const { return GetFlag(kContextSpecializing); } 228 bool is_function_context_specializing() const {
229 return GetFlag(kFunctionContextSpecializing);
230 }
227 231
228 void MarkAsFrameSpecializing() { SetFlag(kFrameSpecializing); } 232 void MarkAsFrameSpecializing() { SetFlag(kFrameSpecializing); }
229 233
230 bool is_frame_specializing() const { return GetFlag(kFrameSpecializing); } 234 bool is_frame_specializing() const { return GetFlag(kFrameSpecializing); }
231 235
232 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } 236 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); }
233 237
234 bool is_type_feedback_enabled() const { 238 bool is_type_feedback_enabled() const {
235 return GetFlag(kTypeFeedbackEnabled); 239 return GetFlag(kTypeFeedbackEnabled);
236 } 240 }
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 Zone zone_; 712 Zone zone_;
709 size_t info_zone_start_allocation_size_; 713 size_t info_zone_start_allocation_size_;
710 base::ElapsedTimer timer_; 714 base::ElapsedTimer timer_;
711 715
712 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 716 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
713 }; 717 };
714 718
715 } } // namespace v8::internal 719 } } // namespace v8::internal
716 720
717 #endif // V8_COMPILER_H_ 721 #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