diff options
| author | 2015-11-21 00:55:35 +0000 | |
|---|---|---|
| committer | 2015-11-21 00:55:35 +0000 | |
| commit | b48cb936e6fa52d0ded29bac4f1f654cdf112ac6 (patch) | |
| tree | b192c4698c4889ae90db6abe2652199802213fe6 /runtime/lambda/closure.cc | |
| parent | 3944f7175dcf60316ba58a42698ccf23c65ac57c (diff) | |
| parent | 457e874459ae638145cab6d572e34d48480e39d2 (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.cc | 7 |
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; |