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

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

Issue 636543002: [turbofan] fix vreg mapping for instruction selector tests (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | test/unittests/compiler/ia32/instruction-selector-ia32-unittest.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 <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 821
822 BasicBlock* GetContainingLoop(BasicBlock* block) { 822 BasicBlock* GetContainingLoop(BasicBlock* block) {
823 return block->loop_header(); 823 return block->loop_header();
824 } 824 }
825 825
826 int GetLoopEnd(BasicBlock* block) const { return block->loop_end(); } 826 int GetLoopEnd(BasicBlock* block) const { return block->loop_end(); }
827 827
828 BasicBlock* GetBasicBlock(int instruction_index); 828 BasicBlock* GetBasicBlock(int instruction_index);
829 829
830 int GetVirtualRegister(const Node* node); 830 int GetVirtualRegister(const Node* node);
831 // TODO(dcarney): find a way to remove this.
832 const int* GetNodeMapForTesting() const { return node_map_; }
831 833
832 bool IsReference(int virtual_register) const; 834 bool IsReference(int virtual_register) const;
833 bool IsDouble(int virtual_register) const; 835 bool IsDouble(int virtual_register) const;
834 836
835 void MarkAsReference(int virtual_register); 837 void MarkAsReference(int virtual_register);
836 void MarkAsDouble(int virtual_register); 838 void MarkAsDouble(int virtual_register);
837 839
838 void AddGapMove(int index, InstructionOperand* from, InstructionOperand* to); 840 void AddGapMove(int index, InstructionOperand* from, InstructionOperand* to);
839 841
840 Label* GetLabel(BasicBlock* block); 842 Label* GetLabel(BasicBlock* block);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 DeoptimizationVector deoptimization_entries_; 931 DeoptimizationVector deoptimization_entries_;
930 }; 932 };
931 933
932 std::ostream& operator<<(std::ostream& os, const InstructionSequence& code); 934 std::ostream& operator<<(std::ostream& os, const InstructionSequence& code);
933 935
934 } // namespace compiler 936 } // namespace compiler
935 } // namespace internal 937 } // namespace internal
936 } // namespace v8 938 } // namespace v8
937 939
938 #endif // V8_COMPILER_INSTRUCTION_H_ 940 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « no previous file | test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698