diff options
| author | 2012-07-03 15:27:47 -0700 | |
|---|---|---|
| committer | 2012-07-03 15:27:47 -0700 | |
| commit | 1d8fc2ac0748b06a0c216c572b284e0d71bb24d4 (patch) | |
| tree | c813ba90435657ba0eb26b34ea955a909b7a932c /src/compiler/Frontend.cc | |
| parent | a8eed7df4a04d3a002a04f517efe46a7f9b5c603 (diff) | |
| parent | f58c12c79cf11e6d6e3dd7db8f676d1edaf5d68b (diff) | |
Merge "Quick compiler - packed switch support" into ics-mr1-plus-art
Diffstat (limited to 'src/compiler/Frontend.cc')
| -rw-r--r-- | src/compiler/Frontend.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc index b714065c9f..9fa69115a1 100644 --- a/src/compiler/Frontend.cc +++ b/src/compiler/Frontend.cc @@ -246,6 +246,12 @@ BasicBlock *findBlock(CompilationUnit* cUnit, unsigned int codeOffset, return bb; } +/* Find existing block */ +BasicBlock* oatFindBlock(CompilationUnit* cUnit, unsigned int codeOffset) +{ + return findBlock(cUnit, codeOffset, false, false, NULL); +} + /* Turn method name into a legal Linux file name */ void oatReplaceSpecialChars(std::string& str) { @@ -781,7 +787,7 @@ CompiledMethod* oatCompileMethod(Compiler& compiler, || (PrettyMethod(method_idx, dex_file).find("FloatMath") != std::string::npos) || (PrettyMethod(method_idx, dex_file).find("Goto") != std::string::npos) || (PrettyMethod(method_idx, dex_file).find("InternedString") != std::string::npos) - // || (PrettyMethod(method_idx, dex_file).find("IntMath") != std::string::npos) + || (PrettyMethod(method_idx, dex_file).find("IntMath") != std::string::npos) || (PrettyMethod(method_idx, dex_file).find("InstField") != std::string::npos) || (PrettyMethod(method_idx, dex_file).find("MethodCall") != std::string::npos) || (PrettyMethod(method_idx, dex_file).find("Monitor") != std::string::npos) |