-
darin@apple.com authored
Reviewed by Maciej. - http://bugs.webkit.org/show_bug.cgi?id=15807 HashMap needs a take() function that combines get and remove * wtf/HashMap.h: Added take function. Simplistic implementation for now, but still does only one hash table lookup. * kjs/array_instance.cpp: (KJS::ArrayInstance::put): Use take rather than a find followed by a remove. WebCore: Reviewed by Maciej. - use the new HashMap::take function where appropriate * bindings/js/kjs_binding.cpp: (KJS::addWrapper): Made an inline rather than a macro; inlines good, macros bad. (KJS::removeWrapper): Ditto. (KJS::removeWrappers): Ditto. (KJS::ScriptInterpreter::putDOMObject): Use the inline instead of the macro. (KJS::ScriptInterpreter::forgetDOMObject): Ditto. This involves using take instead of remove -- in theory ever so slightly less efficient, but I think it's fine. (KJS::ScriptInterp...
387d7a0e