Reviewers: Yang,

Message:
PTAL.

Darin: this is just FYI.

Description:
Fix warnings reported by MSVS for shared library build


TEST=compiles without warnings (esp. the shared-lib build with Visual Studio)


Please review this at http://codereview.chromium.org/7745053/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/deoptimizer.h
  M src/zone.h


Index: src/deoptimizer.h
diff --git a/src/deoptimizer.h b/src/deoptimizer.h
index 033d92480bd8a113f0c4c39e1a3633ec6f56a6ca..8641261b1738d4610cee5f115ad1591dd1c80bcd 100644
--- a/src/deoptimizer.h
+++ b/src/deoptimizer.h
@@ -336,6 +336,10 @@ class FrameDescription {
     return malloc(size + frame_size - kPointerSize);
   }

+  void operator delete(void* pointer, uint32_t frame_size) {
+    free(pointer);
+  }
+
   void operator delete(void* description) {
     free(description);
   }
Index: src/zone.h
diff --git a/src/zone.h b/src/zone.h
index 4dfd01d3589b93434fd18acbef2406381b452b31..f60ac0d3efc9363a6ecbbe1911d41a05b33fd6bc 100644
--- a/src/zone.h
+++ b/src/zone.h
@@ -152,6 +152,7 @@ class ZoneObject {
   // ZoneObjects should never be deleted individually; use
   // Zone::DeleteAll() to delete all zone objects in one go.
   void operator delete(void*, size_t) { UNREACHABLE(); }
+  void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); }
 };


@@ -197,6 +198,9 @@ class ZoneList: public List<T, ZoneListAllocationPolicy> {
       : List<T, ZoneListAllocationPolicy>(other.length()) {
     AddAll(other);
   }
+
+  void operator delete(void* pointer) { UNREACHABLE(); }
+  void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); }
 };




--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to