| Index: src/compiler/instruction.h
|
| diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
|
| index 70338858a583df27ac546c83e1f1636ab16ba062..25de80c55329d1b8ff4bb24f6bb8023d73f56bda 100644
|
| --- a/src/compiler/instruction.h
|
| +++ b/src/compiler/instruction.h
|
| @@ -857,6 +857,12 @@ class Instruction final {
|
| ParallelMove* const* parallel_moves() const { return ¶llel_moves_[0]; }
|
| ParallelMove** parallel_moves() { return ¶llel_moves_[0]; }
|
|
|
| + int block_id() const { return block_id_; }
|
| + void set_block_id(int id) {
|
| + DCHECK(id >= 0);
|
| + block_id_ = id;
|
| + }
|
| +
|
| void Print(const RegisterConfiguration* config) const;
|
| void Print() const;
|
|
|
| @@ -877,6 +883,7 @@ class Instruction final {
|
| uint32_t bit_field_;
|
| ParallelMove* parallel_moves_[2];
|
| ReferenceMap* reference_map_;
|
| + int block_id_;
|
| InstructionOperand operands_[1];
|
|
|
| DISALLOW_COPY_AND_ASSIGN(Instruction);
|
| @@ -1303,6 +1310,8 @@ class InstructionSequence final : public ZoneObject {
|
| void StartBlock(RpoNumber rpo);
|
| void EndBlock(RpoNumber rpo);
|
|
|
| + void FinishInstructionMap();
|
| +
|
| int AddConstant(int virtual_register, Constant constant) {
|
| // TODO(titzer): allow RPO numbers as constants?
|
| DCHECK(constant.type() != Constant::kRpoNumber);
|
| @@ -1394,7 +1403,6 @@ class InstructionSequence final : public ZoneObject {
|
| Zone* const zone_;
|
| InstructionBlocks* const instruction_blocks_;
|
| SourcePositionMap source_positions_;
|
| - IntVector block_starts_;
|
| ConstantMap constants_;
|
| Immediates immediates_;
|
| InstructionDeque instructions_;
|
|
|