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

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

Issue 551823002: Optimize _GrowableArray._join and _StringBase._interpolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't optimize one/two length interpolations (other CL does the one-case better) Created 6 years, 3 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
« runtime/lib/string_patch.dart ('K') | « runtime/lib/string_patch.dart ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_METHOD_RECOGNIZER_H_ 5 #ifndef VM_METHOD_RECOGNIZER_H_
6 #define VM_METHOD_RECOGNIZER_H_ 6 #define VM_METHOD_RECOGNIZER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 19 matching lines...) Expand all
30 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 433348464) \ 30 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 433348464) \
31 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 149406583) \ 31 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 149406583) \
32 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 805477162) \ 32 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 805477162) \
33 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 888580944) \ 33 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 888580944) \
34 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1708248181) \ 34 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1708248181) \
35 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1863152792) \ 35 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1863152792) \
36 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1148703855) \ 36 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1148703855) \
37 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 972883980) \ 37 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 972883980) \
38 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 950522310) \ 38 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 950522310) \
39 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 1301138078) \ 39 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 1301138078) \
40 V(_StringBase, _interpolate, StringBaseInterpolate, 1758627989) \ 40 V(_StringBase, _interpolate, StringBaseInterpolate, 2070743748) \
41 V(_IntegerImplementation, toDouble, IntegerToDouble, 1084977108) \ 41 V(_IntegerImplementation, toDouble, IntegerToDouble, 1084977108) \
42 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \ 42 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \
43 597111055) \ 43 597111055) \
44 V(_Double, truncateToDouble, DoubleTruncate, 2117801967) \ 44 V(_Double, truncateToDouble, DoubleTruncate, 2117801967) \
45 V(_Double, roundToDouble, DoubleRound, 2124216110) \ 45 V(_Double, roundToDouble, DoubleRound, 2124216110) \
46 V(_Double, floorToDouble, DoubleFloor, 968600699) \ 46 V(_Double, floorToDouble, DoubleFloor, 968600699) \
47 V(_Double, ceilToDouble, DoubleCeil, 1779929274) \ 47 V(_Double, ceilToDouble, DoubleCeil, 1779929274) \
48 V(_Double, _modulo, DoubleMod, 1473971007) \ 48 V(_Double, _modulo, DoubleMod, 1473971007) \
49 V(_Double, _add, DoubleAdd, 1570715125) \ 49 V(_Double, _add, DoubleAdd, 1570715125) \
50 V(_Double, _sub, DoubleSub, 1466395310) \ 50 V(_Double, _sub, DoubleSub, 1466395310) \
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 static Kind RecognizeKind(const Function& function); 390 static Kind RecognizeKind(const Function& function);
391 static bool AlwaysInline(const Function& function); 391 static bool AlwaysInline(const Function& function);
392 static bool PolymorphicTarget(const Function& function); 392 static bool PolymorphicTarget(const Function& function);
393 static const char* KindToCString(Kind kind); 393 static const char* KindToCString(Kind kind);
394 static void InitializeState(); 394 static void InitializeState();
395 }; 395 };
396 396
397 } // namespace dart 397 } // namespace dart
398 398
399 #endif // VM_METHOD_RECOGNIZER_H_ 399 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« runtime/lib/string_patch.dart ('K') | « runtime/lib/string_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698