-
ggaren@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=75911 Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.h: (JSC::BytecodeGenerator::emitNodeForLeftHandSide): Cleanup: No need to explicitly cast to our return type in C++. * bytecompiler/NodesCodegen.cpp: (JSC::FunctionCallResolveNode::emitBytecode): (JSC::ApplyFunctionCallDotNode::emitBytecode): Make sure to copy our function into a temporary register before evaluating our arguments, since argument evaluation might include function calls or assignments that overwrite our callee by name. LayoutTests: Reviewed by Filip Pizlo. * fast/js/function-argument-evaluation-expected.txt: Added. * fast/js/function-argument-evaluation.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
bcf06d37