summaryrefslogtreecommitdiff
path: root/runtime/lambda/closure.cc
diff options
context:
space:
mode:
author Igor Murashkin <iam@google.com> 2015-11-21 00:55:35 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-11-21 00:55:35 +0000
commitb48cb936e6fa52d0ded29bac4f1f654cdf112ac6 (patch)
treeb192c4698c4889ae90db6abe2652199802213fe6 /runtime/lambda/closure.cc
parent3944f7175dcf60316ba58a42698ccf23c65ac57c (diff)
parent457e874459ae638145cab6d572e34d48480e39d2 (diff)
Merge "lambda: Add support for invoke-interface for boxed innate lambdas"
Diffstat (limited to 'runtime/lambda/closure.cc')
-rw-r--r--runtime/lambda/closure.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/lambda/closure.cc b/runtime/lambda/closure.cc
index 179e4ee7f2..f935e049fd 100644
--- a/runtime/lambda/closure.cc
+++ b/runtime/lambda/closure.cc
@@ -20,9 +20,6 @@
#include "lambda/art_lambda_method.h"
#include "runtime/mirror/object_reference.h"
-static constexpr const bool kClosureSupportsReferences = false;
-static constexpr const bool kClosureSupportsGarbageCollection = false;
-
namespace art {
namespace lambda {
@@ -128,6 +125,10 @@ ArtMethod* Closure::GetTargetMethod() const {
return const_cast<ArtMethod*>(lambda_info_->GetArtMethod());
}
+ArtLambdaMethod* Closure::GetLambdaInfo() const {
+ return const_cast<ArtLambdaMethod*>(lambda_info_);
+}
+
uint32_t Closure::GetHashCode() const {
// Start with a non-zero constant, a prime number.
uint32_t result = 17;