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

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

Issue 1112213005: [turbofan] resolve all references before populating reference maps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 const ZoneVector<InstructionOperand>& reference_operands() const { 585 const ZoneVector<InstructionOperand>& reference_operands() const {
586 return reference_operands_; 586 return reference_operands_;
587 } 587 }
588 int instruction_position() const { return instruction_position_; } 588 int instruction_position() const { return instruction_position_; }
589 589
590 void set_instruction_position(int pos) { 590 void set_instruction_position(int pos) {
591 DCHECK(instruction_position_ == -1); 591 DCHECK(instruction_position_ == -1);
592 instruction_position_ = pos; 592 instruction_position_ = pos;
593 } 593 }
594 594
595 void RecordReference(const InstructionOperand& op); 595 void RecordReference(const AllocatedOperand& op);
596 596
597 private: 597 private:
598 friend std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm); 598 friend std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm);
599 599
600 ZoneVector<InstructionOperand> reference_operands_; 600 ZoneVector<InstructionOperand> reference_operands_;
601 int instruction_position_; 601 int instruction_position_;
602 }; 602 };
603 603
604 std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm); 604 std::ostream& operator<<(std::ostream& os, const ReferenceMap& pm);
605 605
(...skipping 582 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 | « no previous file | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698