Add GC map to oat file
Change-Id: Ied0462c711a09e2542f231c3b2fa31239958bd28
diff --git a/src/common_test.h b/src/common_test.h
index c89527c..402766f 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -105,6 +105,7 @@
const uint32_t fp_spill_mask,
const uint32_t* mapping_table,
const uint16_t* vmap_table,
+ const uint8_t* gc_map,
const Method::InvokeStub* invoke_stub) {
return OatFile::OatMethod(NULL,
reinterpret_cast<uint32_t>(code),
@@ -113,6 +114,7 @@
fp_spill_mask,
reinterpret_cast<uint32_t>(mapping_table),
reinterpret_cast<uint32_t>(vmap_table),
+ reinterpret_cast<uint32_t>(gc_map),
reinterpret_cast<uint32_t>(invoke_stub));
}
@@ -148,6 +150,7 @@
compiled_method->GetFpSpillMask(),
&compiled_method->GetMappingTable()[0],
&compiled_method->GetVmapTable()[0],
+ NULL,
method_invoke_stub);
oat_method.LinkMethodPointers(method);
} else {
@@ -160,6 +163,7 @@
0,
NULL,
NULL,
+ NULL,
method_invoke_stub);
oat_method.LinkMethodPointers(method);
}