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

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

Issue 23038010: Fix Function.end_token_pos() and implement MethodMirror.source getter (Closed) Base URL: https://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 12 matching lines...) Expand all
23 V(_Double, <=, Double_lessEqualThan, 1169397675) \ 23 V(_Double, <=, Double_lessEqualThan, 1169397675) \
24 V(_Double, ==, Double_equal, 223604237) \ 24 V(_Double, ==, Double_equal, 223604237) \
25 V(_Double, +, Double_add, 295873577) \ 25 V(_Double, +, Double_add, 295873577) \
26 V(_Double, -, Double_sub, 1180117486) \ 26 V(_Double, -, Double_sub, 1180117486) \
27 V(_Double, *, Double_mul, 1999983053) \ 27 V(_Double, *, Double_mul, 1999983053) \
28 V(_Double, /, Double_div, 1904009451) \ 28 V(_Double, /, Double_div, 1904009451) \
29 V(_Double, get:isNaN, Double_getIsNaN, 266197199) \ 29 V(_Double, get:isNaN, Double_getIsNaN, 266197199) \
30 V(_Double, get:isNegative, Double_getIsNegative, 264643149) \ 30 V(_Double, get:isNegative, Double_getIsNegative, 264643149) \
31 V(_Double, _mulFromInteger, Double_mulFromInteger, 930284178) \ 31 V(_Double, _mulFromInteger, Double_mulFromInteger, 930284178) \
32 V(_Double, .fromInteger, Double_fromInteger, 1488487599) \ 32 V(_Double, .fromInteger, Double_fromInteger, 1488487599) \
33 V(_ObjectArray, ., ObjectArray_Allocate, 712468799) \ 33 V(_ObjectArray, ., ObjectArray_Allocate, 1930677134) \
34 V(_ObjectArray, get:length, Array_getLength, 1441000484) \ 34 V(_ObjectArray, get:length, Array_getLength, 259323113) \
35 V(_ObjectArray, [], Array_getIndexed, 658292540) \ 35 V(_ObjectArray, [], Array_getIndexed, 93386978) \
36 V(_ObjectArray, []=, Array_setIndexed, 134661366) \ 36 V(_ObjectArray, []=, Array_setIndexed, 1296046137) \
37 V(_GrowableObjectArray, .withData, GrowableArray_Allocate, 917195627) \ 37 V(_GrowableObjectArray, .withData, GrowableArray_Allocate, 917195627) \
38 V(_GrowableObjectArray, get:length, GrowableArray_getLength, 767561362) \ 38 V(_GrowableObjectArray, get:length, GrowableArray_getLength, 767561362) \
39 V(_GrowableObjectArray, get:_capacity, GrowableArray_getCapacity, 874559046) \ 39 V(_GrowableObjectArray, get:_capacity, GrowableArray_getCapacity, 874559046) \
40 V(_GrowableObjectArray, [], GrowableArray_getIndexed, 1020883940) \ 40 V(_GrowableObjectArray, [], GrowableArray_getIndexed, 1020883940) \
41 V(_GrowableObjectArray, []=, GrowableArray_setIndexed, 366077215) \ 41 V(_GrowableObjectArray, []=, GrowableArray_setIndexed, 366077215) \
42 V(_GrowableObjectArray, _setLength, GrowableArray_setLength, 1016226171) \ 42 V(_GrowableObjectArray, _setLength, GrowableArray_setLength, 1016226171) \
43 V(_GrowableObjectArray, _setData, GrowableArray_setData, 1302055339) \ 43 V(_GrowableObjectArray, _setData, GrowableArray_setData, 1302055339) \
44 V(_GrowableObjectArray, add, GrowableArray_add, 1442410650) \ 44 V(_GrowableObjectArray, add, GrowableArray_add, 1442410650) \
45 V(_ImmutableArray, [], ImmutableArray_getIndexed, 1483706518) \ 45 V(_ImmutableArray, [], ImmutableArray_getIndexed, 894753724) \
46 V(_ImmutableArray, get:length, ImmutableArray_getLength, 1430953867) \ 46 V(_ImmutableArray, get:length, ImmutableArray_getLength, 1430953867) \
47 V(Object, ==, Object_equal, 677817295) \ 47 V(Object, ==, Object_equal, 677817295) \
48 V(_StringBase, get:hashCode, String_getHashCode, 1654013013) \ 48 V(_StringBase, get:hashCode, String_getHashCode, 1654013013) \
49 V(_StringBase, get:isEmpty, String_getIsEmpty, 1588094430) \ 49 V(_StringBase, get:isEmpty, String_getIsEmpty, 1588094430) \
50 V(_StringBase, get:length, String_getLength, 1158042795) \ 50 V(_StringBase, get:length, String_getLength, 1483460481) \
51 V(_StringBase, codeUnitAt, String_codeUnitAt, 1452213966) \ 51 V(_StringBase, codeUnitAt, String_codeUnitAt, 1958436584) \
52 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1350708273) \ 52 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1350708273) \
53 V(_OneByteString, _substringUncheckedNative, \ 53 V(_OneByteString, _substringUncheckedNative, \
54 OneByteString_substringUnchecked, 1409543330) \ 54 OneByteString_substringUnchecked, 25652388) \
55 V(_OneByteString, _setAt, OneByteString_setAt, 456985263) \ 55 V(_OneByteString, _setAt, OneByteString_setAt, 1754827784) \
56 V(_OneByteString, _allocate, OneByteString_allocate, 1842287414) \ 56 V(_OneByteString, _allocate, OneByteString_allocate, 1064009711) \
57 57
58 58
59 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \ 59 #define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \
60 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \ 60 V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \
61 1061271878) \ 61 1061271878) \
62 V(_IntegerImplementation, +, Integer_add, 714540399) \ 62 V(_IntegerImplementation, +, Integer_add, 714540399) \
63 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \ 63 V(_IntegerImplementation, _subFromInteger, Integer_subFromInteger, \
64 585090868) \ 64 585090868) \
65 V(_IntegerImplementation, -, Integer_sub, 1880284412) \ 65 V(_IntegerImplementation, -, Integer_sub, 1880284412) \
66 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \ 66 V(_IntegerImplementation, _mulFromInteger, Integer_mulFromInteger, \
(...skipping 28 matching lines...) Expand all
95 95
96 96
97 #define MATH_LIB_INTRINSIC_LIST(V) \ 97 #define MATH_LIB_INTRINSIC_LIST(V) \
98 V(::, sqrt, Math_sqrt, 465520247) \ 98 V(::, sqrt, Math_sqrt, 465520247) \
99 V(::, sin, Math_sin, 730107143) \ 99 V(::, sin, Math_sin, 730107143) \
100 V(::, cos, Math_cos, 1282146521) \ 100 V(::, cos, Math_cos, 1282146521) \
101 V(_Random, _nextState, Random_nextState, 755413621) \ 101 V(_Random, _nextState, Random_nextState, 755413621) \
102 102
103 103
104 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 104 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \
105 V(_TypedList, get:length, TypedData_getLength, 117589485) \ 105 V(_TypedList, get:length, TypedData_getLength, 26556746) \
106 V(_Int8Array, _new, TypedData_Int8Array_new, 1133705629) \ 106 V(_Int8Array, _new, TypedData_Int8Array_new, 1133705629) \
107 V(_Uint8Array, _new, TypedData_Uint8Array_new, 1643490889) \ 107 V(_Uint8Array, _new, TypedData_Uint8Array_new, 1643490889) \
108 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 1212601488) \ 108 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 1212601488) \
109 V(_Int16Array, _new, TypedData_Int16Array_new, 1241260890) \ 109 V(_Int16Array, _new, TypedData_Int16Array_new, 1241260890) \
110 V(_Uint16Array, _new, TypedData_Uint16Array_new, 337798210) \ 110 V(_Uint16Array, _new, TypedData_Uint16Array_new, 337798210) \
111 V(_Int32Array, _new, TypedData_Int32Array_new, 845463081) \ 111 V(_Int32Array, _new, TypedData_Int32Array_new, 845463081) \
112 V(_Uint32Array, _new, TypedData_Uint32Array_new, 1406929599) \ 112 V(_Uint32Array, _new, TypedData_Uint32Array_new, 1406929599) \
113 V(_Int64Array, _new, TypedData_Int64Array_new, 408710474) \ 113 V(_Int64Array, _new, TypedData_Int64Array_new, 408710474) \
114 V(_Uint64Array, _new, TypedData_Uint64Array_new, 202576356) \ 114 V(_Uint64Array, _new, TypedData_Uint64Array_new, 202576356) \
115 V(_Float32Array, _new, TypedData_Float32Array_new, 224632748) \ 115 V(_Float32Array, _new, TypedData_Float32Array_new, 224632748) \
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 152 CORE_INTEGER_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
153 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 153 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
154 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 154 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
155 155
156 #undef DECLARE_FUNCTION 156 #undef DECLARE_FUNCTION
157 }; 157 };
158 158
159 } // namespace dart 159 } // namespace dart
160 160
161 #endif // VM_INTRINSIFIER_H_ 161 #endif // VM_INTRINSIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698