X86_64: Inline checking for kInterfaceCheck check cast
Interface check-cast with read barriers:
Before: 5.27 ns/check
After: 2.36 ns/check
Code expansion is 0.29%.
Test: test-art-host
Bug: 32577579
Bug: 29516974
Change-Id: Ie48251f97fbf2c95bd0a7c4bd62075414f8e3ae3
diff --git a/compiler/optimizing/code_generator_x86_64.h b/compiler/optimizing/code_generator_x86_64.h
index 8b19dad..5a6dc54 100644
--- a/compiler/optimizing/code_generator_x86_64.h
+++ b/compiler/optimizing/code_generator_x86_64.h
@@ -248,7 +248,8 @@
void GenerateReferenceLoadTwoRegisters(HInstruction* instruction,
Location out,
Location obj,
- uint32_t offset);
+ uint32_t offset,
+ bool emit_read_barrier);
// Generate a GC root reference load:
//
// root <- *address