From: jochen@chromium.org Date: Wed, 18 Dec 2013 08:45:17 +0000 (+0000) Subject: Initialize the embedder data array on v8::Context to three elements X-Git-Tag: upstream/4.7.83~11364 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a14787f5098a2d2f6f1ed0c6747e4716d9de271c;p=platform%2Fupstream%2Fv8.git 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 R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/109953004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18335 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc index ac3fbb0..0a9fdcb 100644 --- a/src/bootstrapper.cc +++ b/src/bootstrapper.cc @@ -1302,7 +1302,7 @@ void Genesis::InitializeGlobal(Handle inner_global, native_context()->set_out_of_memory(heap->false_value()); // Initialize the embedder data slot. - Handle embedder_data = factory->NewFixedArray(2); + Handle embedder_data = factory->NewFixedArray(3); native_context()->set_embedder_data(*embedder_data); }