Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 1499277fb27a5c341c0f3d30741a50ec8a5d0a2e..e282a7f87c67fed74dba9b22b715ccb057e987c6 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -61,7 +61,8 @@ CompilationInfo::CompilationInfo(Handle<Script> script, Zone* zone) |
extension_(NULL), |
pre_parse_data_(NULL), |
osr_ast_id_(AstNode::kNoNumber), |
- zone_(zone) { |
+ zone_(zone), |
+ deferred_handles_(NULL) { |
Initialize(BASE); |
} |
@@ -79,7 +80,8 @@ CompilationInfo::CompilationInfo(Handle<SharedFunctionInfo> shared_info, |
extension_(NULL), |
pre_parse_data_(NULL), |
osr_ast_id_(AstNode::kNoNumber), |
- zone_(zone) { |
+ zone_(zone), |
+ deferred_handles_(NULL) { |
Initialize(BASE); |
} |
@@ -97,11 +99,17 @@ CompilationInfo::CompilationInfo(Handle<JSFunction> closure, Zone* zone) |
extension_(NULL), |
pre_parse_data_(NULL), |
osr_ast_id_(AstNode::kNoNumber), |
- zone_(zone) { |
+ zone_(zone), |
+ deferred_handles_(NULL) { |
Initialize(BASE); |
} |
+CompilationInfo::~CompilationInfo() { |
+ delete deferred_handles_; |
+} |
+ |
+ |
// Disable optimization for the rest of the compilation pipeline. |
void CompilationInfo::DisableOptimization() { |
bool is_optimizable_closure = |