| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 V(_List, get:length, ObjectArrayLength, 215153395) \ | 177 V(_List, get:length, ObjectArrayLength, 215153395) \ |
| 178 V(_ImmutableList, get:length, ImmutableArrayLength, 578733070) \ | 178 V(_ImmutableList, get:length, ImmutableArrayLength, 578733070) \ |
| 179 V(_TypedList, get:length, TypedDataLength, 26616328) \ | 179 V(_TypedList, get:length, TypedDataLength, 26616328) \ |
| 180 V(_GrowableList, get:length, GrowableArrayLength, 1654225242) \ | 180 V(_GrowableList, get:length, GrowableArrayLength, 1654225242) \ |
| 181 V(_StringBase, get:length, StringBaseLength, 1483520063) \ | 181 V(_StringBase, get:length, StringBaseLength, 1483520063) \ |
| 182 V(ListIterator, moveNext, ListIteratorMoveNext, 90930587) \ | 182 V(ListIterator, moveNext, ListIteratorMoveNext, 90930587) \ |
| 183 V(_GrowableList, get:iterator, GrowableArrayIterator, 1305127405) \ | 183 V(_GrowableList, get:iterator, GrowableArrayIterator, 1305127405) \ |
| 184 V(_GrowableList, forEach, GrowableArrayForEach, 1675430533) \ | 184 V(_GrowableList, forEach, GrowableArrayForEach, 1675430533) \ |
| 185 | 185 |
| 186 // A list of core functions that internally dispatch based on received id. | 186 // A list of core functions that internally dispatch based on received id. |
| 187 #define POLYMORPHC_TARGET_LIST(V) \ | 187 #define POLYMORPHIC_TARGET_LIST(V) \ |
| 188 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \ | 188 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 272598802) \ |
| 189 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \ | 189 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 831354841) \ |
| 190 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \ | 190 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1832126257) \ |
| 191 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \ | 191 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1762714698) \ |
| 192 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \ | 192 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 48785449) \ |
| 193 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \ | 193 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 1392579206) \ |
| 194 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \ | 194 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 185163470) \ |
| 195 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \ | 195 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1356392173) \ |
| 196 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \ | 196 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1239681356) \ |
| 197 V(_TypedList, _getUint32x4, ByteArrayBaseGetUint32x4, 1239681356) \ | 197 V(_TypedList, _getUint32x4, ByteArrayBaseGetUint32x4, 1499091330) \ |
| 198 | 198 |
| 199 // Class that recognizes the name and owner of a function and returns the | 199 // Class that recognizes the name and owner of a function and returns the |
| 200 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable | 200 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable |
| 201 // functions. | 201 // functions. |
| 202 class MethodRecognizer : public AllStatic { | 202 class MethodRecognizer : public AllStatic { |
| 203 public: | 203 public: |
| 204 enum Kind { | 204 enum Kind { |
| 205 kUnknown, | 205 kUnknown, |
| 206 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, | 206 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, |
| 207 RECOGNIZED_LIST(DEFINE_ENUM_LIST) | 207 RECOGNIZED_LIST(DEFINE_ENUM_LIST) |
| (...skipping 6698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6906 ForwardInstructionIterator* current_iterator_; | 6906 ForwardInstructionIterator* current_iterator_; |
| 6907 | 6907 |
| 6908 private: | 6908 private: |
| 6909 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6909 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6910 }; | 6910 }; |
| 6911 | 6911 |
| 6912 | 6912 |
| 6913 } // namespace dart | 6913 } // namespace dart |
| 6914 | 6914 |
| 6915 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6915 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |