本文整理汇总了C++中WorkerLocation类的典型用法代码示例。如果您正苦于以下问题:C++ WorkerLocation类的具体用法?C++ WorkerLocation怎么用?C++ WorkerLocation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WorkerLocation类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsWorkerLocationHash
JSValue jsWorkerLocationHash(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSWorkerLocation* castedThis = static_cast<JSWorkerLocation*>(asObject(slotBase));
UNUSED_PARAM(exec);
WorkerLocation* imp = static_cast<WorkerLocation*>(castedThis->impl());
JSValue result = jsString(exec, imp->hash());
return result;
}
示例2: jsWorkerLocationPrototypeFunctionToString
JSValue JSC_HOST_CALL jsWorkerLocationPrototypeFunctionToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
UNUSED_PARAM(args);
if (!thisValue.inherits(&JSWorkerLocation::s_info))
return throwError(exec, TypeError);
JSWorkerLocation* castedThisObj = static_cast<JSWorkerLocation*>(asObject(thisValue));
WorkerLocation* imp = static_cast<WorkerLocation*>(castedThisObj->impl());
JSC::JSValue result = jsString(exec, imp->toString());
return result;
}
示例3: jsWorkerLocationPrototypeFunctionToString
EncodedJSValue JSC_HOST_CALL jsWorkerLocationPrototypeFunctionToString(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSWorkerLocation::s_info))
return throwVMTypeError(exec);
JSWorkerLocation* castedThis = static_cast<JSWorkerLocation*>(asObject(thisValue));
ASSERT_GC_OBJECT_INHERITS(castedThis, &JSWorkerLocation::s_info);
WorkerLocation* imp = static_cast<WorkerLocation*>(castedThis->impl());
JSC::JSValue result = jsString(exec, imp->toString());
return JSValue::encode(result);
}
示例4: toStringCallback
static v8::Handle<v8::Value> toStringCallback(const v8::Arguments& args)
{
WorkerLocation* imp = V8WorkerLocation::toNative(args.Holder());
return v8String(imp->toString(), args.GetIsolate());
}
示例5: hashAttrGetter
static v8::Handle<v8::Value> hashAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
WorkerLocation* imp = V8WorkerLocation::toNative(info.Holder());
return v8String(imp->hash(), info.GetIsolate());
}