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

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

Issue 1632803003: [turbofan] InstructionBlock::PrintBlock (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 1316
1317 bool ContainsCall() const { 1317 bool ContainsCall() const {
1318 for (Instruction* instr : instructions_) { 1318 for (Instruction* instr : instructions_) {
1319 if (instr->IsCall()) return true; 1319 if (instr->IsCall()) return true;
1320 } 1320 }
1321 return false; 1321 return false;
1322 } 1322 }
1323 void Print(const RegisterConfiguration* config) const; 1323 void Print(const RegisterConfiguration* config) const;
1324 void Print() const; 1324 void Print() const;
1325 1325
1326 void PrintBlock(const RegisterConfiguration* config, int block_id) const;
1327 void PrintBlock(int block_id) const;
1328
1326 private: 1329 private:
1327 friend std::ostream& operator<<(std::ostream& os, 1330 friend std::ostream& operator<<(std::ostream& os,
1328 const PrintableInstructionSequence& code); 1331 const PrintableInstructionSequence& code);
1329 1332
1330 typedef ZoneMap<const Instruction*, SourcePosition> SourcePositionMap; 1333 typedef ZoneMap<const Instruction*, SourcePosition> SourcePositionMap;
1331 1334
1332 Isolate* isolate_; 1335 Isolate* isolate_;
1333 Zone* const zone_; 1336 Zone* const zone_;
1334 InstructionBlocks* const instruction_blocks_; 1337 InstructionBlocks* const instruction_blocks_;
1335 SourcePositionMap source_positions_; 1338 SourcePositionMap source_positions_;
(...skipping 17 matching lines...) Expand all
1353 1356
1354 1357
1355 std::ostream& operator<<(std::ostream& os, 1358 std::ostream& operator<<(std::ostream& os,
1356 const PrintableInstructionSequence& code); 1359 const PrintableInstructionSequence& code);
1357 1360
1358 } // namespace compiler 1361 } // namespace compiler
1359 } // namespace internal 1362 } // namespace internal
1360 } // namespace v8 1363 } // namespace v8
1361 1364
1362 #endif // V8_COMPILER_INSTRUCTION_H_ 1365 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698