summaryrefslogtreecommitdiff
path: root/runtime/deoptimize_stack_visitor.h
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2014-05-30 19:53:48 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-05-30 19:53:48 +0000
commitb413cd79c46b7c48ac763cb8152a55a4ed60fe9f (patch)
treed4f09efe7ba5eb3891d26f3a8b1033b02bb72328 /runtime/deoptimize_stack_visitor.h
parent22460ecbaae7e489a3bc17a2adb2e7e9d0028f9c (diff)
parent5cf98196d488437acd1e989c08a554ef697fded1 (diff)
Merge "Don't report down-calls as unhandled exceptions."
Diffstat (limited to 'runtime/deoptimize_stack_visitor.h')
-rw-r--r--runtime/deoptimize_stack_visitor.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/runtime/deoptimize_stack_visitor.h b/runtime/deoptimize_stack_visitor.h
deleted file mode 100644
index c41b80364b..0000000000
--- a/runtime/deoptimize_stack_visitor.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2014 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef ART_RUNTIME_DEOPTIMIZE_STACK_VISITOR_H_
-#define ART_RUNTIME_DEOPTIMIZE_STACK_VISITOR_H_
-
-#include "base/mutex.h"
-#include "stack.h"
-#include "thread.h"
-
-namespace art {
-
-namespace mirror {
-class ArtMethod;
-} // namespace mirror
-class QuickExceptionHandler;
-class Thread;
-
-// Prepares deoptimization.
-class DeoptimizeStackVisitor FINAL : public StackVisitor {
- public:
- DeoptimizeStackVisitor(Thread* self, Context* context, QuickExceptionHandler* exception_handler)
- SHARED_LOCKS_REQUIRED(Locks::mutator_lock_)
- : StackVisitor(self, context), self_(self), exception_handler_(exception_handler),
- prev_shadow_frame_(nullptr) {
- CHECK(!self_->HasDeoptimizationShadowFrame());
- }
-
- bool VisitFrame() OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
-
- private:
- bool HandleDeoptimization(mirror::ArtMethod* m) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
-
- Thread* const self_;
- QuickExceptionHandler* const exception_handler_;
- ShadowFrame* prev_shadow_frame_;
-
- DISALLOW_COPY_AND_ASSIGN(DeoptimizeStackVisitor);
-};
-
-} // namespace art
-#endif // ART_RUNTIME_DEOPTIMIZE_STACK_VISITOR_H_