Reviewers: Sven Panne,
Description:
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]
Please review this at https://codereview.chromium.org/109953004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/bootstrapper.cc
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index
1d2fb8663379ebab158c6abf2c6733bd86529417..917e2cf0ce874e663fc8819486463ad7a0880872
100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1313,7 +1313,7 @@ void Genesis::InitializeGlobal(Handle<GlobalObject>
inner_global,
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.