summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.h
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2016-03-16 14:05:09 +0000
committer Calin Juravle <calin@google.com> 2016-03-16 14:10:27 +0000
commit2ae48182573da7087bffc2873730bc758ec29696 (patch)
treed6955329ad876aefd477f7ef8905b070b9ab95dd /compiler/optimizing/code_generator.h
parent6915898b28cea6c9836ca1be6814d87e89cc6d76 (diff)
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
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r--compiler/optimizing/code_generator.h3
1 files changed, 3 insertions, 0 deletions
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.