[debugger] remove obsolete work-around for return position.

R=jgruber@chromium.org

Review-Url: https://codereview.chromium.org/2168883002
Cr-Commit-Position: refs/heads/master@{#37948}
This commit is contained in:
yangguo 2016-07-21 06:55:37 -07:00 committed by Commit bot
parent 7f07809c2c
commit 767d7fff61

View File

@ -80,19 +80,7 @@ BreakLocation::BreakLocation(Handle<DebugInfo> debug_info, DebugBreakType type,
code_offset_(code_offset),
type_(type),
position_(position),
statement_position_(statement_position) {
if (type == DEBUG_BREAK_SLOT_AT_RETURN) {
int return_position = 0;
SharedFunctionInfo* shared = debug_info->shared();
if (shared->HasSourceCode()) {
return_position =
std::max(shared->end_position() - 1, shared->start_position());
}
// TODO(yangguo): find out why return position is wrong for liveedit.
position_ = return_position;
statement_position_ = return_position;
}
}
statement_position_(statement_position) {}
BreakLocation::Iterator* BreakLocation::GetIterator(
Handle<DebugInfo> debug_info, BreakLocatorType type) {