/
/
unpacker.cc
uint32_t args_size
=
(uint32_t)ArtMethod::NumArgRegisters(method
-
>GetShorty());
if
(!method
-
>IsStatic()) {
args_size
+
=
1
;
}
JValue result;
std::vector<uint32_t> args(args_size,
0
);
if
(!method
-
>IsStatic()) {
mirror::
Object
*
thiz
=
klass
-
>AllocObject(
self
);
args[
0
]
=
StackReference<mirror::
Object
>::FromMirrorPtr(thiz).AsVRegValue();
}
method
-
>Invoke(
self
, args.data(), args_size, &result, method
-
>GetShorty());
/
/
art_method.cc
if
(UNLIKELY(!runtime
-
>IsStarted() || Dbg::IsForcedInterpreterNeededForCalling(
self
, this)
|| (Unpacker::isFakeInvoke(
self
, this) && !this
-
>IsNative()))) {
if
(IsStatic()) {
art::interpreter::EnterInterpreterFromInvoke(
self
, this, nullptr, args, result,
/
*
stay_in_interpreter
*
/
true);
}
else
{
mirror::
Object
*
receiver
=
reinterpret_cast<StackReference<mirror::
Object
>
*
>(&args[
0
])
-
>AsMirrorPtr();
art::interpreter::EnterInterpreterFromInvoke(
self
, this, receiver, args
+
1
, result,
/
*
stay_in_interpreter
*
/
true);
}
}
/
/
interpreter.cc
static constexpr InterpreterImplKind kInterpreterImplKind
=
kSwitchImplKind;