summaryrefslogtreecommitdiff
path: root/test/CreateMethodSignature/CreateMethodSignature.java
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2013-09-25 20:26:14 -0700
committer Ian Rogers <irogers@google.com> 2013-09-26 21:08:25 -0700
commitd91d6d6a80748f277fd938a412211e5af28913b1 (patch)
tree5c45f4ae53aab3f530284a97dc328b4e38ce7c94 /test/CreateMethodSignature/CreateMethodSignature.java
parent9c11b56296b8cffc94b0b854ce6cff7e014b8d57 (diff)
Introduce Signature type to avoid string comparisons.
Method resolution currently creates strings to then compare with strings formed from methods in other dex files. The temporary strings are purely created for the sake of comparisons. This change creates a new Signature type that represents a method signature but not as a string. This type supports comparisons and so can be used when searching for methods in resolution. With this change malloc is no longer the hottest method during dex2oat (now its memset) and allocations during verification have been reduced. The verifier is commonly what is populating the dex cache for methods and fields not declared in the dex file itself. Change-Id: I5ef0542823fbcae868aaa4a2457e8da7df0e9dae
Diffstat (limited to 'test/CreateMethodSignature/CreateMethodSignature.java')
-rw-r--r--test/CreateMethodSignature/CreateMethodSignature.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/CreateMethodSignature/CreateMethodSignature.java b/test/CreateMethodSignature/CreateMethodSignature.java
deleted file mode 100644
index f6cd6ae6fd..0000000000
--- a/test/CreateMethodSignature/CreateMethodSignature.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (C) 2011 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-class CreateMethodSignature {
- Float m1(int a, double b, long c, Object d) { return null; }
- CreateMethodSignature m2(boolean x, short y, char z) { return null; }
-}