32. A method for partial binary translation, the method comprising: executing native code in a native state of a processor core of a multi-core processor of a computing device; transitioning from the native state to a non-preemptive translation nucleus state of the processor core in response to detecting a hotspot event generated by a profiler of the multi- core processor; transitioning from the translation nucleus state to a preemptive translation runtime state of the processor core in response to starting a local translation thread or a local analysis thread to generate translated code for installation; transitioning from the translation nucleus state to a preemptive global thread runtime state of the processor core in response to starting a global thread to install the generated translated code in a global translation cache; and transitioning from the global thread runtime state to a non-preemptive global thread nucleus state of the processor core in response to writing data into the global translation cache.
32. A method for partial binary translation, the method comprising: executing native code in a native state of a processor core of a multi-core processor of a computing device; transitioning from the native state to a non-preemptive translation nucleus state of the processor core in response to detecting a hotspot event generated by a profiler of the multi- core processor; transitioning from the translation nucleus state to a preemptive translation runtime state of the processor core in response to starting a local translation thread or a local analysis thread to generate translated code for installation; transitioning from the translation nucleus state to a preemptive global thread runtime state of the processor core in response to starting a global thread to install the generated translated code in a global translation cache; and transitioning from the global thread runtime state to a non-preemptive global thread nucleus state of the processor core in response to writing data into the global translation cache. 33. The method of claim 32 , further comprising: suspending the global thread in response to detecting an interrupt while in the global thread runtime state; and transitioning from the translation nucleus state to the global thread runtime state in response to resuming the global thread, wherein (i) transitioning from the translation nucleus state to the global thread runtime state comprises migrating the global thread to the processor core, and (ii) transitioning from the translation nucleus state to the global thread runtime state has higher priority than to transition from the translation nucleus state to the preemptive translation runtime state.