Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 088a9c9a7ed1409ba31667608a3ecdd8b1e8f6a2..f28d1ceed32efe950276c21ecd949384ad0942b3 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -377,6 +377,7 @@ void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) { |
int length = bailout_entries_.length(); |
Handle<DeoptimizationOutputData> data = |
DeoptimizationOutputData::New(isolate(), length, TENURED); |
+ bailout_entries_.Sort(&BailoutEntry::CompareBailoutId); |
for (int i = 0; i < length; i++) { |
data->SetAstId(i, bailout_entries_[i].id); |
data->SetPcAndState(i, Smi::FromInt(bailout_entries_[i].pc_and_state)); |