Commit 92713cc3 authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

[debug] remove some dead code.

R=jgruber@chromium.org

Change-Id: I07b748990f3e23cfedb0fd0cf8dce62f21a309bd
Reviewed-on: https://chromium-review.googlesource.com/631722Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47569}
parent 9cd0c8ea
......@@ -225,16 +225,6 @@ void BreakIterator::ClearDebugBreak() {
bytecode_array->set(code_offset(), original->get(code_offset()));
}
bool BreakIterator::IsDebugBreak() {
DebugBreakType debug_break_type = GetDebugBreakType();
if (debug_break_type == DEBUGGER_STATEMENT) return false;
DCHECK(debug_break_type >= DEBUG_BREAK_SLOT);
BytecodeArray* bytecode_array = debug_info_->DebugBytecodeArray();
interpreter::Bytecode bytecode =
interpreter::Bytecodes::FromByte(bytecode_array->get(code_offset()));
return interpreter::Bytecodes::IsDebugBreak(bytecode);
}
BreakLocation BreakIterator::GetBreakLocation() {
Handle<AbstractCode> code(
AbstractCode::cast(debug_info_->DebugBytecodeArray()));
......@@ -1037,14 +1027,6 @@ void Debug::ClearOneShot() {
}
}
bool MatchingCodeTargets(Code* target1, Code* target2) {
if (target1 == target2) return true;
if (target1->kind() != target2->kind()) return false;
return target1->is_handler() || target1->is_inline_cache_stub();
}
class RedirectActiveFunctions : public ThreadVisitor {
public:
explicit RedirectActiveFunctions(SharedFunctionInfo* shared)
......
......@@ -128,7 +128,6 @@ class BreakIterator {
inline int position() const { return position_; }
inline int statement_position() const { return statement_position_; }
bool IsDebugBreak();
void ClearDebugBreak();
void SetDebugBreak();
......
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