Bug 609440, part 2 - do lazy allocation, dag-ify ropes (assume no oom) (r=njn)

This commit is contained in:
Luke Wagner
2010-11-30 18:41:32 -08:00
parent 65f37ca33a
commit 24c3c8f13f
13 changed files with 551 additions and 653 deletions

View File

@@ -514,7 +514,7 @@ js_AtomizeString(JSContext *cx, JSString *str, uintN flags)
/* Finish handing off chars to the GC'ed key string. */
JS_ASSERT(flags & ATOM_TMPSTR);
str->mChars = NULL;
str->u.chars = NULL;
} else {
key = js_NewStringCopyN(cx, chars, length);
if (!key)