Commit 05056b27 authored by Camillo Bruni's avatar Camillo Bruni Committed by V8 LUCI CQ

[torque] Add source positions for generated instance types

Change-Id: I13276e389fa71fb3de2ab3f7b685b021418acb1e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3211895
Auto-Submit: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77335}
parent 8c598ace
......@@ -327,8 +327,9 @@ void PrintInstanceTypes(InstanceTypeTree* root, std::ostream& definitions,
}
if (root->num_own_values == 1) {
definitions << inner_indent << "V(" << type_name << ", " << root->value
<< ") \\\n";
values << " V(" << type_name << ") \\\n";
<< ") /* " << root->type->GetPosition() << " */\\\n";
values << " V(" << type_name << ") /* " << root->type->GetPosition()
<< " */\\\n";
std::ostream& type_checker_list =
root->type->HasUndefinedLayout()
? (root->num_values == 1 ? only_declared_single_instance_types
......@@ -336,7 +337,7 @@ void PrintInstanceTypes(InstanceTypeTree* root, std::ostream& definitions,
: (root->num_values == 1 ? fully_defined_single_instance_types
: fully_defined_multiple_instance_types);
type_checker_list << " V(" << root->type->name() << ", " << type_name
<< ") \\\n";
<< ") /* " << root->type->GetPosition() << " */ \\\n";
}
for (auto& child : root->children) {
PrintInstanceTypes(child.get(), definitions, values,
......
This diff is collapsed.
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