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

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

Issue 490573003: Small improvements in array code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 V(::, atan2, MathATan2, 1845649456) \ 329 V(::, atan2, MathATan2, 1845649456) \
330 V(::, cos, MathCos, 1951197905) \ 330 V(::, cos, MathCos, 1951197905) \
331 V(::, exp, MathExp, 1809210829) \ 331 V(::, exp, MathExp, 1809210829) \
332 V(::, log, MathLog, 1620336448) \ 332 V(::, log, MathLog, 1620336448) \
333 V(::, max, MathMax, 612058870) \ 333 V(::, max, MathMax, 612058870) \
334 V(::, min, MathMin, 1022567780) \ 334 V(::, min, MathMin, 1022567780) \
335 V(::, pow, MathPow, 930962530) \ 335 V(::, pow, MathPow, 930962530) \
336 V(::, sin, MathSin, 1741396147) \ 336 V(::, sin, MathSin, 1741396147) \
337 V(::, sqrt, MathSqrt, 101545548) \ 337 V(::, sqrt, MathSqrt, 101545548) \
338 V(::, tan, MathTan, 982072809) \ 338 V(::, tan, MathTan, 982072809) \
339 V(Lists, copy, ListsCopy, 902244797)
339 340
340 341
341 // A list of core functions that internally dispatch based on received id. 342 // A list of core functions that internally dispatch based on received id.
342 #define POLYMORPHIC_TARGET_LIST(V) \ 343 #define POLYMORPHIC_TARGET_LIST(V) \
343 V(_StringBase, [], StringBaseCharAt, 1512210677) \ 344 V(_StringBase, [], StringBaseCharAt, 1512210677) \
344 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ 345 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \
345 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ 346 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \
346 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ 347 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \
347 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ 348 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \
348 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ 349 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 static Kind RecognizeKind(const Function& function); 383 static Kind RecognizeKind(const Function& function);
383 static bool AlwaysInline(const Function& function); 384 static bool AlwaysInline(const Function& function);
384 static bool PolymorphicTarget(const Function& function); 385 static bool PolymorphicTarget(const Function& function);
385 static const char* KindToCString(Kind kind); 386 static const char* KindToCString(Kind kind);
386 static void InitializeState(); 387 static void InitializeState();
387 }; 388 };
388 389
389 } // namespace dart 390 } // namespace dart
390 391
391 #endif // VM_METHOD_RECOGNIZER_H_ 392 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698