MIPS: Optimize simulator.
authorbalazs.kilvady <balazs.kilvady@imgtec.com>
Fri, 4 Sep 2015 17:39:53 +0000 (10:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 4 Sep 2015 17:40:10 +0000 (17:40 +0000)
commit09f41681ef83fe9e9d79748e2a60f16b70d5934c
tree56d049e2246c1076f944b6850ef6c42d34dac32e
parent2fe2258cc5e6db8ec5f5021ff229d3f7d17bfe61
MIPS: Optimize simulator.

The patch decreases the calls of huge switch instructions making the DecodeType*() functions to work in one phase and optimizing Instruction::InstructionType(). Speed gain in release full check is about 33% (6:13 s -> 4:09 s) and in optdebug full test is about 50% (12:29 -> 6:17)

BUG=

Review URL: https://codereview.chromium.org/1310883005

Cr-Commit-Position: refs/heads/master@{#30596}
src/mips/constants-mips.cc
src/mips/constants-mips.h
src/mips/simulator-mips.cc
src/mips/simulator-mips.h