summaryrefslogtreecommitdiffstats
path: root/compiler/dex/verified_method.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dex/verified_method.h')
-rw-r--r--compiler/dex/verified_method.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/dex/verified_method.h b/compiler/dex/verified_method.h
index ad07639b1c..242e3dfe6e 100644
--- a/compiler/dex/verified_method.h
+++ b/compiler/dex/verified_method.h
@@ -75,6 +75,13 @@ class VerifiedMethod {
return has_verification_failures_;
}
+ void SetStringInitPcRegMap(SafeMap<uint32_t, std::set<uint32_t>>& string_init_pc_reg_map) {
+ string_init_pc_reg_map_ = string_init_pc_reg_map;
+ }
+ const SafeMap<uint32_t, std::set<uint32_t>>& GetStringInitPcRegMap() const {
+ return string_init_pc_reg_map_;
+ }
+
private:
VerifiedMethod() = default;
@@ -114,6 +121,10 @@ class VerifiedMethod {
SafeCastSet safe_cast_set_;
bool has_verification_failures_;
+
+ // Copy of mapping generated by verifier of dex PCs of string init invocations
+ // to the set of other registers that the receiver has been copied into.
+ SafeMap<uint32_t, std::set<uint32_t>> string_init_pc_reg_map_;
};
} // namespace art