Revision: 18335
Author:   [email protected]
Date:     Wed Dec 18 08:45:17 2013 UTC
Log: Initialize the embedder data array on v8::Context to three elements

Blink uses three slots, so instead of having to reallocate the array
everytime, make it big enough to begin with.

BUG=none
LOG=n
[email protected]

Review URL: https://codereview.chromium.org/109953004
http://code.google.com/p/v8/source/detail?r=18335

Modified:
 /branches/bleeding_edge/src/bootstrapper.cc

=======================================
--- /branches/bleeding_edge/src/bootstrapper.cc Wed Dec 11 13:51:48 2013 UTC
+++ /branches/bleeding_edge/src/bootstrapper.cc Wed Dec 18 08:45:17 2013 UTC
@@ -1302,7 +1302,7 @@
   native_context()->set_out_of_memory(heap->false_value());

   // Initialize the embedder data slot.
-  Handle<FixedArray> embedder_data = factory->NewFixedArray(2);
+  Handle<FixedArray> embedder_data = factory->NewFixedArray(3);
   native_context()->set_embedder_data(*embedder_data);
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to