mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:57:44 +00:00
LibJS: Remove Shape::global_object() and Object::global_object()
Same reason as in commit 275dea9
.
This commit is contained in:
parent
4f436bd323
commit
72730422bb
7 changed files with 3 additions and 16 deletions
|
@ -38,11 +38,6 @@ private:
|
|||
JS_DECLARE_NATIVE_FUNCTION(unescape);
|
||||
};
|
||||
|
||||
inline GlobalObject* Shape::global_object() const
|
||||
{
|
||||
return &static_cast<GlobalObject&>(m_realm.global_object());
|
||||
}
|
||||
|
||||
template<>
|
||||
inline bool Object::fast_is<GlobalObject>() const { return is_global_object(); }
|
||||
|
||||
|
|
|
@ -34,11 +34,6 @@ Object* Object::create(Realm& realm, Object* prototype)
|
|||
return realm.heap().allocate<Object>(realm, *prototype);
|
||||
}
|
||||
|
||||
GlobalObject& Object::global_object() const
|
||||
{
|
||||
return *shape().global_object();
|
||||
}
|
||||
|
||||
Object::Object(GlobalObjectTag, Realm& realm)
|
||||
{
|
||||
// This is the global object
|
||||
|
|
|
@ -186,8 +186,6 @@ public:
|
|||
Shape& shape() { return *m_shape; }
|
||||
Shape const& shape() const { return *m_shape; }
|
||||
|
||||
GlobalObject& global_object() const;
|
||||
|
||||
void ensure_shape_is_unique();
|
||||
|
||||
template<typename T>
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
#include <LibJS/Heap/DeferGC.h>
|
||||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
#include <LibJS/Runtime/Shape.h>
|
||||
#include <LibJS/Runtime/VM.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
|
|
@ -62,7 +62,6 @@ public:
|
|||
Shape* create_unique_clone() const;
|
||||
|
||||
Realm& realm() const { return m_realm; }
|
||||
GlobalObject* global_object() const;
|
||||
|
||||
Object* prototype() { return m_prototype; }
|
||||
Object const* prototype() const { return m_prototype; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue