// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_OBJECTS_SOURCE_TEXT_MODULE_H_ #define V8_OBJECTS_SOURCE_TEXT_MODULE_H_ #include "src/objects/contexts.h" #include "src/objects/module.h" #include "src/objects/promise.h" #include "src/zone/zone-containers.h" #include "torque-generated/bit-fields.h" // Has to be the last include (doesn't have include guards): #include "src/objects/object-macros.h" namespace v8 { namespace internal { class UnorderedModuleSet; class StructBodyDescriptor; #include "torque-generated/src/objects/source-text-module-tq.inc" // The runtime representation of an ECMAScript Source Text Module Record. // https://tc39.github.io/ecma262/#sec-source-text-module-records class SourceTextModule : public TorqueGeneratedSourceTextModule { public: NEVER_READ_ONLY_SPACE DECL_VERIFIER(SourceTextModule) DECL_PRINTER(SourceTextModule) // The shared function info in case {status} is not kEvaluating, kEvaluated or // kErrored. Tagged GetSharedFunctionInfo() const; Tagged