Diff of /sandbox/jlf/trunk/interpreter/classes/StackFrameClass.cpp [r7646] .. [r7647] Maximize Restore

  Switch to side-by-side view

--- a/sandbox/jlf/trunk/interpreter/classes/StackFrameClass.cpp
+++ b/sandbox/jlf/trunk/interpreter/classes/StackFrameClass.cpp
@@ -43,6 +43,7 @@
 /******************************************************************************/
 #include "RexxCore.h"
 #include "StackFrameClass.hpp"
+#include "ProtectedObject.hpp"
 
 RexxClass *StackFrameClass::classInstance = OREF_NULL;   // singleton class instance
 
@@ -56,7 +57,7 @@
 
 
 /**
- * Allocate a new RexxContext object
+ * Allocate a new StackFrame object
  *
  * @param size   The size of the object.
  *
@@ -70,7 +71,23 @@
 
 
 /**
- * Constructor for a RexxContext object.
+ * Allocate a new GC-protected StackFrame object
+ *
+ * @param size   The size of the object.
+ * @param p      The protected object
+ *
+ * @return The newly allocated object.
+ */
+void *StackFrameClass::operator new(size_t size, ProtectedObject &p)
+{
+    /* Get new object                    */
+    p = new_object(size, T_StackFrame);
+    return p;
+}
+
+
+/**
+ * Constructor for a StackFrame object.
  *
  * @param a      The activation we're attached to.
  */