summaryrefslogtreecommitdiff
path: root/runtime/art_method.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/art_method.h')
-rw-r--r--runtime/art_method.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtime/art_method.h b/runtime/art_method.h
index f433223ebf..ab90a10f5a 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -27,6 +27,7 @@
#include "base/iteration_range.h"
#include "base/macros.h"
#include "base/runtime_debug.h"
+#include "code_item_accessors.h"
#include "dex_file.h"
#include "dex_instruction_iterator.h"
#include "gc_root.h"
@@ -716,13 +717,9 @@ class ArtMethod FINAL {
"ptr_sized_fields_.entry_point_from_quick_compiled_code_");
}
- // Returns the dex instructions of the code item for the art method. Must not be called on null
- // code items.
- ALWAYS_INLINE IterationRange<DexInstructionIterator> DexInstructions()
- REQUIRES_SHARED(Locks::mutator_lock_);
-
- // Handles a null code item by returning iterators that have a null address.
- ALWAYS_INLINE IterationRange<DexInstructionIterator> NullableDexInstructions()
+ // Returns the dex instructions of the code item for the art method. Returns an empty array for
+ // the null code item case.
+ ALWAYS_INLINE CodeItemInstructionAccessor DexInstructions()
REQUIRES_SHARED(Locks::mutator_lock_);
protected: