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

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

Issue 12335138: Intrinsify OnebyteString's hashcode. Next step is to inline it. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « runtime/lib/string_base.dart ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 V(_GrowableObjectArray, _setLength, GrowableArray_setLength, 796709584) \ 72 V(_GrowableObjectArray, _setLength, GrowableArray_setLength, 796709584) \
73 V(_GrowableObjectArray, _setData, GrowableArray_setData, 629110947) \ 73 V(_GrowableObjectArray, _setData, GrowableArray_setData, 629110947) \
74 V(_GrowableObjectArray, add, GrowableArray_add, 1367698386) \ 74 V(_GrowableObjectArray, add, GrowableArray_add, 1367698386) \
75 V(_ImmutableArray, [], ImmutableArray_getIndexed, 486821199) \ 75 V(_ImmutableArray, [], ImmutableArray_getIndexed, 486821199) \
76 V(_ImmutableArray, get:length, ImmutableArray_getLength, 433698233) \ 76 V(_ImmutableArray, get:length, ImmutableArray_getLength, 433698233) \
77 V(Object, ==, Object_equal, 2126956595) \ 77 V(Object, ==, Object_equal, 2126956595) \
78 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \ 78 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \
79 V(_StringBase, get:isEmpty, String_getIsEmpty, 711547329) \ 79 V(_StringBase, get:isEmpty, String_getIsEmpty, 711547329) \
80 V(_StringBase, get:length, String_getLength, 320803993) \ 80 V(_StringBase, get:length, String_getLength, 320803993) \
81 V(_StringBase, codeUnitAt, String_codeUnitAt, 984449525) \ 81 V(_StringBase, codeUnitAt, String_codeUnitAt, 984449525) \
82 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 682660413) \
82 83
83 84
84 #define MATH_LIB_INTRINSIC_LIST(V) \ 85 #define MATH_LIB_INTRINSIC_LIST(V) \
85 V(::, sqrt, Math_sqrt, 1662640002) \ 86 V(::, sqrt, Math_sqrt, 1662640002) \
86 V(::, sin, Math_sin, 1273932041) \ 87 V(::, sin, Math_sin, 1273932041) \
87 V(::, cos, Math_cos, 1749547468) \ 88 V(::, cos, Math_cos, 1749547468) \
88 89
89 90
90 #define SCALARLIST_LIB_INTRINSIC_LIST(V) \ 91 #define SCALARLIST_LIB_INTRINSIC_LIST(V) \
91 V(_ByteArrayBase, get:length, ByteArrayBase_getLength, 1098081765) \ 92 V(_ByteArrayBase, get:length, ByteArrayBase_getLength, 1098081765) \
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 128 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
128 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 129 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
129 SCALARLIST_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 130 SCALARLIST_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
130 131
131 #undef DECLARE_FUNCTION 132 #undef DECLARE_FUNCTION
132 }; 133 };
133 134
134 } // namespace dart 135 } // namespace dart
135 136
136 #endif // VM_INTRINSIFIER_H_ 137 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « runtime/lib/string_base.dart ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698