Lines Matching refs:wrapper
530 // get GC'ed while we create the wrapper below.
533 JSObjectRef wrapper = makeWrapper([m_context JSGlobalContextRef], m_classRef, object);
534 JSObjectSetPrototype([m_context JSGlobalContextRef], wrapper, toRef(prototype));
535 return [JSValue valueWithJSValueRef:wrapper inContext:m_context];
602 JSValue *wrapper;
604 wrapper = [[self classInfoForClass:(Class)object] constructor];
607 wrapper = [classInfo wrapperForObject:object];
611 // This general approach to wrapper caching is pretty effective, but there are a couple of problems:
616 jsWrapper = toJS(exec, valueInternalValue(wrapper)).toObject(exec);
618 return wrapper;
623 JSValue *wrapper = static_cast<JSValue *>(NSMapGet(m_cachedObjCWrappers, value));
624 if (!wrapper) {
625 wrapper = [[[JSValue alloc] initWithValue:value inContext:m_context] autorelease];
626 NSMapInsert(m_cachedObjCWrappers, value, wrapper);
628 return wrapper;