Commit ae78e0c0 authored by Victor Gomes's avatar Victor Gomes Committed by Commit Bot

[codegen] Add DCHECK in GetRegisterParameter

Change-Id: I49fad3cef572a1f5b3d01d8245335622cbb4be0b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2594778
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71800}
parent 15c227be
......@@ -296,6 +296,7 @@ class V8_EXPORT_PRIVATE CallInterfaceDescriptor {
}
Register GetRegisterParameter(int index) const {
DCHECK_LT(index, data()->register_param_count());
return data()->register_param(index);
}
......
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