| 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 7997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8008 intptr_t CountArgsPushed() { | 8008 intptr_t CountArgsPushed() { |
| 8009 intptr_t count = 0; | 8009 intptr_t count = 0; |
| 8010 for (Environment::DeepIterator it(this); !it.Done(); it.Advance()) { | 8010 for (Environment::DeepIterator it(this); !it.Done(); it.Advance()) { |
| 8011 if (it.CurrentValue()->definition()->IsPushArgument()) { | 8011 if (it.CurrentValue()->definition()->IsPushArgument()) { |
| 8012 count++; | 8012 count++; |
| 8013 } | 8013 } |
| 8014 } | 8014 } |
| 8015 return count; | 8015 return count; |
| 8016 } | 8016 } |
| 8017 | 8017 |
| 8018 const Code& code() const { return parsed_function_.code(); } | 8018 const Function& function() const { return parsed_function_.function(); } |
| 8019 | 8019 |
| 8020 Environment* DeepCopy(Zone* zone) const { | 8020 Environment* DeepCopy(Zone* zone) const { |
| 8021 return DeepCopy(zone, Length()); | 8021 return DeepCopy(zone, Length()); |
| 8022 } | 8022 } |
| 8023 | 8023 |
| 8024 void DeepCopyTo(Zone* zone, Instruction* instr) const; | 8024 void DeepCopyTo(Zone* zone, Instruction* instr) const; |
| 8025 void DeepCopyToOuter(Zone* zone, Instruction* instr) const; | 8025 void DeepCopyToOuter(Zone* zone, Instruction* instr) const; |
| 8026 | 8026 |
| 8027 void DeepCopyAfterTo(Zone* zone, | 8027 void DeepCopyAfterTo(Zone* zone, |
| 8028 Instruction* instr, | 8028 Instruction* instr, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8105 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8105 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8106 UNIMPLEMENTED(); \ | 8106 UNIMPLEMENTED(); \ |
| 8107 return NULL; \ | 8107 return NULL; \ |
| 8108 } \ | 8108 } \ |
| 8109 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8109 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8110 | 8110 |
| 8111 | 8111 |
| 8112 } // namespace dart | 8112 } // namespace dart |
| 8113 | 8113 |
| 8114 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8114 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |