OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 13 matching lines...) Expand all Loading... |
24 class FlowGraphCompiler; | 24 class FlowGraphCompiler; |
25 class FlowGraphVisitor; | 25 class FlowGraphVisitor; |
26 class Instruction; | 26 class Instruction; |
27 class LocalVariable; | 27 class LocalVariable; |
28 class Range; | 28 class Range; |
29 | 29 |
30 | 30 |
31 // TODO(srdjan): Add _ByteArrayBase, get:length. | 31 // TODO(srdjan): Add _ByteArrayBase, get:length. |
32 | 32 |
33 #define RECOGNIZED_LIST(V) \ | 33 #define RECOGNIZED_LIST(V) \ |
34 V(ObjectArray, get:length, ObjectArrayLength) \ | 34 V(_ObjectArray, get:length, ObjectArrayLength) \ |
35 V(ImmutableArray, get:length, ImmutableArrayLength) \ | 35 V(_ImmutableArray, get:length, ImmutableArrayLength) \ |
36 V(GrowableObjectArray, get:length, GrowableArrayLength) \ | 36 V(_GrowableObjectArray, get:length, GrowableArrayLength) \ |
37 V(GrowableObjectArray, get:capacity, GrowableArrayCapacity) \ | 37 V(_GrowableObjectArray, get:capacity, GrowableArrayCapacity) \ |
38 V(StringBase, get:length, StringBaseLength) \ | 38 V(StringBase, get:length, StringBaseLength) \ |
39 V(_IntegerImplementation, toDouble, IntegerToDouble) \ | 39 V(_IntegerImplementation, toDouble, IntegerToDouble) \ |
40 V(_Double, toDouble, DoubleToDouble) \ | 40 V(_Double, toDouble, DoubleToDouble) \ |
41 V(::, sqrt, MathSqrt) \ | 41 V(::, sqrt, MathSqrt) \ |
42 | 42 |
43 // Class that recognizes the name and owner of a function and returns the | 43 // Class that recognizes the name and owner of a function and returns the |
44 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable | 44 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable |
45 // functions. | 45 // functions. |
46 class MethodRecognizer : public AllStatic { | 46 class MethodRecognizer : public AllStatic { |
47 public: | 47 public: |
(...skipping 3918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3966 ForwardInstructionIterator* current_iterator_; | 3966 ForwardInstructionIterator* current_iterator_; |
3967 | 3967 |
3968 private: | 3968 private: |
3969 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3969 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
3970 }; | 3970 }; |
3971 | 3971 |
3972 | 3972 |
3973 } // namespace dart | 3973 } // namespace dart |
3974 | 3974 |
3975 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3975 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
OLD | NEW |