Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index d35532f04583f2fcf6ba934d87d42cae3c481d4c..06a056a9173e372f117f5bcbc37e233ca75f8b88 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 = |