-
barraclough@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120174 Reviewed by Geoff Garen. We currently always allocate registers for new global variables, but these are wasted when the variable is being redeclared. Only allocate new registers when necessary. No performance impact. * interpreter/Interpreter.cpp: (JSC::Interpreter::execute): * runtime/Executable.cpp: (JSC::ProgramExecutable::initializeGlobalProperties): - Don't allocate the register here. * runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::addGlobalVar): - Allocate the register here instead. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6962a520