Changeset 27242 in webkit for trunk/JavaScriptCore/kjs/function.h


Ignore:
Timestamp:
Oct 29, 2007, 6:34:00 PM (18 years ago)
Author:
mjs
Message:

Reviewed by Darin.


  • Define good VectorTraits for LocalStorage entry for 0.5% speed improvement on SunSpider.
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/LocalStorage.h: Added. (KJS::LocalStorageEntry::LocalStorageEntry): (WTF::):
  • kjs/function.h:
  • kjs/nodes.cpp: (KJS::FunctionBodyNode::processDeclarationsForFunctionCode):
File:
1 edited

Legend:

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

    r27210 r27242  
    2626#define KJS_FUNCTION_H
    2727
     28#include "LocalStorage.h"
    2829#include "SymbolTable.h"
    2930#include "object.h"
    3031#include <wtf/OwnPtr.h>
    31 #include <wtf/Vector.h>
    3232
    3333namespace KJS {
     
    139139
    140140  class ActivationImp : public JSObject {
    141   public:
    142     struct LocalStorageEntry {
    143         LocalStorageEntry()
    144         {
    145         }
    146 
    147         LocalStorageEntry(JSValue* v, int a)
    148             : value(v)
    149             , attributes(a)
    150         {
    151         }
    152 
    153         JSValue* value;
    154         int attributes;
    155     };
    156 
    157     typedef Vector<LocalStorageEntry, 32> LocalStorage;
    158 
    159141  private:
    160142    struct ActivationImpPrivate {
Note: See TracChangeset for help on using the changeset viewer.