Ignore:
Timestamp:
Apr 23, 2008, 2:41:10 PM (17 years ago)
Author:
Darin Adler
Message:

2008-04-22 Darin Adler <Darin Adler>

Reviewed by Anders.

  • simplify use of HashTraits to prepare for some upcoming hash table changes
  • kjs/SymbolTable.h: Made SymbolTableIndexHashTraits derive from HashTraits<size_t> and specialize only the empty value.
File:
1 edited

Legend:

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

    r29663 r32449  
    11/*
    2  * Copyright (C) 2007 Apple Inc. All rights reserved.
     2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    5353    static ALWAYS_INLINE size_t missingSymbolMarker() { return std::numeric_limits<size_t>::max(); }
    5454
    55     struct SymbolTableIndexHashTraits {
    56         typedef size_t TraitType;
    57         typedef SymbolTableIndexHashTraits StorageTraits;
     55    struct SymbolTableIndexHashTraits : HashTraits<size_t> {
    5856        static size_t emptyValue() { return missingSymbolMarker(); }
    59         static const bool emptyValueIsZero = false;
    60         static const bool needsDestruction = false;
    61         static const bool needsRef = false;
    6257    };
    6358
Note: See TracChangeset for help on using the changeset viewer.