From 3c251ec924519cc11f20611c7a7c7924f2268f94 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Mon, 26 Nov 2012 08:47:48 +0000 Subject: [PATCH] Fix valgrind warnings. BUG= Review URL: https://chromiumcodereview.appspot.com/11418138 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13050 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/compiler.h | 2 ++ src/optimizing-compiler-thread.cc | 3 ++- src/optimizing-compiler-thread.h | 13 ++++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/compiler.h b/src/compiler.h index af94595..62eedc2 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -293,6 +293,8 @@ class CompilationInfo { // Zone on construction and deallocates it on exit. class CompilationInfoWithZone: public CompilationInfo { public: + INLINE(void* operator new(size_t size)) { return Malloced::New(size); } + explicit CompilationInfoWithZone(Handle