Some internal methods are requested when v8 is built as DLL (V8_SHARED), and
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 May 2011 06:14:32 +0000 (06:14 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 May 2011 06:14:32 +0000 (06:14 +0000)
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

src/extensions/experimental/i18n-extension.cc

index 79affafdbcac8535d1996dcfcea8497296af89c3..200fecfb6e7012bfc606d236cb846d9b01886256 100644 (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