| 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 <memory> | 8 #include <memory> | 
| 9 | 9 | 
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" | 
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 155     kFrameSpecializing = 1 << 9, | 155     kFrameSpecializing = 1 << 9, | 
| 156     kNativeContextSpecializing = 1 << 10, | 156     kNativeContextSpecializing = 1 << 10, | 
| 157     kInliningEnabled = 1 << 11, | 157     kInliningEnabled = 1 << 11, | 
| 158     kDisableFutureOptimization = 1 << 12, | 158     kDisableFutureOptimization = 1 << 12, | 
| 159     kSplittingEnabled = 1 << 13, | 159     kSplittingEnabled = 1 << 13, | 
| 160     kDeoptimizationEnabled = 1 << 14, | 160     kDeoptimizationEnabled = 1 << 14, | 
| 161     kSourcePositionsEnabled = 1 << 15, | 161     kSourcePositionsEnabled = 1 << 15, | 
| 162     kBailoutOnUninitialized = 1 << 16, | 162     kBailoutOnUninitialized = 1 << 16, | 
| 163     kOptimizeFromBytecode = 1 << 17, | 163     kOptimizeFromBytecode = 1 << 17, | 
| 164     kTypeFeedbackEnabled = 1 << 18, | 164     kTypeFeedbackEnabled = 1 << 18, | 
|  | 165     kAccessorInliningEnabled = 1 << 19, | 
| 165   }; | 166   }; | 
| 166 | 167 | 
| 167   CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); | 168   CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); | 
| 168   CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, | 169   CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, | 
| 169                   Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); | 170                   Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); | 
| 170   ~CompilationInfo(); | 171   ~CompilationInfo(); | 
| 171 | 172 | 
| 172   ParseInfo* parse_info() const { return parse_info_; } | 173   ParseInfo* parse_info() const { return parse_info_; } | 
| 173 | 174 | 
| 174   // ----------------------------------------------------------- | 175   // ----------------------------------------------------------- | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 271   bool is_deoptimization_enabled() const { | 272   bool is_deoptimization_enabled() const { | 
| 272     return GetFlag(kDeoptimizationEnabled); | 273     return GetFlag(kDeoptimizationEnabled); | 
| 273   } | 274   } | 
| 274 | 275 | 
| 275   void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } | 276   void MarkAsTypeFeedbackEnabled() { SetFlag(kTypeFeedbackEnabled); } | 
| 276 | 277 | 
| 277   bool is_type_feedback_enabled() const { | 278   bool is_type_feedback_enabled() const { | 
| 278     return GetFlag(kTypeFeedbackEnabled); | 279     return GetFlag(kTypeFeedbackEnabled); | 
| 279   } | 280   } | 
| 280 | 281 | 
|  | 282   void MarkAsAccessorInliningEnabled() { SetFlag(kAccessorInliningEnabled); } | 
|  | 283 | 
|  | 284   bool is_accessor_inlining_enabled() const { | 
|  | 285     return GetFlag(kAccessorInliningEnabled); | 
|  | 286   } | 
|  | 287 | 
| 281   void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } | 288   void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); } | 
| 282 | 289 | 
| 283   bool is_source_positions_enabled() const { | 290   bool is_source_positions_enabled() const { | 
| 284     return GetFlag(kSourcePositionsEnabled); | 291     return GetFlag(kSourcePositionsEnabled); | 
| 285   } | 292   } | 
| 286 | 293 | 
| 287   void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } | 294   void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } | 
| 288 | 295 | 
| 289   bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } | 296   bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } | 
| 290 | 297 | 
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|