summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler_stats.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-12-01 10:31:54 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2014-12-15 22:52:27 +0000
commite53798a7e3267305f696bf658e418c92e63e0834 (patch)
tree8979bbed96b107a5a6bbae9285ff4e0c362dad95 /compiler/optimizing/optimizing_compiler_stats.h
parente6c0cdd11097dd72275ac24f1e98217c299d973e (diff)
Inlining support in optimizing.
Currently only inlines simple things that don't require an environment, such as: - Returning a constant. - Returning a parameter. - Returning an arithmetic operation. Change-Id: Ie844950cb44f69e104774a3cf7a8dea66bc85661
Diffstat (limited to 'compiler/optimizing/optimizing_compiler_stats.h')
-rw-r--r--compiler/optimizing/optimizing_compiler_stats.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/optimizing_compiler_stats.h b/compiler/optimizing/optimizing_compiler_stats.h
index 829982e792..7993b19850 100644
--- a/compiler/optimizing/optimizing_compiler_stats.h
+++ b/compiler/optimizing/optimizing_compiler_stats.h
@@ -28,6 +28,7 @@ enum MethodCompilationStat {
kAttemptCompilation = 0,
kCompiledBaseline,
kCompiledOptimized,
+ kInlinedInvoke,
kNotCompiledUnsupportedIsa,
kNotCompiledPathological,
kNotCompiledHugeMethod,
@@ -65,10 +66,10 @@ class OptimizingCompilerStats {
std::ostringstream oss;
oss << "Attempted compilation of " << compile_stats_[kAttemptCompilation] << " methods: "
<< unoptimized_percent << "% (" << compile_stats_[kCompiledBaseline] << ") unoptimized, "
- << optimized_percent << "% (" << compile_stats_[kCompiledOptimized] << ") optimized.\n";
+ << optimized_percent << "% (" << compile_stats_[kCompiledOptimized] << ") optimized.";
for (int i = 0; i < kLastStat; i++) {
if (compile_stats_[i] != 0) {
- oss << PrintMethodCompilationStat(i) << ": " << compile_stats_[i] << "\n";
+ oss << "\n" << PrintMethodCompilationStat(i) << ": " << compile_stats_[i];
}
}
LOG(INFO) << oss.str();
@@ -81,6 +82,7 @@ class OptimizingCompilerStats {
case kAttemptCompilation : return "kAttemptCompilation";
case kCompiledBaseline : return "kCompiledBaseline";
case kCompiledOptimized : return "kCompiledOptimized";
+ case kInlinedInvoke : return "kInlinedInvoke";
case kNotCompiledUnsupportedIsa : return "kNotCompiledUnsupportedIsa";
case kNotCompiledPathological : return "kNotCompiledPathological";
case kNotCompiledHugeMethod : return "kNotCompiledHugeMethod";