| 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 28 matching lines...) Expand all Loading... |
| 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(Object, Object., ObjectConstructor, 1058585294) \ | 42 V(Object, Object., ObjectConstructor, 1058585294) \ |
| 43 V(Object, get:_cid, ObjectCid, 1498721510) \ | 43 V(Object, get:_cid, ObjectCid, 1498721510) \ |
| 44 V(_List, get:length, ObjectArrayLength, 215153395) \ | 44 V(_List, get:length, ObjectArrayLength, 215153395) \ |
| 45 V(_ImmutableList, get:length, ImmutableArrayLength, 578733070) \ | 45 V(_ImmutableList, get:length, ImmutableArrayLength, 578733070) \ |
| 46 V(_TypedList, get:length, TypedDataLength, 26616328) \ | 46 V(_TypedList, get:length, TypedDataLength, 26616328) \ |
| 47 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \ | 47 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \ |
| 48 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \ | 48 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \ |
| 49 V(_Uint8Array, _getUint8, Uint8ArrayGetUint8, 1230869158) \ |
| 50 V(_ExternalUint8Array, _getUint8, ExternalUint8ArrayGetUint8, 626446337) \ |
| 49 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \ | 51 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \ |
| 50 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \ | 52 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \ |
| 51 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \ | 53 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \ |
| 52 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \ | 54 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \ |
| 53 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \ | 55 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \ |
| 54 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \ | 56 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \ |
| 55 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \ | 57 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \ |
| 56 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1443265945) \ | 58 V(_TypedList, _setInt8, ByteArrayBaseSetInt8, 1443265945) \ |
| 57 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1864204733) \ | 59 V(_TypedList, _setUint8, ByteArrayBaseSetUint8, 1864204733) \ |
| 58 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 1807419109) \ | 60 V(_TypedList, _setInt16, ByteArrayBaseSetInt16, 1807419109) \ |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 172 |
| 171 // A list of core function that should always be inlined. | 173 // A list of core function that should always be inlined. |
| 172 #define INLINE_WHITE_LIST(V) \ | 174 #define INLINE_WHITE_LIST(V) \ |
| 173 V(_List, get:length, ObjectArrayLength, 215153395) \ | 175 V(_List, get:length, ObjectArrayLength, 215153395) \ |
| 174 V(_ImmutableList, get:length, ImmutableArrayLength, 578733070) \ | 176 V(_ImmutableList, get:length, ImmutableArrayLength, 578733070) \ |
| 175 V(_TypedList, get:length, TypedDataLength, 26616328) \ | 177 V(_TypedList, get:length, TypedDataLength, 26616328) \ |
| 176 V(_GrowableList, get:length, GrowableArrayLength, 1654225242) \ | 178 V(_GrowableList, get:length, GrowableArrayLength, 1654225242) \ |
| 177 V(_StringBase, get:length, StringBaseLength, 1483520063) \ | 179 V(_StringBase, get:length, StringBaseLength, 1483520063) \ |
| 178 V(ListIterator, moveNext, ListIteratorMoveNext, 90930587) \ | 180 V(ListIterator, moveNext, ListIteratorMoveNext, 90930587) \ |
| 179 V(_GrowableList, get:iterator, GrowableArrayIterator, 1305127405) \ | 181 V(_GrowableList, get:iterator, GrowableArrayIterator, 1305127405) \ |
| 180 V(_GrowableList, forEach, GrowableArrayForEach, 1675430533) | 182 V(_GrowableList, forEach, GrowableArrayForEach, 1675430533) \ |
| 181 | 183 |
| 182 | 184 |
| 183 // Class that recognizes the name and owner of a function and returns the | 185 // Class that recognizes the name and owner of a function and returns the |
| 184 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable | 186 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable |
| 185 // functions. | 187 // functions. |
| 186 class MethodRecognizer : public AllStatic { | 188 class MethodRecognizer : public AllStatic { |
| 187 public: | 189 public: |
| 188 enum Kind { | 190 enum Kind { |
| 189 kUnknown, | 191 kUnknown, |
| 190 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, | 192 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, |
| (...skipping 6629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6820 ForwardInstructionIterator* current_iterator_; | 6822 ForwardInstructionIterator* current_iterator_; |
| 6821 | 6823 |
| 6822 private: | 6824 private: |
| 6823 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6825 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6824 }; | 6826 }; |
| 6825 | 6827 |
| 6826 | 6828 |
| 6827 } // namespace dart | 6829 } // namespace dart |
| 6828 | 6830 |
| 6829 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6831 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |