From eb8167a4f4d27fce0530f6724ab8032610cd146b Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 7 May 2014 15:43:14 -0700 Subject: Add Handle/HandleScope and delete SirtRef. Delete SirtRef and replaced it with Handle. Handles are value types which wrap around StackReference*. Renamed StackIndirectReferenceTable to HandleScope. Added a scoped handle wrapper which wraps around an Object** and restores it in its destructor. Renamed Handle::get -> Get. Bug: 8473721 Change-Id: Idbfebd4f35af629f0f43931b7c5184b334822c7a --- compiler/oat_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/oat_test.cc') diff --git a/compiler/oat_test.cc b/compiler/oat_test.cc index 66972cb..558ff1f 100644 --- a/compiler/oat_test.cc +++ b/compiler/oat_test.cc @@ -153,7 +153,8 @@ TEST_F(OatTest, WriteRead) { num_virtual_methods = it.NumVirtualMethods(); } const char* descriptor = dex_file->GetClassDescriptor(class_def); - SirtRef loader(soa.Self(), nullptr); + StackHandleScope<1> hs(soa.Self()); + auto loader(hs.NewHandle(nullptr)); mirror::Class* klass = class_linker->FindClass(soa.Self(), descriptor, loader); const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(i); -- cgit v1.1