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

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

Issue 15502004: Intrinsify random nextState, improve perfromance significantly. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/math_patch.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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 V(_OneByteString, _substringUncheckedNative, \ 84 V(_OneByteString, _substringUncheckedNative, \
85 OneByteString_substringUnchecked, 713121438) \ 85 OneByteString_substringUnchecked, 713121438) \
86 V(_OneByteString, _setAt, OneByteString_setAt, 342452817) \ 86 V(_OneByteString, _setAt, OneByteString_setAt, 342452817) \
87 V(_OneByteString, _allocate, OneByteString_allocate, 510754908) \ 87 V(_OneByteString, _allocate, OneByteString_allocate, 510754908) \
88 88
89 89
90 #define MATH_LIB_INTRINSIC_LIST(V) \ 90 #define MATH_LIB_INTRINSIC_LIST(V) \
91 V(::, sqrt, Math_sqrt, 1662640002) \ 91 V(::, sqrt, Math_sqrt, 1662640002) \
92 V(::, sin, Math_sin, 1273932041) \ 92 V(::, sin, Math_sin, 1273932041) \
93 V(::, cos, Math_cos, 1749547468) \ 93 V(::, cos, Math_cos, 1749547468) \
94 V(_Random, _nextState, Random_nextState, 77315414) \
94 95
95 96
96 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 97 #define TYPED_DATA_LIB_INTRINSIC_LIST(V) \
97 V(_TypedList, get:length, TypedData_getLength, 1004567191) \ 98 V(_TypedList, get:length, TypedData_getLength, 1004567191) \
98 V(_Int8Array, _new, TypedData_Int8Array_new, 48970297) \ 99 V(_Int8Array, _new, TypedData_Int8Array_new, 48970297) \
99 V(_Uint8Array, _new, TypedData_Uint8Array_new, 389788863) \ 100 V(_Uint8Array, _new, TypedData_Uint8Array_new, 389788863) \
100 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 59021935) \ 101 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 59021935) \
101 V(_Int16Array, _new, TypedData_Int16Array_new, 465688649) \ 102 V(_Int16Array, _new, TypedData_Int16Array_new, 465688649) \
102 V(_Uint16Array, _new, TypedData_Uint16Array_new, 169304657) \ 103 V(_Uint16Array, _new, TypedData_Uint16Array_new, 169304657) \
103 V(_Int32Array, _new, TypedData_Int32Array_new, 947562951) \ 104 V(_Int32Array, _new, TypedData_Int32Array_new, 947562951) \
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 144 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
144 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 145 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
145 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 146 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
146 147
147 #undef DECLARE_FUNCTION 148 #undef DECLARE_FUNCTION
148 }; 149 };
149 150
150 } // namespace dart 151 } // namespace dart
151 152
152 #endif // VM_INTRINSIFIER_H_ 153 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « runtime/lib/math_patch.dart ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698