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

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

Issue 14862006: Improve performance of String.fromCharCodes by implementing it in Dart. Add tow internal natives to… (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
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 4
5 #ifndef VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef VM_BOOTSTRAP_NATIVES_H_
6 #define VM_BOOTSTRAP_NATIVES_H_ 6 #define VM_BOOTSTRAP_NATIVES_H_
7 7
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 9
10 // bootstrap dart natives used in the core dart library. 10 // bootstrap dart natives used in the core dart library.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 V(ObjectArray_allocate, 2) \ 75 V(ObjectArray_allocate, 2) \
76 V(ObjectArray_getIndexed, 2) \ 76 V(ObjectArray_getIndexed, 2) \
77 V(ObjectArray_setIndexed, 3) \ 77 V(ObjectArray_setIndexed, 3) \
78 V(ObjectArray_getLength, 1) \ 78 V(ObjectArray_getLength, 1) \
79 V(ObjectArray_copyFromObjectArray, 5) \ 79 V(ObjectArray_copyFromObjectArray, 5) \
80 V(StringBase_createFromCodePoints, 1) \ 80 V(StringBase_createFromCodePoints, 1) \
81 V(StringBase_substringUnchecked, 3) \ 81 V(StringBase_substringUnchecked, 3) \
82 V(StringBuffer_createStringFromUint16Array, 3) \ 82 V(StringBuffer_createStringFromUint16Array, 3) \
83 V(OneByteString_substringUnchecked, 3) \ 83 V(OneByteString_substringUnchecked, 3) \
84 V(OneByteString_splitWithCharCode, 2) \ 84 V(OneByteString_splitWithCharCode, 2) \
85 V(OneByteString_allocate, 1) \
86 V(OneByteString_setAt, 3) \
85 V(String_getHashCode, 1) \ 87 V(String_getHashCode, 1) \
86 V(String_getLength, 1) \ 88 V(String_getLength, 1) \
87 V(String_charAt, 2) \ 89 V(String_charAt, 2) \
88 V(String_codeUnitAt, 2) \ 90 V(String_codeUnitAt, 2) \
89 V(String_concat, 2) \ 91 V(String_concat, 2) \
90 V(String_toLowerCase, 1) \ 92 V(String_toLowerCase, 1) \
91 V(String_toUpperCase, 1) \ 93 V(String_toUpperCase, 1) \
92 V(Strings_concatAll, 1) \ 94 V(Strings_concatAll, 1) \
93 V(Math_sqrt, 1) \ 95 V(Math_sqrt, 1) \
94 V(Math_sin, 1) \ 96 V(Math_sin, 1) \
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 static void DN_##name(Dart_NativeArguments args); 261 static void DN_##name(Dart_NativeArguments args);
260 262
261 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 263 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
262 264
263 #undef DECLARE_BOOTSTRAP_NATIVE 265 #undef DECLARE_BOOTSTRAP_NATIVE
264 }; 266 };
265 267
266 } // namespace dart 268 } // namespace dart
267 269
268 #endif // VM_BOOTSTRAP_NATIVES_H_ 270 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698