diff options
author | Mathieu Chartier <mathieuc@google.com> | 2016-11-10 11:25:57 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2016-11-10 12:45:56 -0800 |
commit | 3af00dc3918dfaacd51fb0ef604de51dd6dc9af4 (patch) | |
tree | ec07882ae02d98bd9841646ce9e8bb1349e9c751 /compiler/optimizing/code_generator_arm.h | |
parent | 977919fbcbfbf0c1c3fa97e51490bc678da646d2 (diff) |
Use enum for read barrier options in compiler
Enums are just phenomenal. Also fixed a double load error in x86
interface check cast fast path.
Test: test-art-host
Change-Id: Iea403ce579145b6a294073f3900ad6921c1a0d53
Diffstat (limited to 'compiler/optimizing/code_generator_arm.h')
-rw-r--r-- | compiler/optimizing/code_generator_arm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/code_generator_arm.h b/compiler/optimizing/code_generator_arm.h index e953df893d..f95dd573cb 100644 --- a/compiler/optimizing/code_generator_arm.h +++ b/compiler/optimizing/code_generator_arm.h @@ -264,7 +264,7 @@ class InstructionCodeGeneratorARM : public InstructionCodeGenerator { Location out, uint32_t offset, Location maybe_temp, - bool emit_read_barrier); + ReadBarrierOption read_barrier_option); // Generate a heap reference load using two different registers // `out` and `obj`: // @@ -280,17 +280,17 @@ class InstructionCodeGeneratorARM : public InstructionCodeGenerator { Location obj, uint32_t offset, Location maybe_temp, - bool emit_read_barrier); + ReadBarrierOption read_barrier_option); // Generate a GC root reference load: // // root <- *(obj + offset) // - // while honoring read barriers if `requires_read_barrier` is true. + // while honoring read barriers based on read_barrier_option. void GenerateGcRootFieldLoad(HInstruction* instruction, Location root, Register obj, uint32_t offset, - bool requires_read_barrier); + ReadBarrierOption read_barrier_option); void GenerateTestAndBranch(HInstruction* instruction, size_t condition_input_index, Label* true_target, |