diff options
| author | 2012-04-14 11:46:01 -0700 | |
|---|---|---|
| committer | 2012-04-14 11:46:01 -0700 | |
| commit | 42f302c1da4cf1abf935d7aee29ece8d90441e0c (patch) | |
| tree | 1313bbbf93b2983e4046c5eaf023c48377e7fb9a /src/compiler/CompilerIR.h | |
| parent | 33687790adbb889abdd95bb22914acb57ce6e68c (diff) | |
| parent | a0e180632411f7fe0edf454e571c42209ee7b540 (diff) | |
Merge "Add a SafeMap equivalent to std::map but without the error-prone operator[]." into ics-mr1-plus-art
Diffstat (limited to 'src/compiler/CompilerIR.h')
| -rw-r--r-- | src/compiler/CompilerIR.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler/CompilerIR.h b/src/compiler/CompilerIR.h index 0fc26dea4c..88593bd09e 100644 --- a/src/compiler/CompilerIR.h +++ b/src/compiler/CompilerIR.h @@ -17,10 +17,12 @@ #ifndef ART_SRC_COMPILER_COMPILER_IR_H_ #define ART_SRC_COMPILER_COMPILER_IR_H_ +#include <vector> + #include "codegen/Optimizer.h" #include "CompilerUtility.h" -#include <vector> #include "oat_compilation_unit.h" +#include "safe_map.h" namespace art { @@ -519,8 +521,8 @@ struct CompilationUnit { const u2* insns; u4 insnsSize; bool disableDataflow; // Skip dataflow analysis if possible - std::map<unsigned int, BasicBlock*> blockMap; // findBlock lookup cache - std::map<unsigned int, LIR*> boundaryMap; // boundary lookup cache + SafeMap<unsigned int, BasicBlock*> blockMap; // findBlock lookup cache + SafeMap<unsigned int, LIR*> boundaryMap; // boundary lookup cache int defCount; // Used to estimate number of SSA names // If non-empty, apply optimizer/debug flags only to matching methods. |