Reviewers: danno, Jakob, machenbach, Paul Lind, kisg,

Description:
Use C++ style raw (de)allocation in FrameDescription.

TEST=
BUG=

Please review this at https://codereview.chromium.org/26863002/

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

Affected files (+3, -3 lines):
  M src/deoptimizer.h


Index: src/deoptimizer.h
diff --git a/src/deoptimizer.h b/src/deoptimizer.h
index 931082171f9a0d8cfdf09c99e4c20f21a27a78c2..09e152fc6d6f649248d491138721401eb689652a 100644
--- a/src/deoptimizer.h
+++ b/src/deoptimizer.h
@@ -466,15 +466,15 @@ class FrameDescription {
   void* operator new(size_t size, uint32_t frame_size) {
// Subtracts kPointerSize, as the member frame_content_ already supplies
     // the first element of the area to store the frame.
-    return malloc(size + frame_size - kPointerSize);
+    return ::operator new(size + frame_size - kPointerSize);
   }

   void operator delete(void* pointer, uint32_t frame_size) {
-    free(pointer);
+    ::operator delete(pointer);
   }

   void operator delete(void* description) {
-    free(description);
+    ::operator delete(description);
   }

   uint32_t GetFrameSize() const {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to