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

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

Issue 1119683002: Mark instruction blocks with spills (for frame elision). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improved printing of blocks Created 5 years, 7 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
« no previous file with comments | « src/compiler/frame-elider.cc ('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 <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 1045
1046 int LastLoopInstructionIndex(const InstructionBlock* block) { 1046 int LastLoopInstructionIndex(const InstructionBlock* block) {
1047 return instruction_blocks_->at(block->loop_end().ToSize() - 1) 1047 return instruction_blocks_->at(block->loop_end().ToSize() - 1)
1048 ->last_instruction_index(); 1048 ->last_instruction_index();
1049 } 1049 }
1050 1050
1051 const InstructionBlock* InstructionBlockAt(RpoNumber rpo_number) const { 1051 const InstructionBlock* InstructionBlockAt(RpoNumber rpo_number) const {
1052 return instruction_blocks_->at(rpo_number.ToSize()); 1052 return instruction_blocks_->at(rpo_number.ToSize());
1053 } 1053 }
1054 1054
1055 const InstructionBlock* GetInstructionBlock(int instruction_index) const; 1055 InstructionBlock* GetInstructionBlock(int instruction_index) const;
1056 1056
1057 static MachineType DefaultRepresentation() { 1057 static MachineType DefaultRepresentation() {
1058 return kPointerSize == 8 ? kRepWord64 : kRepWord32; 1058 return kPointerSize == 8 ? kRepWord64 : kRepWord32;
1059 } 1059 }
1060 MachineType GetRepresentation(int virtual_register) const; 1060 MachineType GetRepresentation(int virtual_register) const;
1061 void MarkAsRepresentation(MachineType machine_type, int virtual_register); 1061 void MarkAsRepresentation(MachineType machine_type, int virtual_register);
1062 1062
1063 bool IsReference(int virtual_register) const { 1063 bool IsReference(int virtual_register) const {
1064 return GetRepresentation(virtual_register) == kRepTagged; 1064 return GetRepresentation(virtual_register) == kRepTagged;
1065 } 1065 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 1188
1189 1189
1190 std::ostream& operator<<(std::ostream& os, 1190 std::ostream& operator<<(std::ostream& os,
1191 const PrintableInstructionSequence& code); 1191 const PrintableInstructionSequence& code);
1192 1192
1193 } // namespace compiler 1193 } // namespace compiler
1194 } // namespace internal 1194 } // namespace internal
1195 } // namespace v8 1195 } // namespace v8
1196 1196
1197 #endif // V8_COMPILER_INSTRUCTION_H_ 1197 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « src/compiler/frame-elider.cc ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698