[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:
parent
7f07809c2c
commit
767d7fff61
@ -80,19 +80,7 @@ BreakLocation::BreakLocation(Handle<DebugInfo> debug_info, DebugBreakType type,
|
|||||||
code_offset_(code_offset),
|
code_offset_(code_offset),
|
||||||
type_(type),
|
type_(type),
|
||||||
position_(position),
|
position_(position),
|
||||||
statement_position_(statement_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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
BreakLocation::Iterator* BreakLocation::GetIterator(
|
BreakLocation::Iterator* BreakLocation::GetIterator(
|
||||||
Handle<DebugInfo> debug_info, BreakLocatorType type) {
|
Handle<DebugInfo> debug_info, BreakLocatorType type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user