| 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 7949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7960 index -= env->Length(); | 7960 index -= env->Length(); |
| 7961 env = env->outer_; | 7961 env = env->outer_; |
| 7962 } | 7962 } |
| 7963 return env->ValueAt(index); | 7963 return env->ValueAt(index); |
| 7964 } | 7964 } |
| 7965 | 7965 |
| 7966 intptr_t fixed_parameter_count() const { | 7966 intptr_t fixed_parameter_count() const { |
| 7967 return fixed_parameter_count_; | 7967 return fixed_parameter_count_; |
| 7968 } | 7968 } |
| 7969 | 7969 |
| 7970 intptr_t CountArgsPushed() { |
| 7971 intptr_t count = 0; |
| 7972 for (Environment::DeepIterator it(this); !it.Done(); it.Advance()) { |
| 7973 if (it.CurrentValue()->definition()->IsPushArgument()) { |
| 7974 count++; |
| 7975 } |
| 7976 } |
| 7977 return count; |
| 7978 } |
| 7979 |
| 7970 const Code& code() const { return parsed_function_.code(); } | 7980 const Code& code() const { return parsed_function_.code(); } |
| 7971 | 7981 |
| 7972 Environment* DeepCopy(Isolate* isolate) const { | 7982 Environment* DeepCopy(Isolate* isolate) const { |
| 7973 return DeepCopy(isolate, Length()); | 7983 return DeepCopy(isolate, Length()); |
| 7974 } | 7984 } |
| 7975 | 7985 |
| 7976 void DeepCopyTo(Isolate* isolate, Instruction* instr) const; | 7986 void DeepCopyTo(Isolate* isolate, Instruction* instr) const; |
| 7977 void DeepCopyToOuter(Isolate* isolate, Instruction* instr) const; | 7987 void DeepCopyToOuter(Isolate* isolate, Instruction* instr) const; |
| 7978 | 7988 |
| 7979 void DeepCopyAfterTo(Isolate* isolate, | 7989 void DeepCopyAfterTo(Isolate* isolate, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8056 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8066 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8057 UNIMPLEMENTED(); \ | 8067 UNIMPLEMENTED(); \ |
| 8058 return NULL; \ | 8068 return NULL; \ |
| 8059 } \ | 8069 } \ |
| 8060 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8070 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8061 | 8071 |
| 8062 | 8072 |
| 8063 } // namespace dart | 8073 } // namespace dart |
| 8064 | 8074 |
| 8065 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8075 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |