diff options
| author | Mathieu Chartier <mathieuc@google.com> | 2014-02-13 18:02:13 -0800 |
|---|---|---|
| committer | Mathieu Chartier <mathieuc@google.com> | 2014-02-18 10:45:12 -0800 |
| commit | 815873ecc312b1d231acce71e1a16f42cdaf09f2 (patch) | |
| tree | 18ba2fa951775e60b240271bfe975e6e2cfc654c /runtime/stack.cc | |
| parent | 2befd09cf4fe89a18a655f3e1dd310831bfa769f (diff) | |
| download | android_art-815873ecc312b1d231acce71e1a16f42cdaf09f2.tar.gz android_art-815873ecc312b1d231acce71e1a16f42cdaf09f2.tar.bz2 android_art-815873ecc312b1d231acce71e1a16f42cdaf09f2.zip | |
Change root visitor to use Object**.
Simplifies code and improves the performance of root visiting since
we usually don't need to check to see if the object moved.
Change-Id: Iba998f5a15ae1fa1b53ca5226dd2168a411196cf
Diffstat (limited to 'runtime/stack.cc')
| -rw-r--r-- | runtime/stack.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc index fd7d98158a..864b86aac4 100644 --- a/runtime/stack.cc +++ b/runtime/stack.cc @@ -189,6 +189,11 @@ void StackVisitor::SetVReg(mirror::ArtMethod* m, uint16_t vreg, uint32_t new_val } } +uintptr_t* StackVisitor::GetGPRAddress(uint32_t reg) const { + DCHECK(cur_quick_frame_ != NULL) << "This is a quick frame routine"; + return context_->GetGPRAddress(reg); +} + uintptr_t StackVisitor::GetGPR(uint32_t reg) const { DCHECK(cur_quick_frame_ != NULL) << "This is a quick frame routine"; return context_->GetGPR(reg); |
