summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/codegen_util.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-08-19 12:45:42 +0000
committer Vladimir Marko <vmarko@google.com> 2015-08-19 12:45:42 +0000
commitb2c431e80e92eb6437788cc544cee6c88c3156df (patch)
tree6c0ac5f843845e4b09829eb0fd9f1b3013cf4494 /compiler/dex/quick/codegen_util.cc
parent9b688a095afbae21112df5d495487ac5231b12d0 (diff)
Revert "Optimizing: Better invoke-static/-direct dispatch."
Reverting due to failing ndebug tests. This reverts commit 9b688a095afbae21112df5d495487ac5231b12d0. Change-Id: Ie4f69da6609df3b7c8443412b6cf7f5c43c2c5d9
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
-rw-r--r--compiler/dex/quick/codegen_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc
index 72754ae5d9..8629f39702 100644
--- a/compiler/dex/quick/codegen_util.cc
+++ b/compiler/dex/quick/codegen_util.cc
@@ -1152,7 +1152,7 @@ CompiledMethod* Mir2Lir::GetCompiledMethod() {
vmap_encoder.PushBackUnsigned(0u); // Size is 0.
}
- // Sort patches by literal offset. Required for .oat_patches encoding.
+ // Sort patches by literal offset for better deduplication.
std::sort(patches_.begin(), patches_.end(), [](const LinkerPatch& lhs, const LinkerPatch& rhs) {
return lhs.LiteralOffset() < rhs.LiteralOffset();
});