Home
last modified time | relevance | path

Searched refs:js_obj (Results 1 – 11 of 11) sorted by relevance

/third_party/node/test/js-native-api/test_reference_double_free/
Dtest_reference_double_free.c56 napi_value js_obj; in DeleteImmediately() local
60 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, &js_obj, NULL, NULL)); in DeleteImmediately()
62 NODE_API_CALL(env, napi_typeof(env, js_obj, &type)); in DeleteImmediately()
65 NODE_API_CALL(env, napi_wrap(env, js_obj, NULL, NoopDeleter, NULL, &ref)); in DeleteImmediately()
66 NODE_API_CALL(env, napi_remove_wrap(env, js_obj, NULL)); in DeleteImmediately()
/third_party/node/deps/v8/src/snapshot/
Dcontext-serializer.cc225 JSObject js_obj = *obj; in SerializeJSObjectWithEmbedderFields() local
226 int embedder_fields_count = js_obj.GetEmbedderFieldCount(); in SerializeJSObjectWithEmbedderFields()
229 DCHECK(!js_obj.NeedsRehashing(cage_base())); in SerializeJSObjectWithEmbedderFields()
244 EmbedderDataSlot embedder_data_slot(js_obj, i); in SerializeJSObjectWithEmbedderFields()
273 EmbedderDataSlot(js_obj, i).store_raw(isolate(), kNullAddress, no_gc); in SerializeJSObjectWithEmbedderFields()
283 js_obj = *obj; in SerializeJSObjectWithEmbedderFields()
288 reference_map()->LookupReference(js_obj); in SerializeJSObjectWithEmbedderFields()
298 EmbedderDataSlot(js_obj, i).store_raw(isolate(), in SerializeJSObjectWithEmbedderFields()
Ddeserializer.cc687 JSObject js_obj = JSObject::cast(raw_obj); in ReadObject() local
688 for (int i = 0; i < js_obj.GetEmbedderFieldCount(); ++i) { in ReadObject()
690 CHECK(EmbedderDataSlot(js_obj, i).ToAlignedPointer(main_thread_isolate(), in ReadObject()
/third_party/node/test/node-api/test_cleanup_hook/
Dbinding.c26 napi_value js_obj; in CreateObjectWrap() local
28 NODE_API_CALL_RETURN_VOID(env, napi_create_object(env, &js_obj)); in CreateObjectWrap()
30 env, napi_wrap(env, js_obj, ref, ObjectFinalizer, NULL, ref)); in CreateObjectWrap()
/third_party/node/test/node-api/test_async_cleanup_hook/
Dbinding.c61 napi_value js_obj; in CreateObjectWrap() local
63 NODE_API_CALL_RETURN_VOID(env, napi_create_object(env, &js_obj)); in CreateObjectWrap()
65 env, napi_wrap(env, js_obj, ref, ObjectFinalizer, NULL, ref)); in CreateObjectWrap()
/third_party/node/deps/v8/src/profiler/
Dheap-snapshot-generator.cc1145 JSObject js_obj) { in ExtractJSObjectReferences() argument
1146 HeapObject obj = js_obj; in ExtractJSObjectReferences()
1147 ExtractPropertyReferences(js_obj, entry); in ExtractJSObjectReferences()
1148 ExtractElementReferences(js_obj, entry); in ExtractJSObjectReferences()
1149 ExtractInternalReferences(js_obj, entry); in ExtractJSObjectReferences()
1151 PrototypeIterator iter(isolate, js_obj); in ExtractJSObjectReferences()
1170 JSFunction js_fun = JSFunction::cast(js_obj); in ExtractJSObjectReferences()
1211 TagObject(js_obj.raw_properties_or_hash(), "(object properties)"); in ExtractJSObjectReferences()
1212 SetInternalReference(entry, "properties", js_obj.raw_properties_or_hash(), in ExtractJSObjectReferences()
1215 TagObject(js_obj.elements(), "(object elements)"); in ExtractJSObjectReferences()
[all …]
Dheap-snapshot-generator.h411 void ExtractJSObjectReferences(HeapEntry* entry, JSObject js_obj);
453 void ExtractPropertyReferences(JSObject js_obj, HeapEntry* entry);
456 void ExtractElementReferences(JSObject js_obj, HeapEntry* entry);
457 void ExtractInternalReferences(JSObject js_obj, HeapEntry* entry);
/third_party/node/deps/v8/src/runtime/
Druntime-object.cc377 Handle<JSObject> js_obj = Handle<JSObject>::cast(object); in RUNTIME_FUNCTION() local
385 LookupIterator it(isolate, js_obj, key, js_obj, c); in RUNTIME_FUNCTION()
392 Map map = js_obj->map(); in RUNTIME_FUNCTION()
401 LookupIterator it(isolate, js_obj, key, js_obj, LookupIterator::OWN); in RUNTIME_FUNCTION()
439 Handle<JSObject> js_obj = Handle<JSObject>::cast(object); in RUNTIME_FUNCTION() local
440 LookupIterator it(isolate, js_obj, key, js_obj, LookupIterator::OWN); in RUNTIME_FUNCTION()
/third_party/node/deps/v8/src/heap/
Dfactory.cc2557 JSObject js_obj = JSObject::cast( in NewJSObjectFromMap() local
2560 InitializeJSObjectFromMap(js_obj, *empty_fixed_array(), *map); in NewJSObjectFromMap()
2562 DCHECK(js_obj.HasFastElements() || in NewJSObjectFromMap()
2563 js_obj.HasTypedArrayOrRabGsabTypedArrayElements() || in NewJSObjectFromMap()
2564 js_obj.HasFastStringWrapperElements() || in NewJSObjectFromMap()
2565 js_obj.HasFastArgumentsElements() || js_obj.HasDictionaryElements()); in NewJSObjectFromMap()
2566 return handle(js_obj, isolate()); in NewJSObjectFromMap()
/third_party/node/deps/v8/src/codegen/
Dcompiler.cc2890 Handle<JSReceiver> js_obj = Handle<JSReceiver>::cast(obj); in Compile() local
2892 if (!JSReceiver::GetConstructor(isolate, js_obj).ToHandle(&constructor)) { in Compile()
/third_party/node/deps/v8/src/api/
Dapi.cc6004 i::JSObject js_obj = i::JSObject::cast(*obj); in SetAlignedPointerInInternalFields() local
6005 int nof_embedder_fields = js_obj.GetEmbedderFieldCount(); in SetAlignedPointerInInternalFields()
6013 Utils::ApiCheck(i::EmbedderDataSlot(js_obj, index) in SetAlignedPointerInInternalFields()
6018 internal::WriteBarrier::MarkingFromInternalFields(js_obj); in SetAlignedPointerInInternalFields()
9686 i::Handle<i::JSObject> js_obj = i::Handle<i::JSObject>::cast(obj); in GetStackTrace() local
9687 i::Isolate* isolate = js_obj->GetIsolate(); in GetStackTrace()
9689 return Utils::StackTraceToLocal(isolate->GetDetailedStackTrace(js_obj)); in GetStackTrace()