Commit 6c70ba5d authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[turbofan] Fix bug in call serializer

Due to https://chromium-review.googlesource.com/c/v8/v8/+/1835541 it's
now possible that we reach ProcessApiCall without any arguments hints.

I don't know how to test this in d8.

Bug: chromium:1011727, v8:7790
Change-Id: I556f562515548c6355ff2358e635a2e1fc3974a8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1847157Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64187}
parent 3709a0d9
...@@ -1982,17 +1982,17 @@ void SerializerForBackgroundCompilation::ProcessApiCall( ...@@ -1982,17 +1982,17 @@ void SerializerForBackgroundCompilation::ProcessApiCall(
FunctionTemplateInfoRef target_template_info( FunctionTemplateInfoRef target_template_info(
broker(), handle(target->function_data(), broker()->isolate())); broker(), handle(target->function_data(), broker()->isolate()));
if (!target_template_info.has_call_code()) return; if (!target_template_info.has_call_code()) return;
target_template_info.SerializeCallCode(); target_template_info.SerializeCallCode();
SharedFunctionInfoRef target_ref(broker(), target); SharedFunctionInfoRef target_ref(broker(), target);
target_ref.SerializeFunctionTemplateInfo(); target_ref.SerializeFunctionTemplateInfo();
if (target_template_info.accept_any_receiver() && if (target_template_info.accept_any_receiver() &&
target_template_info.is_signature_undefined()) target_template_info.is_signature_undefined()) {
return; return;
}
CHECK_GE(arguments.size(), 1); if (arguments.empty()) return;
Hints const& receiver_hints = arguments[0]; Hints const& receiver_hints = arguments[0];
for (auto hint : receiver_hints.constants()) { for (auto hint : receiver_hints.constants()) {
if (hint->IsUndefined()) { if (hint->IsUndefined()) {
......
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