From: bmeurer@chromium.org Date: Mon, 19 May 2014 07:26:33 +0000 (+0000) Subject: Drop redundant FullCodeGenerator::prepared_bailout_ids_. X-Git-Tag: upstream/4.7.83~9091 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba5763f3cb6a256ad24a3fc23419d6a0f350c98c;p=platform%2Fupstream%2Fv8.git Drop redundant FullCodeGenerator::prepared_bailout_ids_. R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/294543002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21354 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/full-codegen.cc b/src/full-codegen.cc index 7db8a56..6ae927c 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()); } diff --git a/src/full-codegen.h b/src/full-codegen.h index 44dd9b1..148d0c0 100644 --- a/src/full-codegen.h +++ b/src/full-codegen.h @@ -820,7 +820,6 @@ class FullCodeGenerator: public AstVisitor { int module_index_; const ExpressionContext* context_; ZoneList bailout_entries_; - GrowableBitVector prepared_bailout_ids_; ZoneList back_edges_; int ic_total_count_; Handle handler_table_;