Lines Matching +full:- +full:- +full:-
18 | ------- | --------------- | ---- | --------------------------- |
28 | --------------------- | -------------------------------- |
38 NativePointerCallback deleter = [](void *env, void *buffer, void *data) -> void {
55 | ------ | ---- | ---- | ---- |
61 | ------ | ------------------------------------------------ |
70 NativePointerCallback deleter = [](void *env, void *buffer, void *data) -> void {
76 uint8_t *getBuffer = reinterpret_cast<uint8_t *>(arrayBuffer->GetBuffer());
88 | ------ | -------------- | ---- | ------------ |
94 | ------- | ------------------------------- |
101 int lenth = arrayBuffer->ByteLength(vm);
113 | ------ | -------------- | ---- | ------------ |
119 | ---- | ----------------------------------------- |
126 bool b = arrayBuffer->IsDetach();
138 | ------ | ---- | ---- | ---- |
144 | ---- | -------------------------------- |
151 arrayBuffer->Detach(vm);
169 | ------ | -------------- | ---- | ---------------------------- |
176 | ----------------- | ---------------------------- |
200 | ------- | --------------- | ---- | -------------------------------------------------- |
210 | ---------------- | --------------------------- |
220 NativePointerCallback deleter = [](void *env, void *buffer, void *data) -> void {
237 | :----: | -------------- | ---- | ------------ |
243 | ------- | ------------------------------- |
250 int32_t lenth = buffer->ByteLength(vm);
262 | ------ | ---- | ---- | ---- |
268 | ------ | ------------------------------------------------ |
277 NativePointerCallback deleter = [](void *env, void *buffer, void *data) -> void {
283 uint8_t *getBuffer = reinterpret_cast<uint8_t *>(bufferRef->GetBuffer());
294 | ------------------- | ---------------------- | ---- | -------------------------------------- |
300 | ------------- | ------------------------------------------------------------ |
307 Local<StringRef> bufferStr = bufferRef->ToString(vm);
323 | ----------- | --------------------- | ---- | -------------------------- |
332 | ------------------ | ---------------------- |
352 | ------ | ---- | ---- | ---- |
358 | -------- | ---------------------------------- |
367 uint32_t offSet = dataView->ByteOffset();
379 | ------ | ---- | ---- | ---- |
385 | -------- | ------------------------------- |
394 uint32_t offSet = dataView->ByteLength();
406 | :----: | -------------- | ---- | ------------ |
412 | --------------------- | ------------------------------------------------------------ |
421 Local<ArrayBufferRef> getBuffer = dataView->GetArrayBuffer(vm);
437 | ------ | ---- | ---- | ---- |
443 | ------ | ------------------------------------------------ |
449 double time = 1690854800000; // 2023-07-04T00:00:00.000Z
451 double getTime = object->GetTime();
467 | :----: | -------------- | ---- | ------------ |
473 | ---- | --------------------------------------------- |
491 | :------: | -------------- | ---- | -------------------- |
498 | ---- | ---------- |
518 | :------: | ----------------- | ---- | ------------------ |
526 | ------ | ------------------------------------------------------------ |
546 | :----: | -------------- | ---- | ---------------- |
553 | ---- | ---------- |
573 | :----: | --------- | ---- | -------------------- |
579 | ---- | ----------------------------------- |
599 | :----: | -------------- | ---- | ---------------- |
605 | ---------------- | --------------------------------------------------------- |
624 | :----: | -------------- | ---- | ---------------- |
630 | ---------------- | --------------------------------------------------------- |
651 | :----: | -------------- | ---- | ---------------- |
657 | ---------------- | --------------------------------------------------------- |
679 | :----: | -------------- | ---- | ---------------- |
685 | ---- | --------------------------------------------- |
705 | :----: | -------------- | ---- | ---------------- |
711 | ---- | ---------- |
731 | :--------------------: | -------------------- | ---- | ------------------------------------------…
741 | --------- | -------------------------- |
772 | :----: | ----------------- | ---- | ---------------- |
779 | ---- | ---------- |
800 | ------------- | ------------------------------- | ---- | ------------------- |
824 | -------- | ----------- | ---- | ----------------------------------------------- |
832 | ---- | ----------------------------------------------------- |
850 | ------ | -------------- | ---- | ----------------------- |
874 | ------ | -------- | ---- | ------------ |
880 | ---- | ------------------------------------------------------------ |
898 | ------ | -------- | ---- | -------------------------- |
921 | ------ | -------- | ---- | -------------- |
944 | --------- | ------------------- | ---- | ---------------- |
967 | ------ | -------- | ---- | ----------------------- |
990 | ------- | ------------- | ---- | ------------------ |
1008 加载一个Ahead-of-Time(AOT)文件。
1013 | ---------- | ------------------- | ---- | ------------------------- |
1036 | ------ | -------- | ---- | -------------------- |
1058 | ------ | ------ | ---- | -------------------- |
1080 | ------- | -------------- | ---- | ------------------------ |
1088 | ----------------- | ------------------------------------------ |
1106 | ---------- | ------------------- | ---- | -------------------------------------------------------…
1117 | ---- | -------------------------------------------------- |
1135 | ---------- | ------------------- | ---- | -------------------------------------------------------…
1144 | ---- | -------------------------------------------- |
1162 | ------ | -------- | ---- | --------------------------------------------- |
1186 | ------ | ----------------- | ---- | ---------------------- |
1195 | :------ | :-------------------------------------------- |
1216 | ------ | ----------------- | ---- | -------------- |
1224 | :--------------- | :--------------------- |
1244 | ------ | ----------------- | ---- | -------------- |
1252 | :--------------- | :------------------------------------- |
1272 | ------ | -------------- | ---- | ---------- |
1278 | :--------------- | :--------------------- |
1296 | ------ | -------------- | ---- | ---------- |
1302 | :--------------- | :--------------------- |
1320 | ------ | -------------- | ---- | ---------- |
1326 | :------ | :---------------------------------------------- |
1344 | ------ | -------------- | ---- | ---------- |
1350 | :------ | :---------------------------------------------- |
1368 | ------- | ------------- | ---- | ---------------------- |
1392 | ------ | ------------------------------------------ | ---- | ------------------------------------…
1424 | ------ | -------- | ---- | --------------------------------------- |
1451 | ------ | ------------------------------------------------------------ | ---- | ------------------…
1463 uint8_t **buff, size_t *buffSize) -> bool {
1481 | ------ | ------------------------------------------------- | ---- | -----------------------------…
1507 | ------ | -------- | ---- | -------------- |
1531 | -------- | -------------------------- | ---- | ---------------------------------- |
1572 该函数用于销毁性能分析(PGO,Profile-Guided Optimization)的分析器管理器实例。
1601 | ------ | -------------- | ---- | ------------ |
1623 | ------ | -------- | ---- | ------------ |
1647 | ------ | --------------------- | ---- | -------------------- |
1675 | ---------- | ------------------ | ---- | ---------------------- |
1685 | ---- | ---------------------- |
1716 | ------ | --------------- | ---- | ---------------------------------------------- |
1743 | ------ | ----------------- | ---- | ------------ |
1772 | ------ | -------------- | ---- | ------------ |
1798 | :----: | -------------- | ---- | ---------------- |
1804 | ------------------- | ---------------- |
1822 | :----: | -------------- | ---- | ---------------- |
1828 | ------------------- | ---------------- |
1846 | ------ | ---- | ---- | ---- |
1852 | ---- | ------------------------------------- |
1858 ObjectFactory *factory = vm->GetFactory();
1859 auto env = vm->GetGlobalEnv();
1860 JSHandle<JSTaggedValue> genFunc = env->GetGeneratorFunctionFunction();
1861 JSHandle<JSGeneratorObject> genObjHandleVal = factory->NewJSGeneratorObject(genFunc);
1862 JSHandle<JSHClass> hclass = JSHandle<JSHClass>::Cast(env->GetGeneratorFunctionClass());
1863 JSHandle<JSFunction> generatorFunc = JSHandle<JSFunction>::Cast(factory->NewJSObject(hclass));
1864 JSFunction::InitializeJSFunction(vm->GetJSThread(), generatorFunc, FunctionKind::GENERATOR_FUNCTION…
1865 JSHandle<GeneratorContext> generatorContext = factory->NewGeneratorContext();
1866 generatorContext->SetMethod(vm->GetJSThread(), generatorFunc.GetTaggedValue());
1868 genObjHandleVal->SetGeneratorContext(vm->GetJSThread(), generatorContextVal.GetTaggedValue());
1871 bool b = genObjectRef->IsGeneratorObject();
1887 | ---- | ------------------------------------------------------------ |
1895 bool b = object->IsUint8Array();
1911 | ---- | ------------------------------------------------------------ |
1919 bool b = object->IsInt8Array();
1935 | ---- | --------------------------------------------------------- |
1942 bool b = message->IsError();
1954 | ------ | ----------------- | ---- | ------------- |
1961 | ---- | ------------------------------------------------------------ |
1973 bool b = origin->InstanceOf(vm_, ConstructObjectJSValueRef(vm_));
1989 | ---- | ------------------------------------------------------------ |
1995 Local<JSValueRef> tag = PromiseCapabilityRef::New(vm_)->GetPromise(vm_);
1996 bool b = tag->IsPromise();
2012 | ---- | --------------------------------------------------------- |
2020 bool b = dateRef->IsDate();
2036 | ---- | ----------------------------------------------------------- |
2044 bool b = res->IsTypedArray();
2060 | ---- | ------------------------------------------------------------ |
2067 bool b = tag->IsDataView();
2083 | ---- | ----------------------------------------------------------- |
2091 bool b = bufferRef->IsBuffer();
2107 | ---- | ------------------------------------------------------------ |
2119 bool b = arrayBuf->IsArrayBuffer();
2131 | ------ | -------------- | ---- | ------------ |
2137 | ---- | --------------------------------------------------------- |
2145 bool b = arrayObject->IsArray(vm_);
2157 | ------ | -------------- | ---- | ------------ |
2163 | ---------------- | ----------------------------------- |
2171 Local<ObjectRef> object = intValue->ToObject(vm_);
2183 | ------ | -------------- | ---- | ------------ |
2189 | ---------------- | ----------------------------------- |
2195 Local<StringRef> toString = StringRef::NewFromUtf8(vm_, "-123.3");
2197 Local<NumberRef> number = toString->ToNumber(vm_);
2209 | ------ | -------------- | ---- | ------------ |
2215 | ----------------- | ------------------------------------ |
2222 Local<BooleanRef> boo = intValue->ToBoolean(vm_);
2238 | ---- | ----------------------------------------------------------- |
2245 bool b = res->IsObject();
2261 | ---- | ----------------------------------------------------------- |
2269 bool b = intValue->IsBigInt();
2285 | ---- | ----------------------------------------------------------- |
2293 bool b = res->IsSymbol();
2309 | ---- | ----------------------------------------------------------- |
2316 bool b = tag->IsUndefined();
2334 | ---- | ------------------------------------------------------- |
2341 bool b = tag->IsBoolean();
2357 | ---- | --------------------------------------------------- |
2364 bool b = tag->IsNull();
2382 | ---- | --------------------------------------------------------- |
2392 bool b = res_vps->IsNativePointer();
2408 | ---- | ----------------------------------------------------- |
2420 bool b = object->IsFunction();
2436 | ---- | ------------------------------------------------------- |
2443 bool b = tag->IsString();
2459 | ---- | ----------------------------------------------------- |
2466 bool b = resUnit32->IsNumber();
2478 | ------ | -------------- | ---- | ---------- |
2484 | :------------------ | :----------------------------------------------------------- |
2491 Local<PrimitiveRef> result = boolValue->True(vm_);
2503 | ------ | -------------- | ---- | ---------- |
2509 | :------------------ | :----------------------------------------------------------- |
2516 Local<PrimitiveRef> result = boolValue->True(vm_);
2532 | :------ | :--------------------------------------------- |
2539 bool result = boolValue->IsFalse();
2551 | ------ | -------------- | ---- | ---------- |
2557 | :------ | :---------------------------------------------------- |
2566 bool result = JSArrayObject->IsJSArray(vm_);
2582 | :------ | :---------------------------------------------------- |
2588 ObjectFactory *factory = vm_->GetFactory();
2589 JSHandle<GlobalEnv> env = vm_->GetGlobalEnv();
2590 JSHandle<JSFunction> func = factory->NewJSFunction(env, static_cast<void *>(nullptr), FunctionKind:…
2597 bool result = funConstructor->IsConstructor();
2613 | :------ | :----------------------------------------------- |
2619 JSFunction *jsFunc = vm_->GetGlobalEnv()->GetObjectFunction().GetObject<JSFunction>();
2621 JSHandle<JSObject> newObj = vm_->GetFactory()->NewJSObjectByConstructor(JSHandle<JSFunction>(jsFunc…
2624 bool result = JSNApiHelper::ToLocal<JSValueRef>(value);->IsWeakRef();
2640 | :------ | :-------------------------------------------------- |
2646 ObjectFactory *factory = vm_->GetFactory();
2647 JSHandle<TaggedArray> handleTaggedArrayFrom = vm_->GetFactory()->NewTaggedArray(arrayLength);
2650 factory->NewJSArrayIterator(handleJSObjectTaggedArrayFrom,IterationKind::KEY);
2652 bool result = JSNApiHelper::ToLocal<JSValueRef>(jsTagValue)->IsStringIterator();
2668 | :------ | :------------------------------------------------------ |
2674 JSHandle<EcmaString> recordName = vm_->GetFactory()->NewFromUtf8("646458");
2675 JSHandle<JSStringIterator> jsStringIter = JSStringIterator::CreateStringIterator(vm_->GetJSThread()…
2677 bool result = JSNApiHelper::ToLocal<StringRef>(setTag)->IsStringIterator();
2693 | :------ | :-------------------------------------------------------- |
2701 vm_->GetFactory()->NewJSPrimitiveRef(PrimitiveType::PRIMITIVE_BIGINT, jsTagValue);
2703 bool result = JSNApiHelper::ToLocal<JSValueRef>(jsPriTagValue)->IsJSPrimitiveInt();
2719 | :------ | :--------------------------------------------------- |
2725 JSHandle<JSTaggedValue> proto = vm_->GetGlobalEnv()->GetObjectFunctionPrototype();
2726 JSHandle<JSHClass> mapClass = vm_->GetFactory()->NewEcmaHClass(JSAPITreeMap::SIZE, JSType::JS_API_T…
2727 JSHandle<JSAPITreeMap> jsTreeMap = JSHandle<JSAPITreeMap>::Cast(factory->NewJSObjectWithInit(mapCla…
2729 jsTreeMap->SetTreeMap(thread, treeMap);
2731 bool result = JSNApiHelper::ToLocal<ArrayRef>(treeMapTagValue)->IsTreeMap();
2747 | :------ | :-------------------------------------------- |
2753 JSHandle<JSTaggedValue> proto = vm_->GetGlobalEnv()->GetObjectFunctionPrototype();
2754 JSHandle<JSHClass> setClass = vm_->GetFactory()->NewEcmaHClass(JSAPITreeSet::SIZE, JSType::JS_API_T…
2755 JSHandle<JSAPITreeSet> jsTreeSet = JSHandle<JSAPITreeSet>::Cast(factory->NewJSObjectWithInit(setCla…
2757 jsTreeSet->SetTreeSet(thread, treeSet);
2759 bool result = JSNApiHelper::ToLocal<ArrayRef>(treeSetTagValue)->IsTreeSet();
2775 | :------ | :-------------------------------------------------- |
2781 JSHandle<JSTaggedValue> proto = vm_->GetGlobalEnv()->GetFunctionPrototype();
2782 JSHandle<JSHClass> vectorClass = vm_->GetFactory()->NewEcmaHClass(JSAPIVector::SIZE, JSType::JS_API…
2783 JSHandle<JSAPIVector> jsVector = JSHandle<JSAPIVector>::Cast(factory->NewJSObjectWithInit(vectorCla…
2784 jsVector->SetLength(length);
2786 bool result = JSNApiHelper::ToLocal<ArrayRef>(vectorTagValue)->IsVector();
2802 | :------ | :------------------------------------------------ |
2808 JSHandle<JSArguments> obj = vm_->GetFactory()->NewJSArguments();
2810 bool result = JSNApiHelper::ToLocal<ObjectRef>(argumentTag)->IsArgumentsObject();
2826 | :------ | :------------------------------------------ |
2832 JSHandle<JSAsyncFuncObject> asyncFuncObj = vm_->GetFactory()->NewJSAsyncFuncObject();
2834 bool result = JSNApiHelper::ToLocal<ObjectRef>(asyncFuncTag)->IsAsyncFunction();
2850 | :------ | :-------------------------------------------------- |
2856 JSHandle<JSTaggedValue> genFunc = vm_->GetGlobalEnv()->GetGeneratorFunctionFunction();
2857 JSHandle<JSGeneratorObject> genObjHandleVal = vm_->GetFactory()->NewJSGeneratorObject(genFunc);
2860 Local<JSValueRef> object = genObjectRef->GetGeneratorFunction(vm_);
2861 bool result = res->IsGeneratorFunction();
2877 | :------ | :----------------------------------------------------------- |
2885 bool result = object->IsBigInt64Array();
2901 | :------ | :----------------------------------------------------------- |
2909 bool result = object->IsBigUint64Array();
2925 | :------ | :--------------------------------------------------------- |
2931 JSHandle<JSArrayBuffer> jsArrayBuffer = vm_->GetFactory()->NewJSSharedArrayBuffer(bufferLength);
2933 bool result = JSNApiHelper::ToLocal<ArrayRef>(jsTagValueBuffer)->IsSharedArrayBuffer();
2949 | ---- | ---------------------------------------------------------- |
2957 bool res = val->IsUint8ClampedArray();
2973 | ---- | --------------------------------------------------- |
2981 bool res = val->IsInt16Array();
2997 | ---- | ---------------------------------------------------- |
3005 bool res = val->IsUint16Array();
3021 | ---- | --------------------------------------------------- |
3029 bool res = val->IsInt32Array();
3045 | ---- | ---------------------------------------------------- |
3053 bool res = val->IsUint32Array();
3069 | ---- | ----------------------------------------------------- |
3077 bool res = val->IsFloat32Array();
3093 | ---- | ----------------------------------------------------- |
3101 bool res = val->IsFloat64Array();
3117 | ---- | ----------------------------------------------------------- |
3123 ObjectFactory *factory = vm->GetFactory();
3125 …JSHandle<JSPrimitiveRef> jsprimitive = factory->NewJSPrimitiveRef(PrimitiveType::PRIMITIVE_BOOLEAN…
3128 bool res = object->IsJSPrimitiveBoolean();
3144 | ---- | ---------------------------------------------------- |
3150 JSHandle<GlobalEnv> env = thread_->GetEcmaVM()->GetGlobalEnv();
3151 ObjectFactory *factory = thread_->GetEcmaVM()->GetFactory();
3152 JSHandle<JSTaggedValue> builtinsMapFunc = env->GetBuiltinsMapFunction();
3153 JSHandle<JSMap> jsMap(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(builtinsMapFunc), buil…
3155 jsMap->SetLinkedMap(thread_, linkedHashMap);
3159 bool res = object->IsMapIterator();
3175 | ---- | ---------------------------------------------------- |
3181 ObjectFactory *factory = vm->GetFactory();
3182 JSHandle<JSTaggedValue> proto = thread_->GetEcmaVM()->GetGlobalEnv()->GetFunctionPrototype();
3183 JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSSet::SIZE, JSType::JS_SET, proto);
3184 JSHandle<JSSet> jsSet = JSHandle<JSSet>::Cast(factory->NewJSObjectWithInit(setClass));
3186 jsSet->SetLinkedSet(thread_, linkedSet);
3187 JSHandle<JSSetIterator> jsSetIter = factory->NewJSSetIterator(jsSet, IterationKind::KEY);
3189 bool res = JSNApiHelper::ToLocal<JSValueRef>(setiter)->IsSetIterator();
3205 | ---- | ------------------------------------------------------------ |
3211 ObjectFactory *factory = vm->GetFactory();
3212 JSHandle<ModuleNamespace> moduleNamespace = factory->NewModuleNamespace();
3214 JSNApiHelper::ToLocal<ObjectRef>(modname)->IsModuleNamespaceObject();
3215 bool res =object->IsModuleNamespaceObject()
3231 | ---- | ---------------------------------------------- |
3238 bool res = tag->IsProxy();
3254 | ---- | ----------------------------------------------- |
3261 bool res = val->IsRegExp();
3277 | ---- | ---------------------------------------------------------- |
3283 ObjectFactory *factory = vm->GetFactory();
3285 JSHandle<JSPrimitiveRef> jsprimitive = factory->NewJSPrimitiveRef(PrimitiveType::PRIMITIVE_NUMBER, …
3288 bool res = object->IsJSPrimitiveNumber();
3304 | ---- | -------------------------------------------- |
3311 bool res = mapRef->IsMap();
3327 | ---- | -------------------------------------------- |
3334 bool res = setRef->IsSet();
3350 | ---- | ---------------------------------------------------------- |
3356 ObjectFactory *factory = vm->GetFactory();
3358 JSHandle<JSPrimitiveRef> jsprimitive = factory->NewJSPrimitiveRef(PrimitiveType::PRIMITIVE_STRING, …
3361 bool res = object->IsJSPrimitiveNumber();
3377 | ---- | ---------------------------------------------------------- |
3383 ObjectFactory *factory = vm->GetFactory();
3385 JSHandle<JSPrimitiveRef> jsprimitive = factory->NewJSPrimitiveRef(PrimitiveType::PRIMITIVE_SYMBOL, …
3388 bool res = object->IsJSPrimitiveNumber();
3404 | ---- | ------------------------------------------------ |
3411 bool res = tag->IsWeakMap();
3427 | ---- | ------------------------------------------------ |
3434 bool res = tag->IsWeakSet();
3452 | ------ | -------------- | ---- | ---------- |
3458 | :--------------- | :-------------------------------- |
3476 | ------ | -------------- | ---- | ---------- |
3482 | :---------------- | :--------------------------------------------- |
3489 Local<JSValueRef> result = object->GetPrototype(vm_);
3501 | ------ | -------------- | ---- | ---------- |
3507 | :-------------- | :------------------------------------- |
3516 Local<ArrayRef> result = object->GetOwnPropertyNames(vm_);
3528 | ------ | ----------------- | ---- | ------------------ |
3536 | :------ | :--------------------------------------------------------- |
3545 bool result = object->Set(vm_, key, value);
3557 | ------ | ----------------- | ---- | ----------- |
3564 | :------ | :----------------------------------------------------------- |
3572 bool result = object->Has(vm_, key);
3584 | ------ | ----------------- | ---- | ----------- |
3591 | :------ | :----------------------------------------------------------- |
3599 bool result = object->Delete(vm_, key);
3611 | ------ | -------------- | ---- | ----------- |
3618 | :---------------- | :------------------------------------- |
3626 Local<JSValueRef> result = object->Get(vm_, key);
3638 | ------ | -------------- | ---- | ----------- |
3645 | :------ | :----------------------------------------------------------- |
3653 bool result = object->Delete(vm_, key);
3665 | --------- | ----------------- | ---- | -------------- |
3673 | :------ | :--------------------------------------------------------- |
3683 bool result = object->DefineProperty(vm_, key, attribute);
3695 | ------ | -------------- | ---- | -------------- |
3702 | :-------------- | :--------------------------- |
3710 Local<ArrayRef> result = object->GetAllPropertyNames(vm_, filter);
3722 | ------ | -------------- | ---- | ---------- |
3728 | :-------------- | :--------------------------------- |
3735 Local<ArrayRef> result = object->GetOwnEnumerablePropertyNames(vm_);
3747 | ------ | ----------------- | ---- | ---------------------------------------------------------- |
3754 | ----------------- | ------------------------------------------------------------ |
3762 Local<JSValueRef> value = object->Get(vm_, key);
3774 | -------- | ------------------- | ---- | ---------------------------- |
3782 | ---- | ------------------------------------------------------------ |
3792 bool b = object->GetOwnProperty(vm_, key, attribute);
3804 | --------- | ------------------ | ---- | ------------------------------------------------ |
3814 | ---- | ------------------------------------------------------------ |
3824 bool b = object->SetAccessorProperty(vm_, key, target1, target2);
3836 | ------ | ------- | ---- | ------------------------------------ |
3842 | ------ | -------------------------------- |
3852 object->SetNativePointerField(33, vp1, callBack, vp2);
3865 | ------ | ------- | ---- | -------------------------------- |
3877 object->SetNativePointerFieldCount(input);
3899 | ------- | ----------------- | ---- | ---------------- |
3908 | ---- | --------------------------- |
3915 Local<StringRef> toString = StringRef::NewFromUtf8(vm_, "-123.3");
3917 bool res = object->Set(vm_, key, toValue);
3918 bool res = object->Set(vm_, toValue, toValue);
3936 | ------ | -------------- | ---- | -------------------- |
3943 | ---- | ------------------------- |
3951 bool res = object->Has(vm_, key);
3969 | ----------------- | --------------------- | ---- | -------------------------------- |
3986 object->SetNativePointerField(index, vp1, callBack, vp2);
4002 | -------- | --------------- | ---- | ---------------------------------------------- |
4029 | -------- | --------------- | ---- | ---------------------------------------------- |
4060 | ------ | -------------- | ---- | ------------ |
4066 | ---------------- | -------------------------- |
4092 | --------- | ---------------- | ---- | ---------------------- |
4099 | ---- | --------------------------- |
4106 Local<ObjectRef> prototype = object->GetPrototype(vm_);
4107 object->SetPrototype(vm_, prototype);
4127 | :---------------: | ---------------- | ---- | ---------------------------------------------------…
4138 | ------------------ | ------------------------ |
4146 EscapeLocalScope scope(info->GetVM());
4147 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4161 | :---------------: | ---------------- | ---- | ---------------------------------------------------…
4172 | ------------------ | ------------------------ |
4180 EscapeLocalScope scope(info->GetVM());
4181 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4199 | :-----: | ----------------------- | ---- | ------------------------------- |
4208 | ----------------- | ------------------------ |
4216 EscapeLocalScope scope(info->GetVM());
4217 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4223 callback->Call(vm, JSValueRef::Undefined(vm), argumentsInt.data(), argumentsInt.size());
4235 | :--------: | -------------- | ---- | ---------------- |
4242 | ---------------- | --------------------- |
4250 EscapeLocalScope scope(info->GetVM());
4251 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4254 Local<StringRef> src = callback->GetSourceCode(vm, 10);
4266 | :----: | ----------------------- | ---- | -------------------- |
4274 | ----------------- | ------------------------------------------------------------ |
4284 Local<JSValueRef>functionObj = cls->Constructor(vm, argv, 1);
4296 | :----: | -------------- | ---- | ---------------- |
4302 | ----------------- | ------------------------------------------------------------ |
4310 EscapeLocalScope scope(info->GetVM());
4311 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4314 Local<JSValueRef> prototype = res->GetFunctionPrototype(vm);
4330 | :----: | -------------- | ---- | ------------ |
4336 | -------- | --------------------------------- |
4344 uint32_t len = dataView->ByteLength();
4362 | ------ | -------------- | ---- | ------------ |
4368 | ------- | --------------------------------------------------------- |
4376 uint32_t byteOffset = obj->ByteOffset(vm);
4394 | ------ | -------------- | ---- | ------------ |
4400 | ------- | -------------------------------------------- |
4408 uint32_t byteOffset = obj->ArrayLength(vm);
4429 | ------ | -------------- | ---- | ------------ |
4435 | --------------------- | ----------------------------- |
4443 Local<ArrayBufferRef> byteOffset = obj->GetArrayBuffer(vm);
4461 | :-----: | ---------------- | ---- | ------------ |
4468 | ----------------- | ------------------------------------------------------------ |
4486 | :-----: | ---------------- | ---- | ------------ |
4493 | ----------------- | ---- |
4513 | ------- | ---------------- | ---- | ------------------------------ |
4520 | ----------------- | ---------------------------------------------------------- |
4538 | ------- | ---------------- | ---- | ------------------------------- |
4545 | ----------------- | ------------------------------------------------------------ |
4563 | ------- | ---------------- | ---- | -------------- |
4570 | :---------------- | :------------------- |
4589 | ------- | ---------------- | ---- | -------------- |
4596 | :---------------- | :------------------- |
4615 | ------- | ---------------- | ---- | -------------- |
4622 | :---------------- | :------------------- |
4649 | ------- | ---------------- | ---- | -------------------- |
4656 | ------------------------ | --------------------- |
4681 | :----: | -------------- | ---- | ------------ |
4687 | ----------------- | ------------------------------------------------------------ |
4693 JSHandle<GlobalEnv> env = vm->GetGlobalEnv();
4694 ObjectFactory *factory = vm->GetFactory();
4695 JSHandle<JSTaggedValue> builtinsMapFunc = env->GetBuiltinsMapFunction();
4696 JSHandle<JSMap> jsMap(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(builtinsMapFunc), buil…
4697 JSHandle<JSTaggedValue> linkedHashMap(LinkedHashMap::Create(vm->GetJSThread()));
4698 jsMap->SetLinkedMap(vm->GetJSThread(), linkedHashMap);
4700 JSHandle<JSTaggedValue> mapIteratorVal = JSMapIterator::CreateMapIterator(vm->GetJSThread(), mapVal…
4702 mapIterator->SetIterationKind(IterationKind::VALUE);
4703 mapIterator->SetIterationKind(IterationKind::KEY_AND_VALUE);
4705 Local<JSValueRef> type = object->GetKind(vm);
4721 | :------ | :---------------------------- |
4727 ObjectFactory *factory = vm_->GetFactory();
4728 JSHandle<JSTaggedValue> builtinsMapFunc = vm_->GetGlobalEnv()->GetBuiltinsMapFunction();
4729 JSHandle<JSMap> jsMap(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(builtinsMapFunc), buil…
4731 jsMap->SetLinkedMap(thread_, linkedHashMap);
4735 mapIterator->SetNextIndex(index);
4737 int32_t result = object->GetIndex();
4755 | :----: | -------------- | ---- | ------------ |
4761 | ----------------- | ------------------------------------------------------------ |
4768 Local<JSValueRef> jsValue = intValue->GetValue(vm);
4784 | :----: | -------------- | ---- | -------------------- |
4791 | ----------------- | ---------------------------- |
4809 | :----: | -------------- | ---- | -------------------- |
4816 | ----------------- | ---------------------------- |
4838 | ---- | ----------------------- |
4846 int i = intValue->Value();
4866 | :-----: | ------------------ | ---- | -----------------------------------------------------------…
4873 | ----------------- | ------------------------------------------------------------ |
4881 EscapeLocalScope scope(info->GetVM());
4882 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4885 Local<PromiseRef> promise = capability->GetPromise(vm);
4887 Local<PromiseRef> result = promise->Catch(vm, reject);
4903 | :---------: | ------------------ | ---- | --------------------------- |
4911 | ----------------- | ------------------------------------------------------------ |
4919 EscapeLocalScope scope(info->GetVM());
4920 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4923 Local<PromiseRef> promise = capability->GetPromise(vm);
4925 Local<PromiseRef> result = promise->Then(vm, callback, callback);
4937 | :-----: | ------------------ | ---- | ---------------- |
4944 | ----------------- | ------------------------------------------------------------ |
4952 EscapeLocalScope scope(info->GetVM());
4953 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
4956 Local<PromiseRef> promise = capability->GetPromise(vm);
4958 Local<PromiseRef> result = promise->Finally(vm, callback);
4974 | ------ | ---- | ---- | ---- |
4980 | ---------------- | ------------------------------------------------------------ |
5001 | ------ | -------------- | ---- | ---------- |
5027 | :------ | :------------------------------------------------ |
5076 | ---------- | --------------------- | ---- | ------------------------------------ |
5085 | :-------------------- | :-------------------------- |
5110 | ---------- | --------------------- | ---- | ----------------------------------- |
5119 | :-------------------- | :-------------------------- |
5144 | ------ | -------------- | ---- | ---------- |
5150 | :------------ | :------------------ |
5176 | ------- | ---------------------- |
5183 int32_t size = mapRef->GetSize();
5203 | ------- | ---------------------- |
5210 int32_t totalElements = mapRef->GetTotalElements();
5223 调用 `map->Get` 方法获取与给定键对应的值。
5228 | ------ | ----------------- | ---- | ---------------- |
5235 | ----------------- | ---------------------------- |
5242 Local<JSValueRef> myValue = MapRef->Get(myEcmaVM, myKey);
5255 调用 `map->GetKey(entry)` 方法获取 Map 对象中指定索引处的键,并将结果转换为 `Local<JSValueRef>`。
5260 | ------ | -------------- | ---- | --------------------------------------------- |
5267 | ----------------- | --------------------------------- |
5274 Local<JSValueRef> myKey = MapRef->GetKey(myEcmaVM, myEntry);
5287 调用 `map->GetValue(entry)` 方法获取 Map 对象中指定索引处的值,并将结果转换为 `Local<JSValueRef>`。
5292 | ------ | -------------- | ---- | ------------------ |
5299 | ----------------- | --------------------------------- |
5306 Local<JSValueRef> myValue = MapRef->Get(myEcmaVM, myEntry);
5324 | ------ | ----------------- | ---- | ---------------- |
5358 | :------ | :-------------------------- |
5367 object->Set(vm_, key, value);
5368 int32_t result = object->GetSize();
5384 | :------ | :------------------------------ |
5393 object->Set(vm_, key, value);
5394 int32_t result = object->GetTotalElements();
5406 | ------ | -------------- | ---- | -------------------- |
5413 | :---------------- | :--------------------- |
5422 object->Set(vm_, key, value);
5423 Local<JSValueRef> result = object->GetKey(vm_, entry);
5435 | ------ | -------------- | ---- | ------------------------- |
5442 | :---------------- | :-------------------------- |
5451 object->Set(vm_, key, value);
5452 Local<JSValueRef> result = object->GetValue(vm_, entry);
5474 | :------ | :-------------------------- |
5483 object->Set(vm_, key, value);
5484 int32_t result = object->GetSize();
5500 | :------ | :------------------------------ |
5509 object->Set(vm_, key, value);
5510 int32_t result = object->GetTotalElements();
5522 | ------ | -------------- | ---- | ------------------------- |
5529 | :---------------- | :-------------------------- |
5538 object->Set(vm_, key, value);
5539 Local<JSValueRef> result = object->GetValue(vm_, 0);
5557 | ------ | -------------- | ---- | ---------- |
5587 | ----------------- | --------------------- | ---- | -------------------------------- |
5597 | :---------------------- | :----------------------------------------- |
5624 | :----- | :--------------------------- |
5633 void *result = res_vps->Value();
5651 | ---------- | --------------------- | ---- | ------------------------------------- |
5660 | ----------------------- | ------------------------------ |
5683 | ------ | -------------- | ---- | ----------------------------- |
5690 | ---------------- | ----------------------- |
5709 | -------- | -------------- | ---- | --------------------------------------- |
5717 | ---- | ---------- |
5727 maxBigintUint64->BigIntToInt64(vm, &toNum, &lossless);
5739 | -------- | -------------- | ---- | --------------------------------------- |
5747 | ---- | ---------- |
5757 maxBigintUint64->BigIntToInt64(vm, &toNum, &lossless);
5769 | ------ | --------------- | ---- | ------------------------------------ |
5778 | ----------------- | ------------------------------------------------------------ |
5787 std::numeric_limits<uint64_t>::min() - 1,
5803 | ------ | ---- | ---- | ---- |
5809 | -------- | ----------------------------------------- |
5818 std::numeric_limits<uint64_t>::min() - 1,
5824 uint32_t cnt = bigWordsRef->GetWordsArraySize();
5836 | --------- | ---------- | ---- | ------------------------------------------------------------ |
5851 std::numeric_limits<uint64_t>::min() - 1,
5859 bigWordsRef->GetWordsArray(&resultSignBit, size, resultWords);
5877 | ------ | -------------- | ---- | ---------------- |
5885 | ---------------- | ----------------------- |
5904 | ------ | -------------- | ---- | --------------------- |
5912 | ---------------- | ----------------------- |
5931 | ------ | -------------- | ---- | ------------ |
5937 | ------- | ---------------------- |
5945 int32_t lenght = stringObj->Utf8Length(vm);
5957 | ------------- | ------ | ---- | ------------------------------------- |
5965 | ---- | --------------------------------- |
5973 int length = local->WriteUtf8(cs, 6);
5985 | ------ | ------ | ---- | ---------------------- |
5992 | ---- | --------------------------------- |
6000 int length = local->WriteUtf16(cs, 3);
6012 | ------ | ---- | ---- | ---- |
6018 | ---- | --------------------- |
6025 int len = local->Length()
6037 | ------ | ---- | ---- | ---- |
6043 | ----------- | ------------------------------------- |
6050 std::string str = stringObj->ToString();
6062 | ------ | -------------- | ---- | ------------ |
6068 | ---------------- | ------------------------------------------------------------ |
6086 | ------ | ------ | ---- | ---------------- |
6093 | :--- | :--------------------- |
6101 int result = object->WriteLatin1(cs, length);
6125 | ------ | -------------- | ---- | ---------------- |
6135 | :--------------- | :---------------------------------------- |
6166 | ------ | -------------- | ---- | ---------- |
6172 | :------- | :--------------------- |
6179 uint32_t result = arrayObj->Length(vm_);
6191 | ------ | ----------------- | ---- | -------------------- |
6200 | :------ | :---------------------------------------------------- |
6220 | ------ | ----------------- | ---- | -------------------- |
6228 | :---------------- | :----------------------------- |
6255 | ------ | -------------- | ---- | ------------------------ |
6262 | --------------- | ---------------------- |
6290 | :----- | :------------------------------------------- |
6313 | ------- | ---------------- |
6338 | ------ | ---- | ---- | ---- |
6344 | ----------------- | ------------------------------------------------------------ |
6350 Local<JSValueRef> promise(PromiseCapabilityRef::New(vm)->GetPromise(vm));
6371 | ------ | ------------------------------------------------------------ |
6377 Local<StringRef> toStringPromise = StringRef::NewFromUtf8(vm_, "-3.14");
6397 | --------- | ------------------------------------------ | ---- | ---------------------------------…
6406 | ------------------------------------------ | ------------------------------------------ |
6428 | ----------------- | ------------------------------------------ |
6452 | ------------------------------------------ | ------------------------------------------ |
6476 | ------ | ----------------- | ---- | ---------------------------- |
6483 | ---- | ----------------------------------- |
6491 EscapeLocalScope scope(info->GetVM());
6492 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
6495 Local<PromiseRef> promise = capability->GetPromise(vm);
6496 promise->Then(vm, FunctionRef::New(vm, FunCallback), FunctionRef::New(vm, FunCallback));
6497 bool b = capability->Resolve(vm, NumberRef::New(vm, 300.3));
6509 | ------ | ----------------- | ---- | ---------------------------- |
6516 | ---- | ----------------------------------- |
6524 EscapeLocalScope scope(info->GetVM());
6525 return scope.Escape(ArrayRef::New(info->GetVM(), info->GetArgsNumber()));
6528 Local<PromiseRef> promise = capability->GetPromise(vm);
6529 promise->Then(vm, FunctionRef::New(vm, FunCallback), FunctionRef::New(vm, FunCallback));
6530 bool b = capability->Reject(vm, NumberRef::New(vm, 300.3));
6542 | ------ | -------------- | ---- | ------------ |
6548 | ----------------- | ------------------------------------------------------------ |
6555 Local<PromiseRef> promise = capability->GetPromise(vm_);
6575 | ------ | -------------- | ---- | ------------ |
6581 | --------------------------- | ------------------------------------------ |
6605 | ----------- | ---------------- | ---- | ---------------------------------------------------------…
6612 | ---------------- | ----------------------------------------- |
6628 | ------ | -------------- | ---- | ------------ |
6634 | ---------------- | -------------------------------------- |
6658 | ------ | -------------- | ---- | ------------ |
6686 | ------ | -------------- | ---- | ------------ |
6714 | ------ | -------------- | ---- | ---------------------------- |
6747 | ------- | ------------------------------------------------- |
6756 object->Set(vm_, key, value);
6757 int32_t size = object->GetSize();
6773 | ------- | ------------------------------------------------------------ |
6782 object->Set(vm_, key, value);
6783 int32_t element = object->GetTotalElements();
6795 | ------ | -------------- | ---- | ---------------------------------------------------- |
6802 | ----------------- | ------------------------------------------------------------ |
6811 object->Set(vm_, key, value);
6812 Local<JSValueRef> value = object->GetValue(vm_, 0);
6830 | ---------- | --------------------- | ---- | -----------------------------------------------------…
6839 | ------------------------ | --------------------------------------------- |
6866 | ---------- | --------------------- | ---- | -----------------------------------------------------…
6875 | ---------------------- | ------------------------------------------------------------ |
6902 | ---------- | --------------------- | ---- | -----------------------------------------------------…
6911 | ---------------------- | ------------------------------------------------------------ |
6938 | ---------- | --------------------- | ---- | -----------------------------------------------------…
6947 | ------------------- | -------------------------------------------- |
6973 | ---------- | --------------------- | ---- | -----------------------------------------------------…
6982 | -------------------- | --------------------------------------------- |
7008 | ---------- | --------------------- | ---- | -----------------------------------------------------…
7017 | -------------------- | --------------------------------------------- |
7043 | ------ | -------------- | ---- | ------------ |
7049 | ----------------- | ------------------------------------------------------------ |
7055 JSHandle<GlobalEnv> env = vm_->GetGlobalEnv();
7056 ObjectFactory *factory = thread_->GetEcmaVM()->GetFactory();
7057 JSHandle<JSTaggedValue> hclass(thread_, env->GetObjectFunction().GetObject<JSFunction>());
7058 JSHandle<JSTaggedValue> targetHandle(factory->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(h…
7059 JSHandle<JSTaggedValue> key(factory->NewFromASCII("x"));
7063 factory->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(hclass), hclass));
7067 Local<JSValueRef> value = object->GetTarget(vm_);
7083 | ---- | ------------------------------------------------------------ |
7089 JSHandle<GlobalEnv> env = vm_->GetGlobalEnv();
7090 ObjectFactory *factory = thread_->GetEcmaVM()->GetFactory();
7091 JSHandle<JSTaggedValue> hclass(thread_, env->GetObjectFunction().GetObject<JSFunction>());
7092 JSHandle<JSTaggedValue> targetHandle(factory->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(h…
7093 JSHandle<JSTaggedValue> key(factory->NewFromASCII("x"));
7097 factory->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(hclass), hclass));
7101 bool b = object->IsRevoked();
7113 | ------ | -------------- | ---- | ---------- |
7119 | :---------------- | :------------------- |
7129 Local<JSValueRef> result = JSNApiHelper::ToLocal<ProxyRef>(proxytagvalue)->GetHandler(vm_);
7146 | ------ | -------------- | ---- | ------------ |
7180 | ------- | ------------------ |
7206 | ------ | -------------- | ---- | ------------ |
7212 | ----------------- | ---------------------------- |
7234 | ---------- | --------------------- | ---- | -----------------------------------------------------…
7243 | --------------------------- | ---------------------------------------- |
7267 | ---------- | --------------------- | ---- | -----------------------------------------------------…
7276 | --------------------- | ---------------------------------- |