Ignore:
Timestamp:
Jun 4, 2009, 10:30:23 AM (16 years ago)
Author:
[email protected]
Message:

2009-06-04 Zoltan Horvath <[email protected]>

Reviewed by Darin Adler.

HashTable class (JavaScriptCore/wtf/HashTable.h) doesn't instantiated by 'new', so
inheritance was removed. HashTable struct has been instantiated by operator new in
JSGlobalData.cpp:106.
HashTable couldn't inherited from FastAllocBase since struct with inheritance is
no longer POD, so HashTable struct has been instantiated by fastNew, destroyed by
fastDelete.

  • interpreter/Interpreter.h:
  • runtime/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData): (JSC::JSGlobalData::~JSGlobalData):
  • wtf/HashTable.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/HashTable.h

    r44161 r44417  
    2424
    2525#include "FastMalloc.h"
    26 #include "FastAllocBase.h"
    2726#include "HashTraits.h"
    2827#include <wtf/Assertions.h>
     
    282281
    283282    template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits>
    284     class HashTable : public FastAllocBase {
     283    class HashTable {
    285284    public:
    286285        typedef HashTableIterator<Key, Value, Extractor, HashFunctions, Traits, KeyTraits> iterator;
Note: See TracChangeset for help on using the changeset viewer.