| 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 18 matching lines...) Expand all Loading... |
| 29 class Instruction; | 29 class Instruction; |
| 30 class LocalVariable; | 30 class LocalVariable; |
| 31 class ParsedFunction; | 31 class ParsedFunction; |
| 32 class Range; | 32 class Range; |
| 33 | 33 |
| 34 | 34 |
| 35 // TODO(srdjan): Unify with INTRINSIC_LIST. | 35 // TODO(srdjan): Unify with INTRINSIC_LIST. |
| 36 // (class-name, function-name, recognized enum, fingerprint). | 36 // (class-name, function-name, recognized enum, fingerprint). |
| 37 // See intrinsifier for fingerprint computation. | 37 // See intrinsifier for fingerprint computation. |
| 38 #define RECOGNIZED_LIST(V) \ | 38 #define RECOGNIZED_LIST(V) \ |
| 39 V(::, identical, ObjectIdentical, 1018911876) \ |
| 39 V(Object, Object., ObjectConstructor, 2030609793) \ | 40 V(Object, Object., ObjectConstructor, 2030609793) \ |
| 40 V(Object, get:_cid, ObjectCid, 732498573) \ | 41 V(Object, get:_cid, ObjectCid, 732498573) \ |
| 41 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \ | 42 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \ |
| 42 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ | 43 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ |
| 43 V(_TypedList, get:length, TypedDataLength, 1004567191) \ | 44 V(_TypedList, get:length, TypedDataLength, 1004567191) \ |
| 44 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1219036864) \ | 45 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1219036864) \ |
| 45 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1219036864) \ | 46 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1219036864) \ |
| 46 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1219036864) \ | 47 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 1219036864) \ |
| 47 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1219036864) \ | 48 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1219036864) \ |
| 48 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1219036864) \ | 49 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 1219036864) \ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 70 V(_OneByteString, _setAt, OneByteStringSetAt, 1038132016) \ | 71 V(_OneByteString, _setAt, OneByteStringSetAt, 1038132016) \ |
| 71 V(_IntegerImplementation, toDouble, IntegerToDouble, 1331752138) \ | 72 V(_IntegerImplementation, toDouble, IntegerToDouble, 1331752138) \ |
| 72 V(_Double, toInt, DoubleToInteger, 630286253) \ | 73 V(_Double, toInt, DoubleToInteger, 630286253) \ |
| 73 V(_Double, truncateToDouble, DoubleTruncate, 1804056693) \ | 74 V(_Double, truncateToDouble, DoubleTruncate, 1804056693) \ |
| 74 V(_Double, roundToDouble, DoubleRound, 1804056693) \ | 75 V(_Double, roundToDouble, DoubleRound, 1804056693) \ |
| 75 V(_Double, floorToDouble, DoubleFloor, 1804056693) \ | 76 V(_Double, floorToDouble, DoubleFloor, 1804056693) \ |
| 76 V(_Double, ceilToDouble, DoubleCeil, 1804056693) \ | 77 V(_Double, ceilToDouble, DoubleCeil, 1804056693) \ |
| 77 V(_Double, pow, DoublePow, 102305574) \ | 78 V(_Double, pow, DoublePow, 102305574) \ |
| 78 V(_Double, _modulo, DoubleMod, 663439671) \ | 79 V(_Double, _modulo, DoubleMod, 663439671) \ |
| 79 V(::, sqrt, MathSqrt, 1662640002) \ | 80 V(::, sqrt, MathSqrt, 1662640002) \ |
| 81 V(::, min, MathMin, 269896129) \ |
| 82 V(::, max, MathMax, 1286442186) \ |
| 80 V(Float32x4, Float32x4., Float32x4Constructor, 1492157358) \ | 83 V(Float32x4, Float32x4., Float32x4Constructor, 1492157358) \ |
| 81 V(Float32x4, Float32x4.zero, Float32x4Zero, 444339161) \ | 84 V(Float32x4, Float32x4.zero, Float32x4Zero, 444339161) \ |
| 82 V(Float32x4, Float32x4.splat, Float32x4Splat, 1843231403) \ | 85 V(Float32x4, Float32x4.splat, Float32x4Splat, 1843231403) \ |
| 83 V(_Float32x4, get:xxxx, Float32x4ShuffleXXXX, 42621627) \ | 86 V(_Float32x4, get:xxxx, Float32x4ShuffleXXXX, 42621627) \ |
| 84 V(_Float32x4, get:yyyy, Float32x4ShuffleYYYY, 42621627) \ | 87 V(_Float32x4, get:yyyy, Float32x4ShuffleYYYY, 42621627) \ |
| 85 V(_Float32x4, get:zzzz, Float32x4ShuffleZZZZ, 42621627) \ | 88 V(_Float32x4, get:zzzz, Float32x4ShuffleZZZZ, 42621627) \ |
| 86 V(_Float32x4, get:wwww, Float32x4ShuffleWWWW, 42621627) \ | 89 V(_Float32x4, get:wwww, Float32x4ShuffleWWWW, 42621627) \ |
| 87 V(_Float32x4, get:x, Float32x4ShuffleX, 211144022) \ | 90 V(_Float32x4, get:x, Float32x4ShuffleX, 211144022) \ |
| 88 V(_Float32x4, get:y, Float32x4ShuffleY, 211144022) \ | 91 V(_Float32x4, get:y, Float32x4ShuffleY, 211144022) \ |
| 89 V(_Float32x4, get:z, Float32x4ShuffleZ, 211144022) \ | 92 V(_Float32x4, get:z, Float32x4ShuffleZ, 211144022) \ |
| (...skipping 6401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6491 ForwardInstructionIterator* current_iterator_; | 6494 ForwardInstructionIterator* current_iterator_; |
| 6492 | 6495 |
| 6493 private: | 6496 private: |
| 6494 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6497 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6495 }; | 6498 }; |
| 6496 | 6499 |
| 6497 | 6500 |
| 6498 } // namespace dart | 6501 } // namespace dart |
| 6499 | 6502 |
| 6500 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6503 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |