A Dynamic and Static Binary Translation Method Based on Branch Prediction