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

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

Issue 1271703002: [turbofan] Stand-alone deferred block splitting - full. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | src/compiler/move-optimizer.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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 return false; 1078 return false;
1079 } 1079 }
1080 } 1080 }
1081 1081
1082 Instruction* GetBlockStart(RpoNumber rpo) const; 1082 Instruction* GetBlockStart(RpoNumber rpo) const;
1083 1083
1084 typedef InstructionDeque::const_iterator const_iterator; 1084 typedef InstructionDeque::const_iterator const_iterator;
1085 const_iterator begin() const { return instructions_.begin(); } 1085 const_iterator begin() const { return instructions_.begin(); }
1086 const_iterator end() const { return instructions_.end(); } 1086 const_iterator end() const { return instructions_.end(); }
1087 const InstructionDeque& instructions() const { return instructions_; } 1087 const InstructionDeque& instructions() const { return instructions_; }
1088 int LastInstructionIndex() const {
1089 return static_cast<int>(instructions().size()) - 1;
1090 }
1088 1091
1089 Instruction* InstructionAt(int index) const { 1092 Instruction* InstructionAt(int index) const {
1090 DCHECK(index >= 0); 1093 DCHECK(index >= 0);
1091 DCHECK(index < static_cast<int>(instructions_.size())); 1094 DCHECK(index < static_cast<int>(instructions_.size()));
1092 return instructions_[index]; 1095 return instructions_[index];
1093 } 1096 }
1094 1097
1095 Isolate* isolate() const { return isolate_; } 1098 Isolate* isolate() const { return isolate_; }
1096 const ReferenceMapDeque* reference_maps() const { return &reference_maps_; } 1099 const ReferenceMapDeque* reference_maps() const { return &reference_maps_; }
1097 Zone* zone() const { return zone_; } 1100 Zone* zone() const { return zone_; }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 1206
1204 1207
1205 std::ostream& operator<<(std::ostream& os, 1208 std::ostream& operator<<(std::ostream& os,
1206 const PrintableInstructionSequence& code); 1209 const PrintableInstructionSequence& code);
1207 1210
1208 } // namespace compiler 1211 } // namespace compiler
1209 } // namespace internal 1212 } // namespace internal
1210 } // namespace v8 1213 } // namespace v8
1211 1214
1212 #endif // V8_COMPILER_INSTRUCTION_H_ 1215 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/move-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698