OSDN Git Service

ART: String intrinsics for Mterp interpreter
authorbuzbee <buzbee@google.com>
Thu, 9 Mar 2017 21:51:23 +0000 (13:51 -0800)
committerbuzbee <buzbee@google.com>
Fri, 10 Mar 2017 21:08:32 +0000 (13:08 -0800)
commite667a3c2e4cae5a977e412a1d80f31a1dc4f3028
treeeb7b8832797e62d0389443148b1d5afb5e8d7071
parentc02fe5f31d487765a8c59922c46d459ba6ebf939
ART: String intrinsics for Mterp interpreter

Adds the most common java.lang.string intrinsics.  Includes change
to jvalue handling to zero-exend setting of chars and booleans to
64 bits (aligns with current sign-extension of shorts and ints).

Bug: 30933338

Benchmarks:
  2x boost for Caffeinemark String
  11% improvement for Dhrystone

Test: ART_TEST_INTERPRETER=true m test-art-host
Test: ART_TEST_INTERPRETER=true m test-art-target (Bullhead)

Note: Added intrinsics have existing test coverage via
082-inline-execute and 123-inline-execute2.

Change-Id: I64b35b1d7bdfe14da0c662594c0edf5cde667277
runtime/interpreter/interpreter_intrinsics.cc
runtime/jvalue.h