Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: runtime/vm/intrinsifier.h

Issue 22839003: Polymorphic inlining for some recognized methods in the optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #ifndef VM_INTRINSIFIER_H_ 6 #ifndef VM_INTRINSIFIER_H_
7 #define VM_INTRINSIFIER_H_ 7 #define VM_INTRINSIFIER_H_
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
(...skipping 13 matching lines...) Expand all
24 V(_Double, ==, Double_equal, 1012968674) \ 24 V(_Double, ==, Double_equal, 1012968674) \
25 V(_Double, +, Double_add, 407090160) \ 25 V(_Double, +, Double_add, 407090160) \
26 V(_Double, -, Double_sub, 1801868246) \ 26 V(_Double, -, Double_sub, 1801868246) \
27 V(_Double, *, Double_mul, 984784342) \ 27 V(_Double, *, Double_mul, 984784342) \
28 V(_Double, /, Double_div, 1399344917) \ 28 V(_Double, /, Double_div, 1399344917) \
29 V(_Double, get:isNaN, Double_getIsNaN, 54462366) \ 29 V(_Double, get:isNaN, Double_getIsNaN, 54462366) \
30 V(_Double, get:isNegative, Double_getIsNegative, 54462366) \ 30 V(_Double, get:isNegative, Double_getIsNegative, 54462366) \
31 V(_Double, _mulFromInteger, Double_mulFromInteger, 550294258) \ 31 V(_Double, _mulFromInteger, Double_mulFromInteger, 550294258) \
32 V(_Double, .fromInteger, Double_fromInteger, 881555713) \ 32 V(_Double, .fromInteger, Double_fromInteger, 881555713) \
33 V(_ObjectArray, ., ObjectArray_Allocate, 1149848530) \ 33 V(_ObjectArray, ., ObjectArray_Allocate, 1149848530) \
34 V(_ObjectArray, get:length, Array_getLength, 405297088) \
35 V(_ObjectArray, [], Array_getIndexed, 1573881683) \ 34 V(_ObjectArray, [], Array_getIndexed, 1573881683) \
36 V(_ObjectArray, []=, Array_setIndexed, 1644545484) \ 35 V(_ObjectArray, []=, Array_setIndexed, 1644545484) \
37 V(_GrowableObjectArray, .withData, GrowableArray_Allocate, 569069682) \ 36 V(_GrowableObjectArray, .withData, GrowableArray_Allocate, 569069682) \
38 V(_GrowableObjectArray, get:length, GrowableArray_getLength, 725548050) \
39 V(_GrowableObjectArray, get:_capacity, GrowableArray_getCapacity, 725548050) \ 37 V(_GrowableObjectArray, get:_capacity, GrowableArray_getCapacity, 725548050) \
40 V(_GrowableObjectArray, [], GrowableArray_getIndexed, 1889032295) \ 38 V(_GrowableObjectArray, [], GrowableArray_getIndexed, 1889032295) \
41 V(_GrowableObjectArray, []=, GrowableArray_setIndexed, 934874427) \ 39 V(_GrowableObjectArray, []=, GrowableArray_setIndexed, 934874427) \
42 V(_GrowableObjectArray, _setLength, GrowableArray_setLength, 279007375) \ 40 V(_GrowableObjectArray, _setLength, GrowableArray_setLength, 279007375) \
43 V(_GrowableObjectArray, _setData, GrowableArray_setData, 588108129) \ 41 V(_GrowableObjectArray, _setData, GrowableArray_setData, 588108129) \
44 V(_GrowableObjectArray, add, GrowableArray_add, 112207566) \ 42 V(_GrowableObjectArray, add, GrowableArray_add, 112207566) \
45 V(_ImmutableArray, [], ImmutableArray_getIndexed, 1456194617) \ 43 V(_ImmutableArray, [], ImmutableArray_getIndexed, 1456194617) \
46 V(_ImmutableArray, get:length, ImmutableArray_getLength, 433698233) \
47 V(Object, ==, Object_equal, 2126867222) \ 44 V(Object, ==, Object_equal, 2126867222) \
48 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \ 45 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \
49 V(_StringBase, get:isEmpty, String_getIsEmpty, 110631520) \ 46 V(_StringBase, get:isEmpty, String_getIsEmpty, 110631520) \
50 V(_StringBase, get:length, String_getLength, 320803993) \
51 V(_StringBase, codeUnitAt, String_codeUnitAt, 1574843871) \ 47 V(_StringBase, codeUnitAt, String_codeUnitAt, 1574843871) \
52 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 682660413) \ 48 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 682660413) \
53 V(_OneByteString, _substringUncheckedNative, \ 49 V(_OneByteString, _substringUncheckedNative, \
54 OneByteString_substringUnchecked, 756784624) \ 50 OneByteString_substringUnchecked, 756784624) \
55 V(_OneByteString, _setAt, OneByteString_setAt, 1038132016) \ 51 V(_OneByteString, _setAt, OneByteString_setAt, 1038132016) \
56 V(_OneByteString, _allocate, OneByteString_allocate, 716379334) \ 52 V(_OneByteString, _allocate, OneByteString_allocate, 716379334) \
57 53
58 54
59 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ 55 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \
60 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ 56 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 91
96 92
97 #define MATH_LIB_INTRINSIC_LIST(V) \ 93 #define MATH_LIB_INTRINSIC_LIST(V) \
98 V(::, sqrt, Math_sqrt, 1662640002) \ 94 V(::, sqrt, Math_sqrt, 1662640002) \
99 V(::, sin, Math_sin, 1273932041) \ 95 V(::, sin, Math_sin, 1273932041) \
100 V(::, cos, Math_cos, 1749547468) \ 96 V(::, cos, Math_cos, 1749547468) \
101 V(_Random, _nextState, Random_nextState, 776416255) \ 97 V(_Random, _nextState, Random_nextState, 776416255) \
102 98
103 99
104 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 100 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \
105 V(_TypedList, get:length, TypedData_getLength, 1004567191) \
106 V(_Int8Array, _new, TypedData_Int8Array_new, 1708300323) \ 101 V(_Int8Array, _new, TypedData_Int8Array_new, 1708300323) \
107 V(_Uint8Array, _new, TypedData_Uint8Array_new, 280387497) \ 102 V(_Uint8Array, _new, TypedData_Uint8Array_new, 280387497) \
108 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 1035267417) \ 103 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 1035267417) \
109 V(_Int16Array, _new, TypedData_Int16Array_new, 1460383283) \ 104 V(_Int16Array, _new, TypedData_Int16Array_new, 1460383283) \
110 V(_Uint16Array, _new, TypedData_Uint16Array_new, 737997883) \ 105 V(_Uint16Array, _new, TypedData_Uint16Array_new, 737997883) \
111 V(_Int32Array, _new, TypedData_Int32Array_new, 1608749233) \ 106 V(_Int32Array, _new, TypedData_Int32Array_new, 1608749233) \
112 V(_Uint32Array, _new, TypedData_Uint32Array_new, 1955293459) \ 107 V(_Uint32Array, _new, TypedData_Uint32Array_new, 1955293459) \
113 V(_Int64Array, _new, TypedData_Int64Array_new, 1992227270) \ 108 V(_Int64Array, _new, TypedData_Int64Array_new, 1992227270) \
114 V(_Uint64Array, _new, TypedData_Uint64Array_new, 291118076) \ 109 V(_Uint64Array, _new, TypedData_Uint64Array_new, 291118076) \
115 V(_Float32Array, _new, TypedData_Float32Array_new, 962527805) \ 110 V(_Float32Array, _new, TypedData_Float32Array_new, 962527805) \
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 147 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
153 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 148 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
154 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 149 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
155 150
156 #undef DECLARE_FUNCTION 151 #undef DECLARE_FUNCTION
157 }; 152 };
158 153
159 } // namespace dart 154 } // namespace dart
160 155
161 #endif // VM_INTRINSIFIER_H_ 156 #endif // VM_INTRINSIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698