diff --git a/src/vm/IsValidObject.cpp b/src/vm/IsValidObject.cpp index b5a6f306..518bb065 100644 --- a/src/vm/IsValidObject.cpp +++ b/src/vm/IsValidObject.cpp @@ -104,7 +104,7 @@ void obtain_vtables_of_known_classes(VMSymbol* className) { VMInteger* i = new (GetHeap()) VMInteger(0); vt_integer = *(void**) i; - VMMethod* mth = new (GetHeap()) VMMethod(0, 0, 0); + VMMethod* mth = new (GetHeap()) VMMethod(0, 0); vt_method = *(void**) mth; vt_object = *(void**) nilObject; diff --git a/src/vmobjects/VMMethod.cpp b/src/vmobjects/VMMethod.cpp index 24822d83..c50850f6 100644 --- a/src/vmobjects/VMMethod.cpp +++ b/src/vmobjects/VMMethod.cpp @@ -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 diff --git a/src/vmobjects/VMMethod.h b/src/vmobjects/VMMethod.h index 75858dc8..fe10cc23 100644 --- a/src/vmobjects/VMMethod.h +++ b/src/vmobjects/VMMethod.h @@ -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));