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

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

Issue 13964002: Intrinsify OnebyteString's substringUnchecked. Significant performance improvement on Json benchmar… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « no previous file | runtime/vm/intrinsifier_arm.cc » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 V(_GrowableObjectArray, _setData, GrowableArray_setData, 629110947) \ 73 V(_GrowableObjectArray, _setData, GrowableArray_setData, 629110947) \
74 V(_GrowableObjectArray, add, GrowableArray_add, 2139340847) \ 74 V(_GrowableObjectArray, add, GrowableArray_add, 2139340847) \
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, 2126867222) \ 77 V(Object, ==, Object_equal, 2126867222) \
78 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \ 78 V(_StringBase, get:hashCode, String_getHashCode, 320803993) \
79 V(_StringBase, get:isEmpty, String_getIsEmpty, 110632481) \ 79 V(_StringBase, get:isEmpty, String_getIsEmpty, 110632481) \
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 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 682660413) \
83 V(_OneByteString, _substringUncheckedNative, \
84 OneByteString_substringUnchecked, 713121438) \
83 85
84 86
85 #define MATH_LIB_INTRINSIC_LIST(V) \ 87 #define MATH_LIB_INTRINSIC_LIST(V) \
86 V(::, sqrt, Math_sqrt, 1662640002) \ 88 V(::, sqrt, Math_sqrt, 1662640002) \
87 V(::, sin, Math_sin, 1273932041) \ 89 V(::, sin, Math_sin, 1273932041) \
88 V(::, cos, Math_cos, 1749547468) \ 90 V(::, cos, Math_cos, 1749547468) \
89 91
90 92
91 #define TYPEDDATA_LIB_INTRINSIC_LIST(V) \ 93 #define TYPEDDATA_LIB_INTRINSIC_LIST(V) \
92 V(_TypedList, get:length, TypedData_getLength, 231908172) \ 94 V(_TypedList, get:length, TypedData_getLength, 231908172) \
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 140 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
139 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 141 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
140 TYPEDDATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 142 TYPEDDATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
141 143
142 #undef DECLARE_FUNCTION 144 #undef DECLARE_FUNCTION
143 }; 145 };
144 146
145 } // namespace dart 147 } // namespace dart
146 148
147 #endif // VM_INTRINSIFIER_H_ 149 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_arm.cc » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698