OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 | 619 |
620 class CompilationPhase BASE_EMBEDDED { | 620 class CompilationPhase BASE_EMBEDDED { |
621 public: | 621 public: |
622 CompilationPhase(const char* name, CompilationInfo* info); | 622 CompilationPhase(const char* name, CompilationInfo* info); |
623 ~CompilationPhase(); | 623 ~CompilationPhase(); |
624 | 624 |
625 protected: | 625 protected: |
626 bool ShouldProduceTraceOutput() const; | 626 bool ShouldProduceTraceOutput() const; |
627 | 627 |
628 const char* name() const { return name_; } | 628 const char* name() const { return name_; } |
629 Isolate* isolate() const { return info_->isolate(); } | 629 CompilationInfo* info() const { return info_; } |
| 630 Isolate* isolate() const { return info()->isolate(); } |
630 Zone* zone() { return &zone_; } | 631 Zone* zone() { return &zone_; } |
631 | 632 |
632 private: | 633 private: |
633 const char* name_; | 634 const char* name_; |
634 CompilationInfo* info_; | 635 CompilationInfo* info_; |
635 Zone zone_; | 636 Zone zone_; |
636 unsigned info_zone_start_allocation_size_; | 637 unsigned info_zone_start_allocation_size_; |
637 int64_t start_ticks_; | 638 int64_t start_ticks_; |
638 | 639 |
639 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 640 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
640 }; | 641 }; |
641 | 642 |
642 | 643 |
643 } } // namespace v8::internal | 644 } } // namespace v8::internal |
644 | 645 |
645 #endif // V8_COMPILER_H_ | 646 #endif // V8_COMPILER_H_ |
OLD | NEW |