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

Side by Side Diff: src/compiler/instruction.h

Issue 606403003: Refactor BasicBlock, no inheritance from GenericNode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Attempt n+1 to address the size_t madness Created 6 years, 2 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 | « src/compiler/code-generator-impl.h ('k') | src/compiler/instruction.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_INSTRUCTION_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_H_
6 #define V8_COMPILER_INSTRUCTION_H_ 6 #define V8_COMPILER_INSTRUCTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 832
833 int BasicBlockCount() const { 833 int BasicBlockCount() const {
834 return static_cast<int>(schedule_->rpo_order()->size()); 834 return static_cast<int>(schedule_->rpo_order()->size());
835 } 835 }
836 836
837 BasicBlock* BlockAt(int rpo_number) const { 837 BasicBlock* BlockAt(int rpo_number) const {
838 return (*schedule_->rpo_order())[rpo_number]; 838 return (*schedule_->rpo_order())[rpo_number];
839 } 839 }
840 840
841 BasicBlock* GetContainingLoop(BasicBlock* block) { 841 BasicBlock* GetContainingLoop(BasicBlock* block) {
842 return block->loop_header_; 842 return block->loop_header();
843 } 843 }
844 844
845 int GetLoopEnd(BasicBlock* block) const { return block->loop_end_; } 845 int GetLoopEnd(BasicBlock* block) const { return block->loop_end(); }
846 846
847 BasicBlock* GetBasicBlock(int instruction_index); 847 BasicBlock* GetBasicBlock(int instruction_index);
848 848
849 int GetVirtualRegister(Node* node) const { return node->id(); } 849 int GetVirtualRegister(Node* node) const { return node->id(); }
850 850
851 bool IsReference(int virtual_register) const; 851 bool IsReference(int virtual_register) const;
852 bool IsDouble(int virtual_register) const; 852 bool IsDouble(int virtual_register) const;
853 853
854 void MarkAsReference(int virtual_register); 854 void MarkAsReference(int virtual_register);
855 void MarkAsDouble(int virtual_register); 855 void MarkAsDouble(int virtual_register);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 DeoptimizationVector deoptimization_entries_; 944 DeoptimizationVector deoptimization_entries_;
945 }; 945 };
946 946
947 OStream& operator<<(OStream& os, const InstructionSequence& code); 947 OStream& operator<<(OStream& os, const InstructionSequence& code);
948 948
949 } // namespace compiler 949 } // namespace compiler
950 } // namespace internal 950 } // namespace internal
951 } // namespace v8 951 } // namespace v8
952 952
953 #endif // V8_COMPILER_INSTRUCTION_H_ 953 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « src/compiler/code-generator-impl.h ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698