Changeset 47022 in webkit for trunk/JavaScriptCore/runtime/JSAPIValueWrapper.h
- Timestamp:
- Aug 10, 2009, 9:35:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSAPIValueWrapper.h
r46598 r47022 27 27 28 28 #include "JSCell.h" 29 #include "CallFrame.h" 29 30 30 31 namespace JSC { … … 43 44 virtual UString toString(ExecState*) const; 44 45 virtual JSObject* toObject(ExecState*) const; 46 static PassRefPtr<Structure> createStructure(JSValue prototype) 47 { 48 return Structure::create(prototype, TypeInfo(CompoundType)); 49 } 45 50 51 46 52 private: 47 JSAPIValueWrapper( JSValue value)48 : JSCell( 0)53 JSAPIValueWrapper(ExecState* exec, JSValue value) 54 : JSCell(exec->globalData().apiWrapperStructure.get()) 49 55 , m_value(value) 50 56 { … … 56 62 inline JSValue jsAPIValueWrapper(ExecState* exec, JSValue value) 57 63 { 58 return new (exec) JSAPIValueWrapper( value);64 return new (exec) JSAPIValueWrapper(exec, value); 59 65 } 60 66
Note:
See TracChangeset
for help on using the changeset viewer.