| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 static CompileType Dynamic(); | 133 static CompileType Dynamic(); |
| 134 | 134 |
| 135 static CompileType Null(); | 135 static CompileType Null(); |
| 136 | 136 |
| 137 // Create non-nullable Bool type. | 137 // Create non-nullable Bool type. |
| 138 static CompileType Bool(); | 138 static CompileType Bool(); |
| 139 | 139 |
| 140 // Create non-nullable Int type. | 140 // Create non-nullable Int type. |
| 141 static CompileType Int(); | 141 static CompileType Int(); |
| 142 | 142 |
| 143 // Create non-nullable Smi type. |
| 144 static CompileType Smi(); |
| 145 |
| 143 // Create non-nullable String type. | 146 // Create non-nullable String type. |
| 144 static CompileType String(); | 147 static CompileType String(); |
| 145 | 148 |
| 146 // Perform a join operation over the type lattice. | 149 // Perform a join operation over the type lattice. |
| 147 void Union(CompileType* other); | 150 void Union(CompileType* other); |
| 148 | 151 |
| 149 // Returns true if this and other types are the same. | 152 // Returns true if this and other types are the same. |
| 150 bool IsEqualTo(CompileType* other) { | 153 bool IsEqualTo(CompileType* other) { |
| 151 return (is_nullable_ == other->is_nullable_) && | 154 return (is_nullable_ == other->is_nullable_) && |
| 152 (ToNullableCid() == other->ToNullableCid()) && | 155 (ToNullableCid() == other->ToNullableCid()) && |
| (...skipping 8131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8284 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8287 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8285 UNIMPLEMENTED(); \ | 8288 UNIMPLEMENTED(); \ |
| 8286 return NULL; \ | 8289 return NULL; \ |
| 8287 } \ | 8290 } \ |
| 8288 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8291 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8289 | 8292 |
| 8290 | 8293 |
| 8291 } // namespace dart | 8294 } // namespace dart |
| 8292 | 8295 |
| 8293 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8296 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |