OSDN Git Service

ART: Fix underflow in codegen
authorAndreas Gampe <agampe@google.com>
Sun, 26 Feb 2017 22:10:28 +0000 (14:10 -0800)
committerAndreas Gampe <agampe@google.com>
Sun, 26 Feb 2017 22:12:02 +0000 (14:12 -0800)
commit0c95c12a102cb8c1514410be6e264f9730d847a7
tree30c5f581ee7dd3186a9498f9fdc527aa0c31edc7
parent5e2227b961980c69361050a4396763937285af9b
ART: Fix underflow in codegen

Check for count == 0 first before accessing non-existent stack map.

Test: m ART_TEST_JIT=true test-art-host
Test: m ART_TEST_JIT=true test-art-host-run-test-913-heaps
Change-Id: Id4cad8e791d731147860b8a9a0d90cc893cc6972
compiler/optimizing/code_generator.cc