OLD | NEW |
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 kDeoptimizationSupport = 1 << 5, | 115 kDeoptimizationSupport = 1 << 5, |
116 kDebug = 1 << 6, | 116 kDebug = 1 << 6, |
117 kSerializing = 1 << 7, | 117 kSerializing = 1 << 7, |
118 kFunctionContextSpecializing = 1 << 8, | 118 kFunctionContextSpecializing = 1 << 8, |
119 kFrameSpecializing = 1 << 9, | 119 kFrameSpecializing = 1 << 9, |
120 kNativeContextSpecializing = 1 << 10, | 120 kNativeContextSpecializing = 1 << 10, |
121 kInliningEnabled = 1 << 11, | 121 kInliningEnabled = 1 << 11, |
122 kTypingEnabled = 1 << 12, | 122 kTypingEnabled = 1 << 12, |
123 kDisableFutureOptimization = 1 << 13, | 123 kDisableFutureOptimization = 1 << 13, |
124 kSplittingEnabled = 1 << 14, | 124 kSplittingEnabled = 1 << 14, |
125 kTypeFeedbackEnabled = 1 << 15, | |
126 kDeoptimizationEnabled = 1 << 16, | 125 kDeoptimizationEnabled = 1 << 16, |
127 kSourcePositionsEnabled = 1 << 17, | 126 kSourcePositionsEnabled = 1 << 17, |
128 kFirstCompile = 1 << 18, | 127 kFirstCompile = 1 << 18, |
129 }; | 128 }; |
130 | 129 |
131 explicit CompilationInfo(ParseInfo* parse_info); | 130 explicit CompilationInfo(ParseInfo* parse_info); |
132 CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone); | 131 CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone); |
133 CompilationInfo(const char* debug_name, Isolate* isolate, Zone* zone); | 132 CompilationInfo(const char* debug_name, Isolate* isolate, Zone* zone); |
134 virtual ~CompilationInfo(); | 133 virtual ~CompilationInfo(); |
135 | 134 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 bool is_frame_specializing() const { return GetFlag(kFrameSpecializing); } | 231 bool is_frame_specializing() const { return GetFlag(kFrameSpecializing); } |
233 | 232 |
234 void MarkAsNativeContextSpecializing() { | 233 void MarkAsNativeContextSpecializing() { |
235 SetFlag(kNativeContextSpecializing); | 234 SetFlag(kNativeContextSpecializing); |
236 } | 235 } |
237 | 236 |
238 bool is_native_context_specializing() const { | 237 bool is_native_context_specializing() const { |
239 return GetFlag(kNativeContextSpecializing); | 238 return GetFlag(kNativeContextSpecializing); |
240 } | 239 } |
241 | 240 |
242 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } | |
243 | |
244 bool is_type_feedback_enabled() const { | |
245 return GetFlag(kTypeFeedbackEnabled); | |
246 } | |
247 | |
248 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); } | 241 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); } |
249 | 242 |
250 bool is_deoptimization_enabled() const { | 243 bool is_deoptimization_enabled() const { |
251 return GetFlag(kDeoptimizationEnabled); | 244 return GetFlag(kDeoptimizationEnabled); |
252 } | 245 } |
253 | 246 |
254 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } | 247 void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } |
255 | 248 |
256 bool is_source_positions_enabled() const { | 249 bool is_source_positions_enabled() const { |
257 return GetFlag(kSourcePositionsEnabled); | 250 return GetFlag(kSourcePositionsEnabled); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 size_t info_zone_start_allocation_size_; | 722 size_t info_zone_start_allocation_size_; |
730 base::ElapsedTimer timer_; | 723 base::ElapsedTimer timer_; |
731 | 724 |
732 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 725 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
733 }; | 726 }; |
734 | 727 |
735 } // namespace internal | 728 } // namespace internal |
736 } // namespace v8 | 729 } // namespace v8 |
737 | 730 |
738 #endif // V8_COMPILER_H_ | 731 #endif // V8_COMPILER_H_ |
OLD | NEW |