diff options
| author | 2014-11-12 09:19:35 +0000 | |
|---|---|---|
| committer | 2014-11-12 09:19:36 +0000 | |
| commit | 36750ca45fcbe4706d3a3419cf7f988a129a876c (patch) | |
| tree | af321a2f2d4555f56e0ffcbe31cb4e313b8d35c7 /compiler/optimizing/builder.h | |
| parent | 401da919c67ceb8fbcac81596327ecc10b73389b (diff) | |
| parent | 57a88d4ac205874dc85d22f9f6a9ca3c4c373eeb (diff) | |
Merge "Implement checkcast for optimizing."
Diffstat (limited to 'compiler/optimizing/builder.h')
| -rw-r--r-- | compiler/optimizing/builder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index 09c9a51260..9cf83055b2 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -173,6 +173,14 @@ class HGraphBuilder : public ValueObject { uint32_t element_count, uint32_t dex_offset); + // Builds a `HInstanceOf`, or a `HCheckCast` instruction. + // Returns whether we succeeded in building the instruction. + bool BuildTypeCheck(const Instruction& instruction, + uint8_t destination, + uint8_t reference, + uint16_t type_index, + uint32_t dex_offset); + ArenaAllocator* const arena_; // A list of the size of the dex code holding block information for |