summaryrefslogtreecommitdiffstats
path: root/runtime/reflection.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-03-26 23:52:41 -0700
committerIan Rogers <irogers@google.com>2014-03-26 23:56:58 -0700
commit84956ff6c0ff150d86a08157216ded79217d860a (patch)
tree04177625872b89f27f00a53b574085416617ee0d /runtime/reflection.h
parent636583c586b78e188168e510452cef0645578f8d (diff)
downloadart-84956ff6c0ff150d86a08157216ded79217d860a.zip
art-84956ff6c0ff150d86a08157216ded79217d860a.tar.gz
art-84956ff6c0ff150d86a08157216ded79217d860a.tar.bz2
Reflection tidying.
Move out arguments to the right and make pointer not reference types. Remove unused unbox for argument routine. Simplify convert primitive routine for the case of identical types. Change-Id: I6456331b0f3f3e5f0b2c361a9f50b4ed1c9462a3
Diffstat (limited to 'runtime/reflection.h')
-rw-r--r--runtime/reflection.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtime/reflection.h b/runtime/reflection.h
index d2f9f25..325998f 100644
--- a/runtime/reflection.h
+++ b/runtime/reflection.h
@@ -36,19 +36,16 @@ class ThrowLocation;
mirror::Object* BoxPrimitive(Primitive::Type src_class, const JValue& value)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
-bool UnboxPrimitiveForArgument(mirror::Object* o, mirror::Class* dst_class, JValue& unboxed_value,
- mirror::ArtMethod* m, size_t index)
- SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
-bool UnboxPrimitiveForField(mirror::Object* o, mirror::Class* dst_class, JValue& unboxed_value,
- mirror::ArtField* f)
+bool UnboxPrimitiveForField(mirror::Object* o, mirror::Class* dst_class, mirror::ArtField* f,
+ JValue* unboxed_value)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
bool UnboxPrimitiveForResult(const ThrowLocation& throw_location, mirror::Object* o,
- mirror::Class* dst_class, JValue& unboxed_value)
+ mirror::Class* dst_class, JValue* unboxed_value)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
bool ConvertPrimitiveValue(const ThrowLocation* throw_location, bool unbox_for_result,
Primitive::Type src_class, Primitive::Type dst_class,
- const JValue& src, JValue& dst)
+ const JValue& src, JValue* dst)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
JValue InvokeWithVarArgs(const ScopedObjectAccess& soa, jobject obj, jmethodID mid, va_list args)