Commit b68f7e4c authored by yangguo's avatar yangguo Committed by Commit bot

[debugger] remove some dead code.

credits to gcov.

R=cbruni@chromium.org

Review URL: https://codereview.chromium.org/1522273003

Cr-Commit-Position: refs/heads/master@{#32877}
parent 7b59723d
......@@ -45,11 +45,6 @@ int FrameInspector::GetParametersCount() {
}
int FrameInspector::expression_count() {
return deoptimized_frame_->expression_count();
}
Object* FrameInspector::GetFunction() {
return is_optimized_ ? deoptimized_frame_->GetFunction() : frame_->function();
}
......
......@@ -21,7 +21,6 @@ class FrameInspector {
~FrameInspector();
int GetParametersCount();
int expression_count();
Object* GetFunction();
Object* GetParameter(int index);
Object* GetExpression(int index);
......
......@@ -300,10 +300,9 @@ void BreakLocation::ClearDebugBreak() {
bool BreakLocation::IsDebugBreak() const {
if (IsDebugBreakSlot()) {
return rinfo().IsPatchedDebugBreakSlotSequence();
}
return false;
if (IsDebuggerStatement()) return false;
DCHECK(IsDebugBreakSlot());
return rinfo().IsPatchedDebugBreakSlotSequence();
}
......@@ -987,14 +986,6 @@ bool Debug::StepNextContinue(BreakLocation* break_location,
}
// Check whether the code object at the specified address is a debug break code
// object.
bool Debug::IsDebugBreak(Address addr) {
Code* code = Code::GetCodeFromTargetAddress(addr);
return code->is_debug_stub();
}
// Simple function for returning the source positions for active break points.
Handle<Object> Debug::GetSourceBreakLocations(
Handle<SharedFunctionInfo> shared,
......
......@@ -438,9 +438,6 @@ class Debug {
Handle<Object> FindSharedFunctionInfoInScript(Handle<Script> script,
int position);
// Returns true if the current stub call is patched to call the debugger.
static bool IsDebugBreak(Address addr);
static Handle<Object> GetSourceBreakLocations(
Handle<SharedFunctionInfo> shared,
BreakPositionAlignment position_aligment);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment