The member was a duplicate of stringPool, there is no point in caching
a cache.
Change-Id: If34c80ee120dfaff1dd94326625b02d8014806dc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
String *ExecutionEngine::identifier(const QString &s)
{
- String *&id = identifiers[s];
- if (! id)
- id = newString(s);
- return id;
+ return stringPool->newString(s);
}
Function *ExecutionEngine::newFunction(const QString &name)
TypeErrorPrototype *typeErrorPrototype;
URIErrorPrototype *uRIErrorPrototype;
- QHash<QString, String *> identifiers;
-
String *id_length;
String *id_prototype;
String *id_constructor;