| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 kDeferredCalling = 1 << 0, | 110 kDeferredCalling = 1 << 0, |
| 111 kNonDeferredCalling = 1 << 1, | 111 kNonDeferredCalling = 1 << 1, |
| 112 kSavesCallerDoubles = 1 << 2, | 112 kSavesCallerDoubles = 1 << 2, |
| 113 kRequiresFrame = 1 << 3, | 113 kRequiresFrame = 1 << 3, |
| 114 kMustNotHaveEagerFrame = 1 << 4, | 114 kMustNotHaveEagerFrame = 1 << 4, |
| 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 kInliningEnabled = 1 << 10, |
| 121 kInliningEnabled = 1 << 11, | 121 kTypingEnabled = 1 << 11, |
| 122 kTypingEnabled = 1 << 12, | 122 kDisableFutureOptimization = 1 << 12, |
| 123 kDisableFutureOptimization = 1 << 13, | 123 kSplittingEnabled = 1 << 13, |
| 124 kSplittingEnabled = 1 << 14, | 124 kTypeFeedbackEnabled = 1 << 14, |
| 125 kTypeFeedbackEnabled = 1 << 15, | 125 kDeoptimizationEnabled = 1 << 15, |
| 126 kDeoptimizationEnabled = 1 << 16, | 126 kSourcePositionsEnabled = 1 << 16, |
| 127 kSourcePositionsEnabled = 1 << 17, | 127 kFirstCompile = 1 << 17, |
| 128 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 |
| 136 ParseInfo* parse_info() const { return parse_info_; } | 135 ParseInfo* parse_info() const { return parse_info_; } |
| 137 | 136 |
| 138 // ----------------------------------------------------------- | 137 // ----------------------------------------------------------- |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 220 } |
| 222 | 221 |
| 223 bool is_function_context_specializing() const { | 222 bool is_function_context_specializing() const { |
| 224 return GetFlag(kFunctionContextSpecializing); | 223 return GetFlag(kFunctionContextSpecializing); |
| 225 } | 224 } |
| 226 | 225 |
| 227 void MarkAsFrameSpecializing() { SetFlag(kFrameSpecializing); } | 226 void MarkAsFrameSpecializing() { SetFlag(kFrameSpecializing); } |
| 228 | 227 |
| 229 bool is_frame_specializing() const { return GetFlag(kFrameSpecializing); } | 228 bool is_frame_specializing() const { return GetFlag(kFrameSpecializing); } |
| 230 | 229 |
| 231 void MarkAsNativeContextSpecializing() { | |
| 232 SetFlag(kNativeContextSpecializing); | |
| 233 } | |
| 234 | |
| 235 bool is_native_context_specializing() const { | |
| 236 return GetFlag(kNativeContextSpecializing); | |
| 237 } | |
| 238 | |
| 239 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } | 230 void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } |
| 240 | 231 |
| 241 bool is_type_feedback_enabled() const { | 232 bool is_type_feedback_enabled() const { |
| 242 return GetFlag(kTypeFeedbackEnabled); | 233 return GetFlag(kTypeFeedbackEnabled); |
| 243 } | 234 } |
| 244 | 235 |
| 245 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); } | 236 void MarkAsDeoptimizationEnabled() { SetFlag(kDeoptimizationEnabled); } |
| 246 | 237 |
| 247 bool is_deoptimization_enabled() const { | 238 bool is_deoptimization_enabled() const { |
| 248 return GetFlag(kDeoptimizationEnabled); | 239 return GetFlag(kDeoptimizationEnabled); |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 size_t info_zone_start_allocation_size_; | 693 size_t info_zone_start_allocation_size_; |
| 703 base::ElapsedTimer timer_; | 694 base::ElapsedTimer timer_; |
| 704 | 695 |
| 705 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 696 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 706 }; | 697 }; |
| 707 | 698 |
| 708 } // namespace internal | 699 } // namespace internal |
| 709 } // namespace v8 | 700 } // namespace v8 |
| 710 | 701 |
| 711 #endif // V8_COMPILER_H_ | 702 #endif // V8_COMPILER_H_ |
| OLD | NEW |