Some internal methods are requested when v8 is built as DLL (V8_SHARED), and

they are not available.
Make them no-op (or better yet part of public API).

TEST = Build Chromium with V8_SHARED

Review URL: http://codereview.chromium.org/7004051

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7973 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2011-05-23 06:14:32 +00:00
parent e4509a59b7
commit fe6bdabc07

View File

@ -78,4 +78,13 @@ void I18NExtension::Register() {
static v8::DeclareExtension i18n_extension_declaration(I18NExtension::get());
}
#ifdef V8_SHARED
// We end up dragging in a call to Malloc::FatalProcessOutOfMemory by including
// allocation.h, but that function isn't public V8 API so it's not available
// when v8 is build as DLL.
// Define it as a no-op here.
void Malloced::FatalProcessOutOfMemory() {
}
#endif
} } // namespace v8::internal