Bug 521423. Make JSString 4 words instead of 2; make substring() and company never have to copy. r=brendan

This commit is contained in:
Boris Zbarsky
2009-12-03 14:39:42 -05:00
parent a944469af4
commit bad2c56d7c
5 changed files with 56 additions and 157 deletions

View File

@@ -748,7 +748,7 @@ js_AtomizeString(JSContext *cx, JSString *str, uintN flags)
if (!key)
return NULL;
}
} else {
} else {
JS_ASSERT(str->isDependent());
if (!js_UndependString(cx, str))
return NULL;