diff options
Diffstat (limited to 'compiler/optimizing/graph_checker.h')
-rw-r--r-- | compiler/optimizing/graph_checker.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h index d085609197..564b1377ec 100644 --- a/compiler/optimizing/graph_checker.h +++ b/compiler/optimizing/graph_checker.h @@ -95,6 +95,15 @@ class GraphChecker : public HGraphDelegateVisitor { } } + // Enable/Disable the reference type info check. + // + // Return: the previous status of the check. + bool SetRefTypeInfoCheckEnabled(bool value = true) { + bool old_value = check_reference_type_info_; + check_reference_type_info_ = value; + return old_value; + } + protected: // Report a new error. void AddError(const std::string& error) { @@ -111,6 +120,10 @@ class GraphChecker : public HGraphDelegateVisitor { const char* const dump_prefix_; ScopedArenaAllocator allocator_; ArenaBitVector seen_ids_; + // Whether to perform the reference type info check for instructions which use or produce + // object references, e.g. HNewInstance, HLoadClass. + // The default value is true. + bool check_reference_type_info_ = true; DISALLOW_COPY_AND_ASSIGN(GraphChecker); }; |