"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "js/src/builtin/TypedObject.cpp" between
UXP-2019.03.27.tar.gz and UXP-2019.06.08.tar.gz

About: Basilisk is a full-featured, optimized browser derived from the code behind the pre-Servo Firefox browser (29–56 era). UXP = Unified XUL Platform. Source code.

TypedObject.cpp  (UXP-2019.03.27):TypedObject.cpp  (UXP-2019.06.08)
skipping to change at line 655 skipping to change at line 655
} }
obj->initReservedSlot(JS_DESCR_SLOT_TYPROTO, ObjectValue(*prototypeObj)); obj->initReservedSlot(JS_DESCR_SLOT_TYPROTO, ObjectValue(*prototypeObj));
if (!LinkConstructorAndPrototype(cx, obj, prototypeObj)) if (!LinkConstructorAndPrototype(cx, obj, prototypeObj))
return nullptr; return nullptr;
if (!CreateTraceList(cx, obj)) if (!CreateTraceList(cx, obj))
return nullptr; return nullptr;
if (!cx->zone()->typeDescrObjects.put(obj)) { if (!cx->zone()->addTypeDescrObject(cx, obj)) {
ReportOutOfMemory(cx); ReportOutOfMemory(cx);
return nullptr; return nullptr;
} }
return obj; return obj;
} }
bool bool
ArrayMetaTypeDescr::construct(JSContext* cx, unsigned argc, Value* vp) ArrayMetaTypeDescr::construct(JSContext* cx, unsigned argc, Value* vp)
{ {
skipping to change at line 996 skipping to change at line 996
return nullptr; return nullptr;
descr->initReservedSlot(JS_DESCR_SLOT_TYPROTO, ObjectValue(*prototypeObj)); descr->initReservedSlot(JS_DESCR_SLOT_TYPROTO, ObjectValue(*prototypeObj));
if (!LinkConstructorAndPrototype(cx, descr, prototypeObj)) if (!LinkConstructorAndPrototype(cx, descr, prototypeObj))
return nullptr; return nullptr;
if (!CreateTraceList(cx, descr)) if (!CreateTraceList(cx, descr))
return nullptr; return nullptr;
if (!cx->zone()->typeDescrObjects.put(descr) || if (!cx->zone()->addTypeDescrObject(cx, descr) ||
!cx->zone()->typeDescrObjects.put(fieldTypeVec)) !cx->zone()->addTypeDescrObject(cx, fieldTypeVec))
{ {
ReportOutOfMemory(cx); ReportOutOfMemory(cx);
return nullptr; return nullptr;
} }
return descr; return descr;
} }
bool bool
StructMetaTypeDescr::construct(JSContext* cx, unsigned int argc, Value* vp) StructMetaTypeDescr::construct(JSContext* cx, unsigned int argc, Value* vp)
skipping to change at line 1168 skipping to change at line 1168
return false; return false;
descr->initReservedSlot(JS_DESCR_SLOT_TYPROTO, ObjectValue(*proto)); descr->initReservedSlot(JS_DESCR_SLOT_TYPROTO, ObjectValue(*proto));
RootedValue descrValue(cx, ObjectValue(*descr)); RootedValue descrValue(cx, ObjectValue(*descr));
if (!DefineProperty(cx, module, className, descrValue, nullptr, nullptr, 0)) if (!DefineProperty(cx, module, className, descrValue, nullptr, nullptr, 0))
return false; return false;
if (!CreateTraceList(cx, descr)) if (!CreateTraceList(cx, descr))
return false; return false;
if (!cx->zone()->typeDescrObjects.put(descr)) { if (!cx->zone()->addTypeDescrObject(cx, descr))
ReportOutOfMemory(cx);
return false; return false;
}
return true; return true;
} }
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
template<typename T> template<typename T>
static JSObject* static JSObject*
DefineMetaTypeDescr(JSContext* cx, DefineMetaTypeDescr(JSContext* cx,
const char* name, const char* name,
 End of changes. 4 change blocks. 
6 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)