Changeset 197136 in webkit for trunk/Source/JavaScriptCore/runtime/ProxyObject.h
- Timestamp:
- Feb 25, 2016, 2:58:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/ProxyObject.h
r197042 r197136 36 36 typedef JSNonFinalObject Base; 37 37 38 const static unsigned StructureFlags = Base::StructureFlags | OverridesGetOwnPropertySlot | TypeOfShouldCallGetCallData ;38 const static unsigned StructureFlags = Base::StructureFlags | OverridesGetOwnPropertySlot | TypeOfShouldCallGetCallData | InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero; 39 39 40 40 static ProxyObject* create(ExecState* exec, Structure* structure, JSValue target, JSValue handler) … … 48 48 static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype) 49 49 { 50 return Structure::create(vm, globalObject, prototype, TypeInfo( ObjectType, StructureFlags), info());50 return Structure::create(vm, globalObject, prototype, TypeInfo(ProxyObjectType, StructureFlags), info(), NonArray | MayHaveIndexedAccessors); 51 51 } 52 52 … … 55 55 JSObject* target() { return m_target.get(); } 56 56 JSValue handler() { return m_handler.get(); } 57 58 static void put(JSCell*, ExecState*, PropertyName, JSValue, PutPropertySlot&); 59 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue, bool shouldThrow); 60 void putByIndexCommon(ExecState*, JSValue thisValue, unsigned propertyName, JSValue putValue, bool shouldThrow); 57 61 58 62 private: … … 73 77 template <typename DefaultDeleteFunction> 74 78 bool performDelete(ExecState*, PropertyName, DefaultDeleteFunction); 79 template <typename PerformDefaultPutFunction> 80 void performPut(ExecState*, JSValue putValue, JSValue thisValue, PropertyName, PerformDefaultPutFunction); 75 81 76 82 WriteBarrier<JSObject> m_target;
Note:
See TracChangeset
for help on using the changeset viewer.