12#ifndef VM_VALUE_CLOSURE_HPP
13#define VM_VALUE_CLOSURE_HPP
91 return A.m_page_addr < B.m_page_addr;
The ArkScript virtual machine, executing ArkScript bytecode.
bool hasFieldEndingWith(const std::string &end, VM &vm) const
Used when generating error messages in the VM, to see if a symbol might have been wrongly fully quali...
const std::shared_ptr< Scope > & scopePtr() const
std::string toString(VM &vm) const noexcept
Print the closure to a string.
PageAddr_t pageAddr() const
friend ARK_API_INLINE bool operator<(const Closure &A, const Closure &B) noexcept
friend ARK_API bool operator==(const Closure &A, const Closure &B) noexcept
Scope & refScope() const noexcept
std::shared_ptr< Scope > m_scope
const Scope & scope() const noexcept
A class to handle the VM scope more efficiently.
bool operator<(const Namespace &, const Namespace &)