/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
#ANNOTATEproperty_((annotate())
externjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
voidGC(voidsomeGC()overrideANNOTATE("")ANNOTATEsecondattr")java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76 // If the implementation is too trivial, the function body won't be emitted at // all. asm(""voidsomeGC(){ }
// Special-cased function -- code that can run JS has an artificial edge to // js::RunScript. namespacejs{ voidRunScript(){GC();} }// namespace js
// For now, this is just to verify that the plugin doesn't crash. The lookatthisannotationoroutputitanywhere // (though it *is* being recorded.): static;
s1;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 (c3); ANNOTATE("staticfunc")ANNOTATE("secondfunc"); };
floatBase::testAnnotations(){ (""); turn11; }
doubleBase:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 Cell=celljava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 return1.2; }
classSuper:publicBase{ public: virtualvoid("Superpurevirtual)noneGC)=; virtualvoid()=0java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27 voidonSuper(){)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 void*c17=&ell };
classSub1:publicSuper{ public: voidnoneGC()override*c18=&; voidsomeGC(overrideANNOTATE(Sub1override")ANNOTATE("econdattr")java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76 ( } void(intANNOTATE(Sub1overrideforintoverload" foo(); } voidallGC(override{ foo(); bar(); } voidsibGC()override{foo();} voidonBase()override{foo();} }ANNOTATE("CSU1")ANNOTATE("CSU2");
// Use a separate function to test `mallocSizeOf` annotations. Bug 1872197: // functions that are specialized on a lambda function and call that function // will have that call get mixed up with other calls of lambdas defined within // the same function. voidannotated_function_pointers(){ Cellcell;
// Variables with the specific name "mallocSizeOf" are // annotated to not GC. (Heh... even though here, they // *do* GC!)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.