Index: src/compiler/instruction.cc |
diff --git a/src/compiler/instruction.cc b/src/compiler/instruction.cc |
index dd80cad4cfd839c6d8e19e109077d299645180ee..9ab81b6ae1af42039b05e2bb1473cde84340e371 100644 |
--- a/src/compiler/instruction.cc |
+++ b/src/compiler/instruction.cc |
@@ -394,20 +394,20 @@ void InstructionSequence::AddGapMove(int index, InstructionOperand* from, |
} |
-int InstructionSequence::AddDeoptimizationEntry( |
+InstructionSequence::StateId InstructionSequence::AddFrameStateDescriptor( |
FrameStateDescriptor* descriptor) { |
int deoptimization_id = static_cast<int>(deoptimization_entries_.size()); |
deoptimization_entries_.push_back(descriptor); |
- return deoptimization_id; |
+ return StateId::FromInt(deoptimization_id); |
} |
-FrameStateDescriptor* InstructionSequence::GetDeoptimizationEntry( |
- int deoptimization_id) { |
- return deoptimization_entries_[deoptimization_id]; |
+FrameStateDescriptor* InstructionSequence::GetFrameStateDescriptor( |
+ InstructionSequence::StateId state_id) { |
+ return deoptimization_entries_[state_id.ToInt()]; |
} |
-int InstructionSequence::GetDeoptimizationEntryCount() { |
+int InstructionSequence::GetFrameStateDescriptorCount() { |
return static_cast<int>(deoptimization_entries_.size()); |
} |