| 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 21 matching lines...) Expand all Loading... |
| 32 class LocalVariable; | 32 class LocalVariable; |
| 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, 496869842) \ | 41 V(::, identical, ObjectIdentical, 496869842) \ |
| 42 V(ClassID, getID, ClassIDgetID, 1322490980) \ |
| 42 V(Object, ==, ObjectEquals, 1068471689) \ | 43 V(Object, ==, ObjectEquals, 1068471689) \ |
| 43 V(Object, Object., ObjectConstructor, 1066669787) \ | 44 V(Object, Object., ObjectConstructor, 1066669787) \ |
| 44 V(Object, get:_cid, ObjectCid, 1771959715) \ | |
| 45 V(_TypedListBase, get:_cid, TypedListBaseCid, 1438451377) \ | |
| 46 V(_List, get:length, ObjectArrayLength, 1181352729) \ | 45 V(_List, get:length, ObjectArrayLength, 1181352729) \ |
| 47 V(_List, _List., ObjectArrayConstructor, 1595327584) \ | 46 V(_List, _List., ObjectArrayConstructor, 1595327584) \ |
| 48 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \ | 47 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \ |
| 49 V(_TypedList, get:length, TypedDataLength, 522565357) \ | 48 V(_TypedList, get:length, TypedDataLength, 522565357) \ |
| 50 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ | 49 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ |
| 51 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ | 50 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ |
| 52 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ | 51 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ |
| 53 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ | 52 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ |
| 54 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ | 53 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ |
| 55 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \ | 54 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 68 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 950522310) \ | 67 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 950522310) \ |
| 69 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 1301138078) \ | 68 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 1301138078) \ |
| 70 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ | 69 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ |
| 71 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 555140075) \ | 70 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 555140075) \ |
| 72 V(_GrowableList, _setData, GrowableArraySetData, 2126927509) \ | 71 V(_GrowableList, _setData, GrowableArraySetData, 2126927509) \ |
| 73 V(_GrowableList, _setLength, GrowableArraySetLength, 89389299) \ | 72 V(_GrowableList, _setLength, GrowableArraySetLength, 89389299) \ |
| 74 V(_StringBase, get:length, StringBaseLength, 784399628) \ | 73 V(_StringBase, get:length, StringBaseLength, 784399628) \ |
| 75 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 49873871) \ | 74 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 49873871) \ |
| 76 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ | 75 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ |
| 77 V(_StringBase, [], StringBaseCharAt, 1512210677) \ | 76 V(_StringBase, [], StringBaseCharAt, 1512210677) \ |
| 78 V(_StringBase, _interpolate, StringBaseInterpolate, 172499441) \ | 77 V(_StringBase, _interpolate, StringBaseInterpolate, 2001502149) \ |
| 79 V(_OneByteString, _setAt, OneByteStringSetAt, 468605749) \ | 78 V(_OneByteString, _setAt, OneByteStringSetAt, 468605749) \ |
| 80 V(_IntegerImplementation, toDouble, IntegerToDouble, 1084977108) \ | 79 V(_IntegerImplementation, toDouble, IntegerToDouble, 1084977108) \ |
| 81 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \ | 80 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \ |
| 82 597111055) \ | 81 597111055) \ |
| 83 V(_Double, toInt, DoubleToInteger, 1547535151) \ | 82 V(_Double, toInt, DoubleToInteger, 1547535151) \ |
| 84 V(_Double, truncateToDouble, DoubleTruncate, 2117801967) \ | 83 V(_Double, truncateToDouble, DoubleTruncate, 2117801967) \ |
| 85 V(_Double, roundToDouble, DoubleRound, 2124216110) \ | 84 V(_Double, roundToDouble, DoubleRound, 2124216110) \ |
| 86 V(_Double, floorToDouble, DoubleFloor, 968600699) \ | 85 V(_Double, floorToDouble, DoubleFloor, 968600699) \ |
| 87 V(_Double, ceilToDouble, DoubleCeil, 1779929274) \ | 86 V(_Double, ceilToDouble, DoubleCeil, 1779929274) \ |
| 88 V(_Double, _modulo, DoubleMod, 1473971007) \ | 87 V(_Double, _modulo, DoubleMod, 1473971007) \ |
| (...skipping 8104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8193 ForwardInstructionIterator* current_iterator_; | 8192 ForwardInstructionIterator* current_iterator_; |
| 8194 | 8193 |
| 8195 private: | 8194 private: |
| 8196 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 8195 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 8197 }; | 8196 }; |
| 8198 | 8197 |
| 8199 | 8198 |
| 8200 } // namespace dart | 8199 } // namespace dart |
| 8201 | 8200 |
| 8202 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8201 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |