1. A method for processing a dynamic language application in an electronic device including a first processor and a second processor, the method comprising: generating, for the dynamic language application, a first machine code by compiling a dynamic language source code through the first processor and a second machine code by compiling the same dynamic language source code through the second processor; processing the dynamic language source code by using the first machine code; replacing the first machine code with the second machine code; and processing, after replacing the first machine code by the second machine code, the dynamic language source code continuously by using the second machine code, wherein the first machine code is of a first quality, and the second machine code is of a second quality that is higher than the first quality, and wherein a quality of a machine code varies according to a level of code optimization, and a high-quality machine code is highly optimized and has a longer translation time in comparison to a low-quality machine code.