Ignore:
Timestamp:
Nov 22, 2002, 11:49:05 PM (23 years ago)
Author:
darin
Message:

JavaScriptCore:

  • replaced List class with a vector rather than a linked list, changed it to use a pool of instances instead of all the nodes allocated off of the heap; gives 10% gain on iBench
  • kjs/list.h: Complete rewrite.
  • kjs/list.cpp: Ditto.
  • kjs/array_object.cpp: (compareWithCompareFunctionForQSort): Go back to doing a clear and two appends here. Fast with the new list implementation.
  • kjs/collector.h: Remove _COLLECTOR hack and just make rootObjectClasses return a const void *.
  • kjs/collector.cpp: Remove _COLLECTOR hack, and various other minor tweaks.

WebCore:

  • khtml/ecma/kjs_window.cpp: Remove _COLLECTOR hack.
  • kwq/WebCoreJavaScript.h:
  • kwq/WebCoreJavaScript.mm: (+[WebCoreJavaScript rootObjectClasses]): Update for name change -- root object classes, not all live object classes.
  • force-js-clean-timestamp: Make sure we don't have more build problems.

WebKit:

  • Misc.subproj/WebCoreStatistics.h:
  • Misc.subproj/WebCoreStatistics.m: (+[WebCoreStatistics javaScriptRootObjectClasses]): Update for name change -- root object classes, not all live object classes.

WebBrowser:

  • Debug/CacheController.m: (-[CacheController refreshJavaScriptStatisticsMatrix]): Update for name change -- root object classes, not all live object classes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r2825 r2843  
    22/*
    33 *  This file is part of the KDE libraries
    4  *  Copyright (C) 1999-2000 Harri Porten ([email protected])
    5  *  Copyright (C) 2001 Peter Kelly ([email protected])
     4 *  Copyright (C) 2002 Apple Computer, Inc.
    65 *
    76 *  This library is free software; you can redistribute it and/or
     
    2120 */
    2221
     22#include "collector.h"
     23
     24#include "value.h"
     25#include "internal.h"
     26
    2327#if APPLE_CHANGES
    24 #define _COLLECTOR
    2528#include <CoreFoundation/CoreFoundation.h>
    2629#include <cxxabi.h>
    2730#endif
    2831
    29 #include <collector.h>
    30 #include <value.h>
    31 #include <internal.h>
    32 
    33 using namespace KJS;
     32namespace KJS {
    3433
    3534// tunable parameters
     
    360359}
    361360
    362 // FIXME: Rename. Root object classes are more useful than live object classes.
    363 CFSetRef Collector::liveObjectClasses()
     361const void *Collector::rootObjectClasses()
    364362{
    365363  CFMutableSetRef classes = CFSetCreateMutable(NULL, 0, &kCFTypeSetCallBacks);
     
    405403
    406404#endif // APPLE_CHANGES
     405
     406} // namespace KJS
Note: See TracChangeset for help on using the changeset viewer.