Commit fed741ec authored by Florian Sattler's avatar Florian Sattler Committed by Commit Bot

[debug] Refactored function param to be const ref

Bug: v8:8015
Change-Id: I3a3bd587e1f126b533a1eaea1ff9f74c2d0102b0
Reviewed-on: https://chromium-review.googlesource.com/1209847Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Florian Sattler <sattlerf@google.com>
Cr-Commit-Position: refs/heads/master@{#55753}
parent 4e71b6ba
......@@ -1543,7 +1543,7 @@ void Debug::FindDebugInfo(Handle<DebugInfo> debug_info,
UNREACHABLE();
}
void Debug::ClearAllDebugInfos(DebugInfoClearFunction clear_function) {
void Debug::ClearAllDebugInfos(const DebugInfoClearFunction& clear_function) {
DebugInfoListNode* prev = nullptr;
DebugInfoListNode* current = debug_info_list_;
while (current != nullptr) {
......
......@@ -451,7 +451,7 @@ class Debug {
// Wraps logic for clearing and maybe freeing all debug infos.
typedef std::function<void(Handle<DebugInfo>)> DebugInfoClearFunction;
void ClearAllDebugInfos(DebugInfoClearFunction clear_function);
void ClearAllDebugInfos(const DebugInfoClearFunction& clear_function);
void FindDebugInfo(Handle<DebugInfo> debug_info, DebugInfoListNode** prev,
DebugInfoListNode** curr);
......
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