#include"vm/JSContext.h" // When JSGC_ANALYSIS is #defined, Rooted<JSLinearString*> needs the definition // of JSLinearString in order to figure out its ThingRootKind #include"vm/StringType.h"
// I expect this will be a non-inlined string.
JS::Rooted<JSString*> stars(cx,
JS_NewStringCopyZ(cx, "*************************" "*************************" "*************************" "*************************"));
// This may well be an inlined string.
JS::Rooted<JSString*> xz(cx, JS_ConcatStrings(cx, x, z));
// This will probably be a rope.
JS::Rooted<JSString*> doubleStars(cx, JS_ConcatStrings(cx, stars, stars));
// Ensure we're not confused by typedefs for pointer types.
JSString* xRaw = x;
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.