Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 7db8a5680edaf27e49fcff5a3c8239d635951392..6ae927c9018a16a5462f2448f5ae79bdc3e997a1 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -452,9 +452,12 @@ void FullCodeGenerator::PrepareForBailoutForId(BailoutId id, State state) { |
unsigned pc_and_state = |
StateField::encode(state) | PcField::encode(masm_->pc_offset()); |
ASSERT(Smi::IsValid(pc_and_state)); |
+#ifdef DEBUG |
+ for (int i = 0; i < bailout_entries_.length(); ++i) { |
+ ASSERT(bailout_entries_[i].id != id); |
+ } |
+#endif |
BailoutEntry entry = { id, pc_and_state }; |
- ASSERT(!prepared_bailout_ids_.Contains(id.ToInt())); |
- prepared_bailout_ids_.Add(id.ToInt(), zone()); |
bailout_entries_.Add(entry, zone()); |
} |