Skip to content

Commit

Permalink
Make GetClass final in VMSafePrimitive
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Aug 5, 2024
1 parent 56cb0b2 commit 6de345f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/vmobjects/VMSafePrimitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class VMSafePrimitive : public VMInvokable {

VMSafePrimitive(VMSymbol* sig) : VMInvokable(sig) {}

VMClass* GetClass() const override { return load_ptr(primitiveClass); }
VMClass* GetClass() const final { return load_ptr(primitiveClass); }

inline size_t GetObjectSize() const override {
return sizeof(VMSafePrimitive);
Expand All @@ -32,8 +32,6 @@ class VMSafeUnaryPrimitive : public VMSafePrimitive {
write_barrier(this, sig);
}

VMClass* GetClass() const override { return load_ptr(primitiveClass); }

inline size_t GetObjectSize() const override {
return sizeof(VMSafeUnaryPrimitive);
}
Expand Down Expand Up @@ -62,8 +60,6 @@ class VMSafeBinaryPrimitive : public VMSafePrimitive {
write_barrier(this, sig);
}

VMClass* GetClass() const override { return load_ptr(primitiveClass); }

inline size_t GetObjectSize() const override {
return sizeof(VMSafeBinaryPrimitive);
}
Expand Down Expand Up @@ -92,8 +88,6 @@ class VMSafeTernaryPrimitive : public VMSafePrimitive {
write_barrier(this, sig);
}

VMClass* GetClass() const override { return load_ptr(primitiveClass); }

inline size_t GetObjectSize() const override {
return sizeof(VMSafeTernaryPrimitive);
}
Expand Down

0 comments on commit 6de345f

Please sign in to comment.