Skip to content

Commit

Permalink
Remove unused nof argument from VMMethod constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Jul 7, 2024
1 parent 856935d commit 36d0342
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/vm/IsValidObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void obtain_vtables_of_known_classes(VMSymbol* className) {
VMInteger* i = new (GetHeap<HEAP_CLS>()) VMInteger(0);
vt_integer = *(void**) i;

VMMethod* mth = new (GetHeap<HEAP_CLS>()) VMMethod(0, 0, 0);
VMMethod* mth = new (GetHeap<HEAP_CLS>()) VMMethod(0, 0);
vt_method = *(void**) mth;
vt_object = *(void**) nilObject;

Expand Down
4 changes: 2 additions & 2 deletions src/vmobjects/VMMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const long VMMethod::VMMethodNumberOfFields = 8;
const long VMMethod::VMMethodNumberOfFields = 7;
#endif

VMMethod::VMMethod(long bcCount, long numberOfConstants, long nof) :
VMInvokable(nof + VMMethodNumberOfFields) {
VMMethod::VMMethod(long bcCount, long numberOfConstants) :
VMInvokable(VMMethodNumberOfFields) {
#ifdef UNSAFE_FRAME_OPTIMIZATION
cachedFrame = nullptr;
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/vmobjects/VMMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class VMMethod: public VMInvokable {
public:
typedef GCMethod Stored;

VMMethod(long bcCount, long numberOfConstants, long nof = 0);
VMMethod(long bcCount, long numberOfConstants);

inline long GetNumberOfLocals() const {
return INT_VAL(load_ptr(numberOfLocals));
Expand Down

0 comments on commit 36d0342

Please sign in to comment.