| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 static const char* ToCString(intptr_t token_pos) { | 62 static const char* ToCString(intptr_t token_pos) { |
| 63 ASSERT(token_pos < 0); | 63 ASSERT(token_pos < 0); |
| 64 switch (token_pos) { | 64 switch (token_pos) { |
| 65 case Scanner::kNoSourcePos: return "NoSource"; | 65 case Scanner::kNoSourcePos: return "NoSource"; |
| 66 #define DEFINE_CASE(name, value) \ | 66 #define DEFINE_CASE(name, value) \ |
| 67 case value: return #name; | 67 case value: return #name; |
| 68 CLASSIFYING_TOKEN_POSITIONS(DEFINE_CASE); | 68 CLASSIFYING_TOKEN_POSITIONS(DEFINE_CASE); |
| 69 #undef DEFINE_CASE | 69 #undef DEFINE_CASE |
| 70 default: | 70 default: |
| 71 UNIMPLEMENTED(); | 71 UNIMPLEMENTED(); |
| 72 return NULL; |
| 72 } | 73 } |
| 73 } | 74 } |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 // CompileType describes type of the value produced by the definition. | 77 // CompileType describes type of the value produced by the definition. |
| 77 // | 78 // |
| 78 // It captures the following properties: | 79 // It captures the following properties: |
| 79 // - whether value can potentially be null or it is definitely not null; | 80 // - whether value can potentially be null or it is definitely not null; |
| 80 // - concrete class id of the value or kDynamicCid if unknown statically; | 81 // - concrete class id of the value or kDynamicCid if unknown statically; |
| 81 // - abstract super type of the value, concrete type of the value in runtime | 82 // - abstract super type of the value, concrete type of the value in runtime |
| (...skipping 8113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8195 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8196 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8196 UNIMPLEMENTED(); \ | 8197 UNIMPLEMENTED(); \ |
| 8197 return NULL; \ | 8198 return NULL; \ |
| 8198 } \ | 8199 } \ |
| 8199 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8200 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8200 | 8201 |
| 8201 | 8202 |
| 8202 } // namespace dart | 8203 } // namespace dart |
| 8203 | 8204 |
| 8204 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8205 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |