[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}
This commit is contained in:
yangguo 2015-12-15 22:32:40 -08:00 committed by Commit bot
parent 7b59723d68
commit b68f7e4c33
4 changed files with 3 additions and 21 deletions

View File

@ -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();
}

View File

@ -21,7 +21,6 @@ class FrameInspector {
~FrameInspector();
int GetParametersCount();
int expression_count();
Object* GetFunction();
Object* GetParameter(int index);
Object* GetExpression(int index);

View File

@ -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,

View File

@ -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);