Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index af9459566dd06f862e38a7837d4c60ab4d62fabc..62eedc268fdf96843725228b9197a80221b73c23 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); } |
Yang
2012/11/23 15:46:20
We use a SmartPointer to delete CompilationInfoWit
|
+ |
explicit CompilationInfoWithZone(Handle<Script> script) |
: CompilationInfo(script, &zone_), |
zone_(script->GetIsolate()), |