Revision: 10554
Author:   [email protected]
Date:     Mon Jan 30 07:24:35 2012
Log:      Fix dictionary size for type feedback oracle.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/9293005
http://code.google.com/p/v8/source/detail?r=10554

Modified:
 /branches/bleeding_edge/src/type-info.cc

=======================================
--- /branches/bleeding_edge/src/type-info.cc    Fri Jan 27 05:03:19 2012
+++ /branches/bleeding_edge/src/type-info.cc    Mon Jan 30 07:24:35 2012
@@ -565,8 +565,9 @@
 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

Reply via email to