diff options
| author | 2014-07-11 09:59:27 -0700 | |
|---|---|---|
| committer | 2014-07-15 15:45:21 -0700 | |
| commit | 4ee7a665e7f9cd2c5ace2d6304e33f64067b209f (patch) | |
| tree | e8e6867c71fde6e37ec5597e8677ab807084f734 /runtime/mirror/reference-inl.h | |
| parent | 76e6773dfed9e9bf382bbb8d6c8654525fa44b0c (diff) | |
Revert "Revert "Revert "Revert "Add intrinsic for Reference.get()""""
Fixed TargetReg issue causing build failure for x86.
This reverts commit 9e82bd3f0ce9e5f5777bea2f752ff3e251d32f9f.
Change-Id: I7e6a526954467aaf68deeed999880dfe9aa5f06e
Diffstat (limited to 'runtime/mirror/reference-inl.h')
| -rw-r--r-- | runtime/mirror/reference-inl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/mirror/reference-inl.h b/runtime/mirror/reference-inl.h index 43767c8792..b353402602 100644 --- a/runtime/mirror/reference-inl.h +++ b/runtime/mirror/reference-inl.h @@ -22,6 +22,11 @@ namespace art { namespace mirror { +inline uint32_t Reference::ClassSize() { + uint32_t vtable_entries = Object::kVTableLength + 5; + return Class::ComputeClassSize(false, vtable_entries, 2, 0, 0); +} + inline bool Reference::IsEnqueuable() { // Not using volatile reads as an optimization since this is only called with all the mutators // suspended. |