Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index c47b7f2e9851723ccda2fb59eb9333bd2ed533f4..849dd50d85059a3805ccd87603f862ec9e48b75f 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -871,6 +871,11 @@ class HGraphBuilder: public AstVisitor { |
void VisitDeclarations(ZoneList<Declaration*>* declarations); |
+ void* operator new(size_t size, Zone* zone) { |
+ return zone->New(size); |
+ } |
+ void operator delete(void* ptr) { } |
+ |
private: |
// Type of a member function that generates inline code for a native function. |
typedef void (HGraphBuilder::*InlineFunctionGenerator)(CallRuntime* call); |