1. A method for processing a dynamic language application in an electronic device, the method comprising: generating, for the dynamic language application, a first machine code using a first processor and a second machine code using a second processor; processing the dynamic language application by executing the first machine code; replacing the first machine code with the second machine code; and processing the dynamic language application continuously by executing the second machine code.