summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.h
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2015-11-12 14:44:19 +0000
committerVladimir Marko <vmarko@google.com>2015-11-12 17:58:50 +0000
commit6dc01748c61a7ad41d4ab701d3e27897bd39a899 (patch)
tree4c536fc4ab19c3f99b8dddfa8bafbe11deaec0d7 /compiler/common_compiler_test.h
parentcff81076cbb4bbe3841942f14326f4401fa3c8df (diff)
Minor fixes and cleaning of arm64 static and direct calls code.
Fixes: The proper way to avoid the MacroAssembler to generate code before or after an instruction is to block the pools (usually via `vixl::BlockPoolsScope`). Here we can use `vixl::SingleEmissionCheckScope`, that checks we generate only one instruction and also blocks the pools. In practice the current code would have worked fine because VIXL would not have generated anything after `Bl()` or `Ldr()`, but that was not guaranteed. Cleaning: - `XRegisterFrom()` returns an X register. Calling `.X()` is not required. - Since we are sure (after the previous fixes) that nothing will be emitted around the instructions we care about, update the code to bind labels before the instructions for simplicity. Change-Id: I42d49976721e380e66bcd7a5b345f1777009434a
Diffstat (limited to 'compiler/common_compiler_test.h')
0 files changed, 0 insertions, 0 deletions