~ubuntu-branches/ubuntu/karmic/webkit/karmic-proposed

« back to all changes in this revision

Viewing changes to JavaScriptCore/runtime/Lookup.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-05-15 18:30:58 UTC
  • mto: (4.4.1 sid) (1.2.2 upstream) (16.1.1 lucid)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20090515183058-35m5or0ufm5tutud
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include "CallFrame.h"
25
25
#include "Identifier.h"
26
 
#include "JSFunction.h"
27
26
#include "JSGlobalObject.h"
28
27
#include "JSObject.h"
29
28
#include "PropertySlot.h"
41
40
    };
42
41
 
43
42
    // FIXME: There is no reason this get function can't be simpler.
44
 
    // ie. typedef JSValuePtr (*GetFunction)(ExecState*, JSObject* baseObject)
 
43
    // ie. typedef JSValue (*GetFunction)(ExecState*, JSObject* baseObject)
45
44
    typedef PropertySlot::GetValueFunc GetFunction;
46
 
    typedef void (*PutFunction)(ExecState*, JSObject* baseObject, JSValuePtr value);
 
45
    typedef void (*PutFunction)(ExecState*, JSObject* baseObject, JSValue value);
47
46
 
48
47
    class HashEntry {
49
48
    public:
223
222
     * is found it sets the value and returns true, else it returns false.
224
223
     */
225
224
    template <class ThisImp>
226
 
    inline bool lookupPut(ExecState* exec, const Identifier& propertyName, JSValuePtr value, const HashTable* table, ThisImp* thisObj)
 
225
    inline bool lookupPut(ExecState* exec, const Identifier& propertyName, JSValue value, const HashTable* table, ThisImp* thisObj)
227
226
    {
228
227
        const HashEntry* entry = table->entry(exec, propertyName);
229
228
 
245
244
     * then it calls put() on the ParentImp class.
246
245
     */
247
246
    template <class ThisImp, class ParentImp>
248
 
    inline void lookupPut(ExecState* exec, const Identifier& propertyName, JSValuePtr value, const HashTable* table, ThisImp* thisObj, PutPropertySlot& slot)
 
247
    inline void lookupPut(ExecState* exec, const Identifier& propertyName, JSValue value, const HashTable* table, ThisImp* thisObj, PutPropertySlot& slot)
249
248
    {
250
249
        if (!lookupPut<ThisImp>(exec, propertyName, value, table, thisObj))
251
250
            thisObj->ParentImp::put(exec, propertyName, value, slot); // not found: forward to parent