Skip to content

Commit a1066f0

Browse files
gengjiawenbnoordhuis
authored andcommitted
v8: include right headers in torque output
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 09603af commit a1066f0

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

deps/v8/src/torque/implementation-visitor.cc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4015,6 +4015,26 @@ void ImplementationVisitor::GenerateExportedMacrosAssembler(
40154015
h_contents << "#include \"torque-generated/csa-types-tq.h\"\n";
40164016
h_contents
40174017
<< "#include \"torque-generated/internal-class-definitions-tq.h\"\n";
4018+
cc_contents << "#include \"src/objects/free-space.h\"\n";
4019+
cc_contents << "#include \"src/objects/js-regexp-string-iterator.h\"\n";
4020+
cc_contents << "#include \"src/objects/ordered-hash-table.h\"\n";
4021+
cc_contents << "#include \"src/objects/property-descriptor-object.h\"\n";
4022+
cc_contents << "#include \"src/objects/synthetic-module.h\"\n";
4023+
cc_contents << "#include \"src/objects/template-objects.h\"\n";
4024+
{
4025+
IfDefScope intl_scope(cc_contents, "V8_INTL_SUPPORT");
4026+
cc_contents << "#include \"src/objects/js-break-iterator.h\"\n";
4027+
cc_contents << "#include \"src/objects/js-collator.h\"\n";
4028+
cc_contents << "#include \"src/objects/js-date-time-format.h\"\n";
4029+
cc_contents << "#include \"src/objects/js-display-names.h\"\n";
4030+
cc_contents << "#include \"src/objects/js-list-format.h\"\n";
4031+
cc_contents << "#include \"src/objects/js-locale.h\"\n";
4032+
cc_contents << "#include \"src/objects/js-number-format.h\"\n";
4033+
cc_contents << "#include \"src/objects/js-plural-rules.h\"\n";
4034+
cc_contents << "#include \"src/objects/js-relative-time-format.h\"\n";
4035+
cc_contents << "#include \"src/objects/js-segment-iterator.h\"\n";
4036+
cc_contents << "#include \"src/objects/js-segmenter.h\"\n";
4037+
}
40184038
cc_contents << "#include \"torque-generated/" << file_name << ".h\"\n";
40194039

40204040
for (SourceId file : SourceFileMap::AllSources()) {

0 commit comments

Comments
 (0)