Commit 42ff412a authored by Leszek Swirski's avatar Leszek Swirski Committed by V8 LUCI CQ

[ic] Fix LoadHandler printing

LoadHandler can also contain Code handlers (for StringLength and
FunctionPrototype).

Fixed: v8:12911
Change-Id: I2fd2dcb65a3283e9a748a1b1cf382f6eeef1f263
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3669253
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80777}
parent 38a0bf1e
......@@ -514,6 +514,9 @@ void LoadHandler::PrintHandler(Object handler, std::ostream& os) {
os << "LoadHandler(Smi)(";
PrintSmiLoadHandler(raw_handler, os);
os << ")";
} else if (handler.IsCodeT()) {
os << "LoadHandler(Code)("
<< Builtins::name(CodeT::cast(handler).builtin_id()) << ")";
} else {
LoadHandler load_handler = LoadHandler::cast(handler);
int raw_handler = load_handler.smi_handler().ToSmi().value();
......
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