| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |