From 2ae48182573da7087bffc2873730bc758ec29696 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Wed, 16 Mar 2016 14:05:09 +0000 Subject: Clean up NullCheck generation and record stats about it. This removes redundant code from the generators and allows for easier stat recording. Change-Id: Iccd4368f9e9d87a6fecb863dee4e2145c97851c4 --- compiler/optimizing/code_generator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 9297fc956f..3066048132 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -278,6 +278,9 @@ class CodeGenerator { bool CanMoveNullCheckToUser(HNullCheck* null_check); void MaybeRecordImplicitNullCheck(HInstruction* instruction); + void GenerateNullCheck(HNullCheck* null_check); + virtual void GenerateImplicitNullCheck(HNullCheck* null_check) = 0; + virtual void GenerateExplicitNullCheck(HNullCheck* null_check) = 0; // Records a stack map which the runtime might use to set catch phi values // during exception delivery. -- cgit v1.2.3-59-g8ed1b