Index: src/debug/debug-frames.cc |
diff --git a/src/debug/debug-frames.cc b/src/debug/debug-frames.cc |
index b1a8af256934d3e5d8ba93c49a9bce0d7c5e8d62..e683fa2d15c0fd11a8515d52ebe1c907ca7d5fd1 100644 |
--- a/src/debug/debug-frames.cc |
+++ b/src/debug/debug-frames.cc |
@@ -31,15 +31,13 @@ FrameInspector::FrameInspector(JavaScriptFrame* frame, |
} |
} |
- |
FrameInspector::~FrameInspector() { |
// Get rid of the calculated deoptimized frame if any. |
- if (deoptimized_frame_ != NULL) { |
- Deoptimizer::DeleteDebuggerInspectableFrame(deoptimized_frame_, isolate_); |
+ if (deoptimized_frame_ != nullptr) { |
Benedikt Meurer
2016/06/29 09:56:45
You don't need this check, delete already does a n
|
+ delete deoptimized_frame_; |
} |
} |
- |
int FrameInspector::GetParametersCount() { |
return is_optimized_ ? deoptimized_frame_->parameters_count() |
: frame_->ComputeParametersCount(); |