Changeset 6452 in webkit for trunk/JavaScriptCore/kjs/context.h


Ignore:
Timestamp:
Apr 22, 2004, 9:53:36 AM (21 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Darin.

Preliminary change for conservative GC. Create "protected"
subclasses to GC-protect objects when on heap, since we will soon
remove the built-in refcounting of the normal wrapper classes. Use
them where needed.

  • JavaScriptCore.pbproj/project.pbxproj:
  • kjs/context.h:
  • kjs/internal.h: (KJS::InterpreterImp::globalObject):
  • kjs/interpreter.h:
  • kjs/property_map.cpp:
  • kjs/reference.h:
  • kjs/reference_list.cpp:

WebCore:

Reviewed by Darin.

Preliminary change for conservative GC. Use new "protected"
subclasses to GC-protect objects when on heap, since we will soon
remove the built-in refcounting of the normal wrapper classes.

  • ForwardingHeaders/kjs/protect.h: Added.
  • khtml/ecma/kjs_binding.h:
  • khtml/ecma/kjs_events.h:
  • khtml/ecma/kjs_traversal.h:
  • khtml/ecma/kjs_window.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/context.h

    r3373 r6452  
    2727
    2828#include "function.h"
     29#include "protect.h"
    2930
    3031namespace KJS  {
     
    5960    FunctionImp *_function;
    6061    const List *_arguments;
    61     Object activation;
     62    ProtectedObject activation;
    6263   
    6364    ScopeChain scope;
    64     Object variable;
    65     Object thisVal;
     65    ProtectedObject variable;
     66    ProtectedObject thisVal;
    6667
    6768    LabelStack ls;
Note: See TracChangeset for help on using the changeset viewer.