summaryrefslogtreecommitdiff
path: root/runtime/quick_exception_handler.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2020-02-04 12:46:47 +0000
committerNicolas Geoffray <ngeoffray@google.com>2020-02-05 17:11:49 +0000
commit51ad7fe2ecfb731d5d23e08ec3c58909825d0beb (patch)
tree3382516c2f1cd52ae3dbb5ecec2b48149de5a630 /runtime/quick_exception_handler.h
parent89b85ebb4a0daf390701f1b395d1cd01239a75a1 (diff)
Code cleanup around exception handling and stack walking.
- Remove unused code setting the method and dex pc below an upcall. - Clear cur_oat_quick_method_header when stack walking to be consistent in having a runtime method and a null oat method header. Test: test.py Change-Id: I87672d193eb2e62add3ae7b8a42f2202e8eb927c
Diffstat (limited to 'runtime/quick_exception_handler.h')
-rw-r--r--runtime/quick_exception_handler.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/runtime/quick_exception_handler.h b/runtime/quick_exception_handler.h
index 5579d368a3..4ff981d8a5 100644
--- a/runtime/quick_exception_handler.h
+++ b/runtime/quick_exception_handler.h
@@ -99,11 +99,7 @@ class QuickExceptionHandler {
}
ArtMethod* GetHandlerMethod() const {
- return handler_method_;
- }
-
- void SetHandlerMethod(ArtMethod* handler_quick_method) {
- handler_method_ = handler_quick_method;
+ return *handler_quick_frame_;
}
uint32_t GetHandlerDexPc() const {
@@ -154,8 +150,6 @@ class QuickExceptionHandler {
const OatQuickMethodHeader* handler_method_header_;
// The value for argument 0.
uintptr_t handler_quick_arg0_;
- // The handler method to report to the debugger.
- ArtMethod* handler_method_;
// The handler's dex PC, zero implies an uncaught exception.
uint32_t handler_dex_pc_;
// Should the exception be cleared as the catch block has no move-exception?