| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // These token positions are used to classify instructions that can't be | 41 // These token positions are used to classify instructions that can't be |
| 42 // directly tied to an actual source position. | 42 // directly tied to an actual source position. |
| 43 #define CLASSIFYING_TOKEN_POSITIONS(V) \ | 43 #define CLASSIFYING_TOKEN_POSITIONS(V) \ |
| 44 V(Private, -2) \ | 44 V(Private, -2) \ |
| 45 V(Box, -3) \ | 45 V(Box, -3) \ |
| 46 V(ParallelMove, -4) \ | 46 V(ParallelMove, -4) \ |
| 47 V(TempMove, -5) \ | 47 V(TempMove, -5) \ |
| 48 V(Constant, -6) \ | 48 V(Constant, -6) \ |
| 49 V(PushArgument, -7) \ | 49 V(PushArgument, -7) \ |
| 50 V(ControlFlow, -8) | 50 V(ControlFlow, -8) \ |
| 51 V(Context, -9) |
| 51 | 52 |
| 52 // COMPILE_ASSERT that all CLASSIFYING_TOKEN_POSITIONS are less than | 53 // COMPILE_ASSERT that all CLASSIFYING_TOKEN_POSITIONS are less than |
| 53 // Scanner::kNoSourcePos. | 54 // Scanner::kNoSourcePos. |
| 54 #define SANITY_CHECK_VALUES(name, value) \ | 55 #define SANITY_CHECK_VALUES(name, value) \ |
| 55 COMPILE_ASSERT(value < Scanner::kNoSourcePos); | 56 COMPILE_ASSERT(value < Scanner::kNoSourcePos); |
| 56 CLASSIFYING_TOKEN_POSITIONS(SANITY_CHECK_VALUES); | 57 CLASSIFYING_TOKEN_POSITIONS(SANITY_CHECK_VALUES); |
| 57 #undef SANITY_CHECK_VALUES | 58 #undef SANITY_CHECK_VALUES |
| 58 | 59 |
| 59 class ClassifyingTokenPositions : public AllStatic { | 60 class ClassifyingTokenPositions : public AllStatic { |
| 60 public: | 61 public: |
| (...skipping 8153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8214 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8215 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8215 UNIMPLEMENTED(); \ | 8216 UNIMPLEMENTED(); \ |
| 8216 return NULL; \ | 8217 return NULL; \ |
| 8217 } \ | 8218 } \ |
| 8218 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8219 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8219 | 8220 |
| 8220 | 8221 |
| 8221 } // namespace dart | 8222 } // namespace dart |
| 8222 | 8223 |
| 8223 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8224 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |