Reviewed by John.
[WebKit-https.git] / JavaScriptCore / kjs / context.h
index 5b29d2167952b95bc424ef8e3549d8d3a7150c40..3ad2a1064d925e9652e26eb1420092c76a7802a7 100644 (file)
@@ -59,11 +59,14 @@ namespace KJS  {
     ContextImp *_callingContext;
     FunctionImp *_function;
     const List *_arguments;
-    ProtectedObject activation;
+    // because ContextImp is always allocated on the stack,
+    // there is no need to protect various pointers from conservative
+    // GC since they will be caught by the conservative sweep anyway!
+    Object activation;
     
     ScopeChain scope;
-    ProtectedObject variable;
-    ProtectedObject thisVal;
+    Object variable;
+    Object thisVal;
 
     LabelStack ls;
     CodeType codeType;