1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // AUTO-GENENERATED by gen_srcs.py: DO NOT EDIT HERE DIRECTLY. 18 // 19 // $> python3.4 gen_srcs.py > src/art/Test988Intrinsics.java 20 // 21 // RUN ABOVE COMMAND TO REGENERATE THIS FILE. 22 23 package art; 24 25 class Test988Intrinsics { 26 // Pre-initialize *all* instance variables used so that their constructors are not in the trace. 27 static java.lang.String instance_java_lang_String = "some large string"; 28 static java.lang.StringBuffer instance_java_lang_StringBuffer = new java.lang.StringBuffer("some large string buffer"); 29 static java.lang.StringBuilder instance_java_lang_StringBuilder = new java.lang.StringBuilder("some large string builder"); 30 initialize()31 static void initialize() { 32 // Ensure all static variables are initialized. 33 // In addition, pre-load classes here so that we don't see diverging class loading traces. 34 java.lang.Double.class.toString(); 35 java.lang.Float.class.toString(); 36 java.lang.Integer.class.toString(); 37 java.lang.Long.class.toString(); 38 java.lang.Short.class.toString(); 39 java.lang.Math.class.toString(); 40 java.lang.Thread.class.toString(); 41 java.lang.String.class.toString(); 42 java.lang.StringBuffer.class.toString(); 43 java.lang.StringBuilder.class.toString(); 44 } 45 test()46 static void test() { 47 // Call each intrinsic from art/runtime/intrinsics_list.h to make sure they are traced. 48 java.lang.Double.doubleToRawLongBits(0.0); 49 java.lang.Double.doubleToLongBits(0.0); 50 java.lang.Double.isInfinite(0.0); 51 java.lang.Double.isNaN(0.0); 52 java.lang.Double.longBitsToDouble(0L); 53 java.lang.Float.floatToRawIntBits(0.0f); 54 java.lang.Float.floatToIntBits(0.0f); 55 java.lang.Float.isInfinite(0.0f); 56 java.lang.Float.isNaN(0.0f); 57 java.lang.Float.intBitsToFloat(0); 58 java.lang.Integer.reverse(0); 59 java.lang.Integer.reverseBytes(0); 60 java.lang.Integer.bitCount(0); 61 java.lang.Integer.compare(0, 0); 62 java.lang.Integer.highestOneBit(0); 63 java.lang.Integer.lowestOneBit(0); 64 java.lang.Integer.numberOfLeadingZeros(0); 65 java.lang.Integer.numberOfTrailingZeros(0); 66 java.lang.Integer.rotateRight(0, 0); 67 java.lang.Integer.rotateLeft(0, 0); 68 java.lang.Integer.signum(0); 69 java.lang.Long.reverse(0L); 70 java.lang.Long.reverseBytes(0L); 71 java.lang.Long.bitCount(0L); 72 java.lang.Long.compare(0L, 0L); 73 java.lang.Long.highestOneBit(0L); 74 java.lang.Long.lowestOneBit(0L); 75 java.lang.Long.numberOfLeadingZeros(0L); 76 java.lang.Long.numberOfTrailingZeros(0L); 77 java.lang.Long.rotateRight(0L, 0); 78 java.lang.Long.rotateLeft(0L, 0); 79 java.lang.Long.signum(0L); 80 java.lang.Short.reverseBytes((short)0); 81 java.lang.Math.abs(0.0); 82 java.lang.Math.abs(0.0f); 83 java.lang.Math.abs(0L); 84 java.lang.Math.abs(0); 85 java.lang.Math.min(0.0, 0.0); 86 java.lang.Math.min(0.0f, 0.0f); 87 java.lang.Math.min(0L, 0L); 88 java.lang.Math.min(0, 0); 89 java.lang.Math.max(0.0, 0.0); 90 java.lang.Math.max(0.0f, 0.0f); 91 java.lang.Math.max(0L, 0L); 92 java.lang.Math.max(0, 0); 93 java.lang.Math.cos(0.0); 94 java.lang.Math.sin(0.0); 95 java.lang.Math.acos(0.0); 96 java.lang.Math.asin(0.0); 97 java.lang.Math.atan(0.0); 98 java.lang.Math.atan2(0.0, 0.0); 99 java.lang.Math.cbrt(0.0); 100 java.lang.Math.cosh(0.0); 101 java.lang.Math.exp(0.0); 102 java.lang.Math.expm1(0.0); 103 java.lang.Math.hypot(0.0, 0.0); 104 java.lang.Math.log(0.0); 105 java.lang.Math.log10(0.0); 106 java.lang.Math.nextAfter(0.0, 0.0); 107 java.lang.Math.sinh(0.0); 108 java.lang.Math.tan(0.0); 109 java.lang.Math.tanh(0.0); 110 java.lang.Math.sqrt(0.0); 111 java.lang.Math.ceil(0.0); 112 java.lang.Math.floor(0.0); 113 java.lang.Math.rint(0.0); 114 java.lang.Math.round(0.0); 115 java.lang.Math.round(0.0f); 116 java.lang.Thread.currentThread(); 117 instance_java_lang_String.charAt(0); 118 instance_java_lang_String.compareTo("hello"); 119 instance_java_lang_String.equals((java.lang.Object)null); 120 instance_java_lang_String.indexOf(0); 121 instance_java_lang_String.indexOf(0, 0); 122 instance_java_lang_String.indexOf("hello"); 123 instance_java_lang_String.indexOf("hello", 0); 124 instance_java_lang_String.isEmpty(); 125 instance_java_lang_String.length(); 126 instance_java_lang_StringBuffer.append("hello"); 127 instance_java_lang_StringBuffer.length(); 128 instance_java_lang_StringBuffer.toString(); 129 instance_java_lang_StringBuilder.append("hello"); 130 instance_java_lang_StringBuilder.length(); 131 instance_java_lang_StringBuilder.toString(); 132 java.lang.Integer.valueOf(0); 133 java.lang.Thread.interrupted(); 134 } 135 } 136