mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
f87041bf3a
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
40 lines
1,014 B
C++
40 lines
1,014 B
C++
/*
|
|
* Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Runtime/Object.h>
|
|
|
|
namespace JS {
|
|
|
|
class AtomicsObject : public Object {
|
|
JS_OBJECT(AtomicsObject, Object);
|
|
GC_DECLARE_ALLOCATOR(AtomicsObject);
|
|
|
|
public:
|
|
virtual void initialize(Realm&) override;
|
|
virtual ~AtomicsObject() override = default;
|
|
|
|
private:
|
|
explicit AtomicsObject(Realm&);
|
|
|
|
JS_DECLARE_NATIVE_FUNCTION(add);
|
|
JS_DECLARE_NATIVE_FUNCTION(and_);
|
|
JS_DECLARE_NATIVE_FUNCTION(compare_exchange);
|
|
JS_DECLARE_NATIVE_FUNCTION(exchange);
|
|
JS_DECLARE_NATIVE_FUNCTION(is_lock_free);
|
|
JS_DECLARE_NATIVE_FUNCTION(load);
|
|
JS_DECLARE_NATIVE_FUNCTION(or_);
|
|
JS_DECLARE_NATIVE_FUNCTION(pause);
|
|
JS_DECLARE_NATIVE_FUNCTION(store);
|
|
JS_DECLARE_NATIVE_FUNCTION(sub);
|
|
JS_DECLARE_NATIVE_FUNCTION(wait);
|
|
JS_DECLARE_NATIVE_FUNCTION(wait_async);
|
|
JS_DECLARE_NATIVE_FUNCTION(notify);
|
|
JS_DECLARE_NATIVE_FUNCTION(xor_);
|
|
};
|
|
|
|
}
|