summaryrefslogtreecommitdiffstats
path: root/runtime/utils.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-06-06 23:37:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-06 23:37:27 +0000
commit4479ba35389b03ccc9eabd17fba6168f9505517a (patch)
treefb8091b4637b27d8a9d3d4f390b79263a12d9881 /runtime/utils.cc
parent081203e06534e4aa27a942e47084289eecab29ed (diff)
parent61c5ebc6aee2cac1c363de6fbdac25ada1697fdb (diff)
downloadart-4479ba35389b03ccc9eabd17fba6168f9505517a.zip
art-4479ba35389b03ccc9eabd17fba6168f9505517a.tar.gz
art-4479ba35389b03ccc9eabd17fba6168f9505517a.tar.bz2
Merge "Change FieldHelper to use a handle."
Diffstat (limited to 'runtime/utils.cc')
-rw-r--r--runtime/utils.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc
index dd64e52..ef2047b 100644
--- a/runtime/utils.cc
+++ b/runtime/utils.cc
@@ -290,15 +290,15 @@ std::string PrettyField(mirror::ArtField* f, bool with_type) {
if (f == NULL) {
return "null";
}
- FieldHelper fh(f);
std::string result;
if (with_type) {
- result += PrettyDescriptor(fh.GetTypeDescriptor());
+ result += PrettyDescriptor(f->GetTypeDescriptor());
result += ' ';
}
- result += PrettyDescriptor(fh.GetDeclaringClassDescriptor());
+ StackHandleScope<1> hs(Thread::Current());
+ result += PrettyDescriptor(FieldHelper(hs.NewHandle(f)).GetDeclaringClassDescriptor());
result += '.';
- result += fh.GetName();
+ result += f->GetName();
return result;
}