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

Side by Side Diff: src/compiler.h

Issue 17657004: Refactor Hydrogen GVN into an HPhase and use the phase zone. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correct CL Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen.h » ('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 // 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
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_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698