mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibJS: Remove expensive dead code in get_source_range
This was forgotten when cleaning up debug prints but has a huge performance impact (around 1s / 15% on test-js).
This commit is contained in:
parent
7a83870905
commit
969d9e1fd3
1 changed files with 1 additions and 3 deletions
|
@ -1174,11 +1174,9 @@ static Optional<UnrealizedSourceRange> get_source_range(ExecutionContext const*
|
||||||
// JIT frame
|
// JIT frame
|
||||||
for (auto address : native_stack) {
|
for (auto address : native_stack) {
|
||||||
auto range = native_executable->get_source_range(*context->executable, address);
|
auto range = native_executable->get_source_range(*context->executable, address);
|
||||||
if (range.has_value()) {
|
if (range.has_value())
|
||||||
auto realized = range->realize();
|
|
||||||
return range;
|
return range;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue