| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 V(_Uint32x4, withFlagX, Uint32x4WithFlagX, 25547408) \ | 117 V(_Uint32x4, withFlagX, Uint32x4WithFlagX, 25547408) \ |
| 118 V(_Uint32x4, withFlagY, Uint32x4WithFlagY, 1176493005) \ | 118 V(_Uint32x4, withFlagY, Uint32x4WithFlagY, 1176493005) \ |
| 119 V(_Uint32x4, withFlagZ, Uint32x4WithFlagZ, 1237443319) \ | 119 V(_Uint32x4, withFlagZ, Uint32x4WithFlagZ, 1237443319) \ |
| 120 V(_Uint32x4, withFlagW, Uint32x4WithFlagW, 797585077) \ | 120 V(_Uint32x4, withFlagW, Uint32x4WithFlagW, 797585077) \ |
| 121 V(_Uint32x4, _toFloat32x4, Uint32x4ToUint32x4, 912844231) \ | 121 V(_Uint32x4, _toFloat32x4, Uint32x4ToUint32x4, 912844231) \ |
| 122 | 122 |
| 123 | 123 |
| 124 // A list of core function that should always be inlined. | 124 // A list of core function that should always be inlined. |
| 125 #define INLINE_WHITE_LIST(V) \ | 125 #define INLINE_WHITE_LIST(V) \ |
| 126 V(ListIterator, moveNext, ListIteratorMoveNext, 203118278) \ | 126 V(ListIterator, moveNext, ListIteratorMoveNext, 203118278) \ |
| 127 V(_GrowableObjectArray, get:iterator, GrowableArrayIterator, 810824939) | 127 V(_GrowableObjectArray, get:iterator, GrowableArrayIterator, 810824939) \ |
| 128 V(_GrowableObjectArray, forEach, GrowableArrayForEach, 619038738) |
| 129 |
| 128 | 130 |
| 129 // Class that recognizes the name and owner of a function and returns the | 131 // Class that recognizes the name and owner of a function and returns the |
| 130 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable | 132 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable |
| 131 // functions. | 133 // functions. |
| 132 class MethodRecognizer : public AllStatic { | 134 class MethodRecognizer : public AllStatic { |
| 133 public: | 135 public: |
| 134 enum Kind { | 136 enum Kind { |
| 135 kUnknown, | 137 kUnknown, |
| 136 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, | 138 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, |
| 137 RECOGNIZED_LIST(DEFINE_ENUM_LIST) | 139 RECOGNIZED_LIST(DEFINE_ENUM_LIST) |
| (...skipping 6416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6554 ForwardInstructionIterator* current_iterator_; | 6556 ForwardInstructionIterator* current_iterator_; |
| 6555 | 6557 |
| 6556 private: | 6558 private: |
| 6557 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6559 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6558 }; | 6560 }; |
| 6559 | 6561 |
| 6560 | 6562 |
| 6561 } // namespace dart | 6563 } // namespace dart |
| 6562 | 6564 |
| 6563 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6565 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |