Make a static non-POD object a static raw pointer instead.
Change it to a plain static pointer and initialize lazy. BUG=83856 TEST=None R=ager@chromium.org,mnaganov@chromium.org Signed-off-by: Thiago Farina <tfarina@chromium.org> git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9120 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
9e7f24a739
commit
5105a20dd7
@ -133,9 +133,11 @@ v8::Handle<v8::Value> ExternalizeStringExtension::IsAscii(
|
|||||||
|
|
||||||
|
|
||||||
void ExternalizeStringExtension::Register() {
|
void ExternalizeStringExtension::Register() {
|
||||||
static ExternalizeStringExtension externalize_extension;
|
static ExternalizeStringExtension* externalize_extension = NULL;
|
||||||
|
if (externalize_extension == NULL)
|
||||||
|
externalize_extension = new ExternalizeStringExtension;
|
||||||
static v8::DeclareExtension externalize_extension_declaration(
|
static v8::DeclareExtension externalize_extension_declaration(
|
||||||
&externalize_extension);
|
externalize_extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
} } // namespace v8::internal
|
} } // namespace v8::internal
|
||||||
|
Loading…
Reference in New Issue
Block a user