Reviewers: Erik Corry, Vyacheslav Egorov,
Description:
Fix dictionary size for type feedback oracle.
[email protected]
Please review this at https://chromiumcodereview.appspot.com/9293005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/type-info.cc
Index: src/type-info.cc
diff --git a/src/type-info.cc b/src/type-info.cc
index
3af0073b13c2f2ce736a683d8e3484ff03c3c6cd..e663998ccbca1649988cc0f599e1f86e1b5d637a
100644
--- a/src/type-info.cc
+++ b/src/type-info.cc
@@ -565,8 +565,9 @@ void TypeFeedbackOracle::GetRelocInfos(Handle<Code>
code,
void TypeFeedbackOracle::CreateDictionary(Handle<Code> code,
ZoneList<RelocInfo>* infos) {
DisableAssertNoAllocation allocation_allowed;
+ int length = infos->length() + code->type_feedback_cells()->CellCount();
byte* old_start = code->instruction_start();
- dictionary_ = FACTORY->NewUnseededNumberDictionary(infos->length());
+ dictionary_ = FACTORY->NewUnseededNumberDictionary(length);
byte* new_start = code->instruction_start();
RelocateRelocInfos(infos, old_start, new_start);
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev