summaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/script.h')
-rw-r--r--deps/v8/src/objects/script.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/deps/v8/src/objects/script.h b/deps/v8/src/objects/script.h
index 2d9e4bca78..935241a149 100644
--- a/deps/v8/src/objects/script.h
+++ b/deps/v8/src/objects/script.h
@@ -5,6 +5,8 @@
#ifndef V8_OBJECTS_SCRIPT_H_
#define V8_OBJECTS_SCRIPT_H_
+#include <memory>
+
#include "src/objects/fixed-array.h"
#include "src/objects/objects.h"
#include "src/objects/struct.h"
@@ -101,9 +103,21 @@ class Script : public Struct {
// [source_mapping_url]: sourceMappingURL magic comment
DECL_ACCESSORS(source_mapping_url, Object)
- // [wasm_module_object]: the wasm module object this script belongs to.
+ // [wasm_breakpoint_infos]: the list of {BreakPointInfo} objects describing
+ // all WebAssembly breakpoints for modules/instances managed via this script.
+ // This must only be called if the type of this script is TYPE_WASM.
+ DECL_ACCESSORS(wasm_breakpoint_infos, FixedArray)
+ inline bool has_wasm_breakpoint_infos() const;
+
+ // [wasm_native_module]: the wasm {NativeModule} this script belongs to.
+ // This must only be called if the type of this script is TYPE_WASM.
+ DECL_ACCESSORS(wasm_managed_native_module, Object)
+ inline wasm::NativeModule* wasm_native_module() const;
+
+ // [wasm_weak_instance_list]: the list of all {WasmInstanceObject} being
+ // affected by breakpoints that are managed via this script.
// This must only be called if the type of this script is TYPE_WASM.
- DECL_ACCESSORS(wasm_module_object, Object)
+ DECL_ACCESSORS(wasm_weak_instance_list, WeakArrayList)
// [host_defined_options]: Options defined by the embedder.
DECL_ACCESSORS(host_defined_options, FixedArray)