| 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 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3240 return EffectSet::None(); | 3240 return EffectSet::None(); |
| 3241 } | 3241 } |
| 3242 | 3242 |
| 3243 private: | 3243 private: |
| 3244 DISALLOW_COPY_AND_ASSIGN(PushTempInstr); | 3244 DISALLOW_COPY_AND_ASSIGN(PushTempInstr); |
| 3245 }; | 3245 }; |
| 3246 | 3246 |
| 3247 | 3247 |
| 3248 class DropTempsInstr : public Definition { | 3248 class DropTempsInstr : public Definition { |
| 3249 public: | 3249 public: |
| 3250 explicit DropTempsInstr(intptr_t num_temps, Value* value = NULL) | 3250 DropTempsInstr(intptr_t num_temps, Value* value) |
| 3251 : num_temps_(num_temps), value_(NULL) { | 3251 : num_temps_(num_temps), value_(NULL) { |
| 3252 if (value != NULL) { | 3252 if (value != NULL) { |
| 3253 SetInputAt(0, value); | 3253 SetInputAt(0, value); |
| 3254 } | 3254 } |
| 3255 } | 3255 } |
| 3256 | 3256 |
| 3257 DECLARE_INSTRUCTION(DropTemps) | 3257 DECLARE_INSTRUCTION(DropTemps) |
| 3258 | 3258 |
| 3259 virtual intptr_t InputCount() const { return value_ != NULL ? 1 : 0; } | 3259 virtual intptr_t InputCount() const { return value_ != NULL ? 1 : 0; } |
| 3260 virtual Value* InputAt(intptr_t i) const { | 3260 virtual Value* InputAt(intptr_t i) const { |
| (...skipping 4709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7970 Isolate* isolate, bool opt) const { \ | 7970 Isolate* isolate, bool opt) const { \ |
| 7971 UNIMPLEMENTED(); \ | 7971 UNIMPLEMENTED(); \ |
| 7972 return NULL; \ | 7972 return NULL; \ |
| 7973 } \ | 7973 } \ |
| 7974 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 7974 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 7975 | 7975 |
| 7976 | 7976 |
| 7977 } // namespace dart | 7977 } // namespace dart |
| 7978 | 7978 |
| 7979 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7979 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |