| 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 22 matching lines...) Expand all Loading... |
| 33 class ParsedFunction; | 33 class ParsedFunction; |
| 34 class Range; | 34 class Range; |
| 35 | 35 |
| 36 | 36 |
| 37 // TODO(srdjan): Unify with INTRINSIC_LIST. | 37 // TODO(srdjan): Unify with INTRINSIC_LIST. |
| 38 // (class-name, function-name, recognized enum, fingerprint). | 38 // (class-name, function-name, recognized enum, fingerprint). |
| 39 // See intrinsifier for fingerprint computation. | 39 // See intrinsifier for fingerprint computation. |
| 40 #define RECOGNIZED_LIST(V) \ | 40 #define RECOGNIZED_LIST(V) \ |
| 41 V(::, identical, ObjectIdentical, 101186973) \ | 41 V(::, identical, ObjectIdentical, 101186973) \ |
| 42 V(Object, Object., ObjectConstructor, 1058525712) \ | 42 V(Object, Object., ObjectConstructor, 1058525712) \ |
| 43 V(Object, get:_cid, ObjectCid, 2099568593) \ | 43 V(Object, get:_cid, ObjectCid, 1498661928) \ |
| 44 V(_ObjectArray, get:length, ObjectArrayLength, 1441000484) \ | 44 V(_ObjectArray, get:length, ObjectArrayLength, 259323113) \ |
| 45 V(_ImmutableArray, get:length, ImmutableArrayLength, 1430953867) \ | 45 V(_ImmutableArray, get:length, ImmutableArrayLength, 1430953867) \ |
| 46 V(_TypedList, get:length, TypedDataLength, 117589485) \ | 46 V(_TypedList, get:length, TypedDataLength, 26556746) \ |
| 47 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 788387678) \ | 47 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 788387678) \ |
| 48 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1137892349) \ | 48 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1137892349) \ |
| 49 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 464167270) \ | 49 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 464167270) \ |
| 50 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 673378812) \ | 50 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 673378812) \ |
| 51 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1230275232) \ | 51 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1230275232) \ |
| 52 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 976951843) \ | 52 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 976951843) \ |
| 53 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 215932309) \ | 53 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 215932309) \ |
| 54 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 450032954) \ | 54 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 450032954) \ |
| 55 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1602836552) \ | 55 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1602836552) \ |
| 56 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 250049637) \ | 56 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 250049637) \ |
| 57 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1792593311) \ | 57 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1792593311) \ |
| 58 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 1958159284) \ | 58 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 1958159284) \ |
| 59 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 1244907090) \ | 59 V(_TypedList, _setUint16, ByteArrayBaseSetUint16, 1244907090) \ |
| 60 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1058956549) \ | 60 V(_TypedList, _setInt32, ByteArrayBaseSetInt32, 1058956549) \ |
| 61 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1054500835) \ | 61 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1054500835) \ |
| 62 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1426038329) \ | 62 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 1426038329) \ |
| 63 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 1289924817) \ | 63 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 1289924817) \ |
| 64 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 370513644) \ | 64 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 370513644) \ |
| 65 V(_GrowableObjectArray, get:length, GrowableArrayLength, 767561362) \ | 65 V(_GrowableObjectArray, get:length, GrowableArrayLength, 767561362) \ |
| 66 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 874559046) \ | 66 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 874559046) \ |
| 67 V(_GrowableObjectArray, _setData, GrowableArraySetData, 1302055339) \ | 67 V(_GrowableObjectArray, _setData, GrowableArraySetData, 1302055339) \ |
| 68 V(_GrowableObjectArray, _setLength, GrowableArraySetLength, 1016226171) \ | 68 V(_GrowableObjectArray, _setLength, GrowableArraySetLength, 1016226171) \ |
| 69 V(_StringBase, get:length, StringBaseLength, 1158042795) \ | 69 V(_StringBase, get:length, StringBaseLength, 1483460481) \ |
| 70 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1588094430) \ | 70 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 1588094430) \ |
| 71 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1452213966) \ | 71 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1958436584) \ |
| 72 V(_StringBase, [], StringBaseCharAt, 924930519) \ | 72 V(_StringBase, [], StringBaseCharAt, 924930519) \ |
| 73 V(_OneByteString, _setAt, OneByteStringSetAt, 456985263) \ | 73 V(_OneByteString, _setAt, OneByteStringSetAt, 1754827784) \ |
| 74 V(_IntegerImplementation, toDouble, IntegerToDouble, 2141284842) \ | 74 V(_IntegerImplementation, toDouble, IntegerToDouble, 2141284842) \ |
| 75 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \ | 75 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \ |
| 76 964472615) \ | 76 964472615) \ |
| 77 V(_Double, toInt, DoubleToInteger, 1580473283) \ | 77 V(_Double, toInt, DoubleToInteger, 1580473283) \ |
| 78 V(_Double, truncateToDouble, DoubleTruncate, 849350203) \ | 78 V(_Double, truncateToDouble, DoubleTruncate, 849350203) \ |
| 79 V(_Double, roundToDouble, DoubleRound, 500368418) \ | 79 V(_Double, roundToDouble, DoubleRound, 500368418) \ |
| 80 V(_Double, floorToDouble, DoubleFloor, 763548522) \ | 80 V(_Double, floorToDouble, DoubleFloor, 763548522) \ |
| 81 V(_Double, ceilToDouble, DoubleCeil, 976697019) \ | 81 V(_Double, ceilToDouble, DoubleCeil, 976697019) \ |
| 82 V(_Double, pow, DoublePow, 1240251670) \ | 82 V(_Double, pow, DoublePow, 1240251670) \ |
| 83 V(_Double, _modulo, DoubleMod, 1850917533) \ | 83 V(_Double, _modulo, DoubleMod, 1850917533) \ |
| (...skipping 6591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6675 ForwardInstructionIterator* current_iterator_; | 6675 ForwardInstructionIterator* current_iterator_; |
| 6676 | 6676 |
| 6677 private: | 6677 private: |
| 6678 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6678 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6679 }; | 6679 }; |
| 6680 | 6680 |
| 6681 | 6681 |
| 6682 } // namespace dart | 6682 } // namespace dart |
| 6683 | 6683 |
| 6684 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6684 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |