From 04c79e5b9894e766d7edf16c441176450f6406c1 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Thu, 27 Feb 2020 19:34:35 +0800 Subject: [PATCH] v8: include right headers in torque output Co-authored-by: Ben Noordhuis --- common.gypi | 2 +- deps/v8/src/torque/implementation-visitor.cc | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 2362e582ff3805..6d8f37b316a96b 100644 --- a/common.gypi +++ b/common.gypi @@ -39,7 +39,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.6', + 'v8_embedder_string': '-node.7', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/torque/implementation-visitor.cc b/deps/v8/src/torque/implementation-visitor.cc index 73f704bcaa081a..ae6ceb3ccff80c 100644 --- a/deps/v8/src/torque/implementation-visitor.cc +++ b/deps/v8/src/torque/implementation-visitor.cc @@ -3964,6 +3964,26 @@ void ImplementationVisitor::GenerateExportedMacrosAssembler( h_contents << "#include \"torque-generated/csa-types-tq.h\"\n"; h_contents << "#include \"torque-generated/internal-class-definitions-tq.h\"\n"; + cc_contents << "#include \"src/objects/free-space.h\"\n"; + cc_contents << "#include \"src/objects/js-regexp-string-iterator.h\"\n"; + cc_contents << "#include \"src/objects/ordered-hash-table.h\"\n"; + cc_contents << "#include \"src/objects/property-descriptor-object.h\"\n"; + cc_contents << "#include \"src/objects/synthetic-module.h\"\n"; + cc_contents << "#include \"src/objects/template-objects.h\"\n"; + { + IfDefScope intl_scope(cc_contents, "V8_INTL_SUPPORT"); + cc_contents << "#include \"src/objects/js-break-iterator.h\"\n"; + cc_contents << "#include \"src/objects/js-collator.h\"\n"; + cc_contents << "#include \"src/objects/js-date-time-format.h\"\n"; + cc_contents << "#include \"src/objects/js-display-names.h\"\n"; + cc_contents << "#include \"src/objects/js-list-format.h\"\n"; + cc_contents << "#include \"src/objects/js-locale.h\"\n"; + cc_contents << "#include \"src/objects/js-number-format.h\"\n"; + cc_contents << "#include \"src/objects/js-plural-rules.h\"\n"; + cc_contents << "#include \"src/objects/js-relative-time-format.h\"\n"; + cc_contents << "#include \"src/objects/js-segment-iterator.h\"\n"; + cc_contents << "#include \"src/objects/js-segmenter.h\"\n"; + } cc_contents << "#include \"torque-generated/" << file_name << ".h\"\n"; for (SourceId file : SourceFileMap::AllSources()) {