| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class Range; | 31 class Range; |
| 32 | 32 |
| 33 | 33 |
| 34 // TODO(srdjan): Unify with INTRINSIC_LIST. | 34 // TODO(srdjan): Unify with INTRINSIC_LIST. |
| 35 // (class-name, function-name, recognized enum, fingerprint). | 35 // (class-name, function-name, recognized enum, fingerprint). |
| 36 // See intrinsifier for fingerprint computation. | 36 // See intrinsifier for fingerprint computation. |
| 37 #define RECOGNIZED_LIST(V) \ | 37 #define RECOGNIZED_LIST(V) \ |
| 38 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \ | 38 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \ |
| 39 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ | 39 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ |
| 40 V(_TypedList, get:length, TypedDataLength, 1004567191) \ | 40 V(_TypedList, get:length, TypedDataLength, 1004567191) \ |
| 41 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 380843687) \ | 41 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 728842615) \ |
| 42 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 380843687) \ | 42 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 728842615) \ |
| 43 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 380843687) \ | 43 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 728842615) \ |
| 44 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 380843687) \ | 44 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 728842615) \ |
| 45 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 380843687) \ | 45 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 728842615) \ |
| 46 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 380843687) \ | 46 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 728842615) \ |
| 47 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 979971573) \ | 47 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 1067360925) \ |
| 48 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 979971573) \ | 48 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1067360925) \ |
| 49 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 690339584) \ | 49 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 690339584) \ |
| 50 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 287047804) \ | 50 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 427754869) \ |
| 51 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 287047804) \ | 51 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 427754869) \ |
| 52 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 287047804) \ | 52 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 427754869) \ |
| 53 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 287047804) \ | 53 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 427754869) \ |
| 54 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 287047804) \ | 54 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 427754869) \ |
| 55 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 287047804) \ | 55 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 427754869) \ |
| 56 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1032541114) \ | 56 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 637235443) \ |
| 57 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 1032541114) \ | 57 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 637235443) \ |
| 58 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1016704782) \ | 58 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1016704782) \ |
| 59 V(_GrowableObjectArray, get:length, GrowableArrayLength, 725548050) \ | 59 V(_GrowableObjectArray, get:length, GrowableArrayLength, 725548050) \ |
| 60 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 725548050) \ | 60 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 725548050) \ |
| 61 V(_StringBase, get:length, StringBaseLength, 320803993) \ | 61 V(_StringBase, get:length, StringBaseLength, 320803993) \ |
| 62 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1026765313) \ | 62 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1026765313) \ |
| 63 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 984449525) \ | 63 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 984449525) \ |
| 64 V(_StringBase, [], StringBaseCharAt, 1062366987) \ | 64 V(_StringBase, [], StringBaseCharAt, 1062366987) \ |
| 65 V(_IntegerImplementation, toDouble, IntegerToDouble, 1267108971) \ | 65 V(_IntegerImplementation, toDouble, IntegerToDouble, 1267108971) \ |
| 66 V(_Double, toInt, DoubleToInteger, 362666636) \ | 66 V(_Double, toInt, DoubleToInteger, 362666636) \ |
| 67 V(_Double, truncateToDouble, DoubleTruncate, 620870996) \ | 67 V(_Double, truncateToDouble, DoubleTruncate, 620870996) \ |
| (...skipping 4873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4941 ForwardInstructionIterator* current_iterator_; | 4941 ForwardInstructionIterator* current_iterator_; |
| 4942 | 4942 |
| 4943 private: | 4943 private: |
| 4944 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4944 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4945 }; | 4945 }; |
| 4946 | 4946 |
| 4947 | 4947 |
| 4948 } // namespace dart | 4948 } // namespace dart |
| 4949 | 4949 |
| 4950 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4950 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |