summaryrefslogtreecommitdiff
path: root/libdexfile/dex/dex_instruction_test.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-06-18 13:33:55 -0700
committer Andreas Gampe <agampe@google.com> 2018-06-19 17:11:21 -0700
commit89de444350fdbd7df4fb4d95bb71f00e6673b466 (patch)
tree57fa7214c4059afcfd11aa35a81999b8558b91b8 /libdexfile/dex/dex_instruction_test.cc
parente383d23918db4eede30c3d78589d4639de3ec446 (diff)
ART: Fix some performance-X tidy
Fix performance-for-range-copy, performance-unnecessary-copy-initialization and performance-unnecessary-value-param issues. Test: mmma art Test: m test-art-host Change-Id: I43d8736fc541030a3c61f66aeee0b9c2f1d295f7
Diffstat (limited to 'libdexfile/dex/dex_instruction_test.cc')
-rw-r--r--libdexfile/dex/dex_instruction_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdexfile/dex/dex_instruction_test.cc b/libdexfile/dex/dex_instruction_test.cc
index c944085b9e..6ce9dbafc8 100644
--- a/libdexfile/dex/dex_instruction_test.cc
+++ b/libdexfile/dex/dex_instruction_test.cc
@@ -135,7 +135,7 @@ TEST(Instruction, PropertiesOf4rcc) {
static void Build35c(uint16_t* out,
Instruction::Code code,
uint16_t method_idx,
- std::vector<uint16_t> args) {
+ const std::vector<uint16_t>& args) {
out[0] = 0;
out[0] |= (args.size() << 12);
out[0] |= static_cast<uint16_t>(code);
@@ -152,7 +152,7 @@ static void Build35c(uint16_t* out,
static std::string DumpInst35c(Instruction::Code code,
uint16_t method_idx,
- std::vector<uint16_t> args) {
+ const std::vector<uint16_t>& args) {
uint16_t inst[6] = {};
Build35c(inst, code, method_idx, args);
return Instruction::At(inst)->DumpString(nullptr);