Changeset 51068 in webkit for trunk/JavaScriptCore/API/APICast.h
- Timestamp:
- Nov 17, 2009, 12:41:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/APICast.h
r50964 r51068 52 52 inline JSC::ExecState* toJS(JSContextRef c) 53 53 { 54 ASSERT(c); 54 55 return reinterpret_cast<JSC::ExecState*>(const_cast<OpaqueJSContext*>(c)); 55 56 } … … 57 58 inline JSC::ExecState* toJS(JSGlobalContextRef c) 58 59 { 60 ASSERT(c); 59 61 return reinterpret_cast<JSC::ExecState*>(c); 60 62 } 61 63 62 inline JSC::JSValue toJS(JSC::ExecState* , JSValueRef v)64 inline JSC::JSValue toJS(JSC::ExecState* exec, JSValueRef v) 63 65 { 66 ASSERT_UNUSED(exec, exec); 67 ASSERT(v); 64 68 #if USE(JSVALUE32_64) 65 69 JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v)); … … 74 78 } 75 79 76 inline JSC::JSValue toJSForGC(JSC::ExecState* , JSValueRef v)80 inline JSC::JSValue toJSForGC(JSC::ExecState* exec, JSValueRef v) 77 81 { 82 ASSERT_UNUSED(exec, exec); 83 ASSERT(v); 78 84 #if USE(JSVALUE32_64) 79 85 JSC::JSCell* jsCell = reinterpret_cast<JSC::JSCell*>(const_cast<OpaqueJSValue*>(v));
Note:
See TracChangeset
for help on using the changeset viewer.