OSDN Git Service

MethodHandles: Enable return value conversions.
authorOrion Hodson <oth@google.com>
Wed, 9 Nov 2016 08:32:42 +0000 (08:32 +0000)
committerOrion Hodson <oth@google.com>
Thu, 10 Nov 2016 19:53:57 +0000 (19:53 +0000)
commit1a06f9f67a4e91610d2a050093b36de264904916
treefc1630bba8730f4ad3fdac447d14a3682fe35c03
parentb98115251ea963254fb55c0e48581d8b284c29e9
MethodHandles: Enable return value conversions.

Enables return values conversions and simplify the type conversion
logic. Ensures check for WrongMethodTypeExceptions before invoking a
method handle.

Test: m test-art-host-run-test-956-methodhandles
Bug: 30550796

Change-Id: I8add3ad0a19b43010946b4fb9f1c0f0949287860
runtime/interpreter/interpreter_common.cc
runtime/method_handles.cc
runtime/method_handles.h
runtime/mirror/method_type.cc
runtime/mirror/method_type.h
runtime/primitive.cc
runtime/primitive.h
test/956-methodhandles/expected.txt
test/956-methodhandles/src/Main.java
test/959-invoke-polymorphic-accessors/src/Main.java