summaryrefslogtreecommitdiff
path: root/runtime/exception_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2014-02-25 17:53:53 +0000
committer Vladimir Marko <vmarko@google.com> 2014-02-25 19:03:17 +0000
commit2e589aa58a1372909f95e731fd6b8895f6359c3a (patch)
tree6337f7e4765a6c6c1ba5d21e9f3f7c4ebe4971ee /runtime/exception_test.cc
parent661425e1f90d4f4ed44c66f5e74f48b92a3798df (diff)
Encode VmapTable entries offset by 2 to reduce size.
We're using special values 0xffff and 0xfffe for an fp register marker and for method pointer, respectively. These values were being encoded as 3 bytes each and this changes their encoding to 1 byte. Bug: 9437697 Change-Id: Ic1720e898b131a5d3f6ca87d8e1ecdf76fb4160a
Diffstat (limited to 'runtime/exception_test.cc')
-rw-r--r--runtime/exception_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/exception_test.cc b/runtime/exception_test.cc
index c7f537a785..910a817b2e 100644
--- a/runtime/exception_test.cc
+++ b/runtime/exception_test.cc
@@ -28,6 +28,7 @@
#include "sirt_ref.h"
#include "thread.h"
#include "UniquePtr.h"
+#include "vmap_table.h"
namespace art {
@@ -66,7 +67,7 @@ class ExceptionTest : public CommonTest {
fake_mapping_data_.PushBackUnsigned(3 - 0); // offset 3
fake_mapping_data_.PushBackSigned(3 - 0); // maps to dex offset 3
- fake_vmap_table_data_.PushBackUnsigned(0);
+ fake_vmap_table_data_.PushBackUnsigned(0 + VmapTable::kEntryAdjustment);
fake_gc_map_.push_back(0); // 0 bytes to encode references and native pc offsets.
fake_gc_map_.push_back(0);