Fix warnings reported by MSVS for shared library build

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

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9037 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
jkummerow@chromium.org 2011-08-29 09:14:59 +00:00
parent 9e2db4c0f0
commit a549ddf49d
2 changed files with 8 additions and 0 deletions

View File

@ -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);
}

View File

@ -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(); }
};