mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibJS: Rename Function => FunctionObject
This commit is contained in:
parent
e389ae3c97
commit
ba9d5c4d54
114 changed files with 263 additions and 262 deletions
|
@ -28,7 +28,7 @@ JS::Value WebAssemblyMemoryConstructor::call()
|
|||
return {};
|
||||
}
|
||||
|
||||
JS::Value WebAssemblyMemoryConstructor::construct(Function&)
|
||||
JS::Value WebAssemblyMemoryConstructor::construct(FunctionObject&)
|
||||
{
|
||||
auto& vm = this->vm();
|
||||
auto& global_object = this->global_object();
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
virtual ~WebAssemblyMemoryConstructor() override;
|
||||
|
||||
virtual JS::Value call() override;
|
||||
virtual JS::Value construct(JS::Function& new_target) override;
|
||||
virtual JS::Value construct(JS::FunctionObject& new_target) override;
|
||||
|
||||
private:
|
||||
virtual bool has_constructor() const override { return true; }
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
// so ideally this would be a refcounted object, shared between
|
||||
// WebAssemblyModuleObject's and WebAssemblyInstantiatedModuleObject's.
|
||||
struct ModuleCache {
|
||||
HashMap<Wasm::FunctionAddress, JS::Function*> function_instances;
|
||||
HashMap<Wasm::FunctionAddress, JS::FunctionObject*> function_instances;
|
||||
HashMap<Wasm::MemoryAddress, WebAssemblyMemoryObject*> memory_instances;
|
||||
};
|
||||
struct GlobalModuleCache {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue