#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif
#ifndef V8_DEBUG_DEBUG_WASM_OBJECTS_H_
#define V8_DEBUG_DEBUG_WASM_OBJECTS_H_
#include <memory>
#include "src/objects/js-objects.h"
#include "src/objects/object-macros.h"
namespace v8 {
namespace debug {
class ScopeIterator;
}
namespace internal {
namespace wasm {
class WasmValue;
}
#include "torque-generated/src/debug/debug-wasm-objects-tq.inc"
class ArrayList;
class WasmFrame;
class WasmInstanceObject;
#if V8_ENABLE_DRUMBRAKE
class WasmInterpreterEntryFrame;
#endif
class WasmModuleObject;
class WasmTableObject;
class WasmValueObject : public JSObject { … };
Handle<JSObject> GetWasmDebugProxy(WasmFrame* frame);
std::unique_ptr<debug::ScopeIterator> GetWasmScopeIterator(WasmFrame* frame);
#if V8_ENABLE_DRUMBRAKE
std::unique_ptr<debug::ScopeIterator> GetWasmInterpreterScopeIterator(
WasmInterpreterEntryFrame* frame);
#endif
Handle<String> GetWasmFunctionDebugName(
Isolate* isolate, DirectHandle<WasmTrustedInstanceData> instance_data,
uint32_t func_index);
Handle<ArrayList> AddWasmInstanceObjectInternalProperties(
Isolate* isolate, Handle<ArrayList> result,
Handle<WasmInstanceObject> instance);
Handle<ArrayList> AddWasmModuleObjectInternalProperties(
Isolate* isolate, Handle<ArrayList> result,
DirectHandle<WasmModuleObject> module_object);
Handle<ArrayList> AddWasmTableObjectInternalProperties(
Isolate* isolate, Handle<ArrayList> result,
DirectHandle<WasmTableObject> table);
}
}
#include "src/objects/object-macros-undef.h"
#endif