| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 RUNTIME_VM_KERNEL_TO_IL_H_ | 5 #ifndef RUNTIME_VM_KERNEL_TO_IL_H_ |
| 6 #define RUNTIME_VM_KERNEL_TO_IL_H_ | 6 #define RUNTIME_VM_KERNEL_TO_IL_H_ |
| 7 | 7 |
| 8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 9 | 9 |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 LocalVariable* MakeNonTemporary(const dart::String& symbol); | 970 LocalVariable* MakeNonTemporary(const dart::String& symbol); |
| 971 | 971 |
| 972 intptr_t CurrentTryIndex(); | 972 intptr_t CurrentTryIndex(); |
| 973 intptr_t AllocateTryIndex() { return next_used_try_index_++; } | 973 intptr_t AllocateTryIndex() { return next_used_try_index_++; } |
| 974 | 974 |
| 975 void AddVariable(VariableDeclaration* declaration, LocalVariable* variable); | 975 void AddVariable(VariableDeclaration* declaration, LocalVariable* variable); |
| 976 void AddParameter(VariableDeclaration* declaration, | 976 void AddParameter(VariableDeclaration* declaration, |
| 977 LocalVariable* variable, | 977 LocalVariable* variable, |
| 978 intptr_t pos); | 978 intptr_t pos); |
| 979 dart::LocalVariable* LookupVariable(VariableDeclaration* var); | 979 dart::LocalVariable* LookupVariable(VariableDeclaration* var); |
| 980 dart::LocalVariable* LookupVariable(intptr_t kernel_offset); |
| 980 | 981 |
| 981 void SetTempIndex(Definition* definition); | 982 void SetTempIndex(Definition* definition); |
| 982 | 983 |
| 983 void Push(Definition* definition); | 984 void Push(Definition* definition); |
| 984 Value* Pop(); | 985 Value* Pop(); |
| 985 Fragment Drop(); | 986 Fragment Drop(); |
| 986 | 987 |
| 987 bool IsInlining() { return exit_collector_ != NULL; } | 988 bool IsInlining() { return exit_collector_ != NULL; } |
| 988 | 989 |
| 989 Token::Kind MethodKind(const dart::String& name); | 990 Token::Kind MethodKind(const dart::String& name); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 namespace kernel { | 1129 namespace kernel { |
| 1129 | 1130 |
| 1130 RawObject* EvaluateMetadata(TreeNode* const kernel_node); | 1131 RawObject* EvaluateMetadata(TreeNode* const kernel_node); |
| 1131 RawObject* BuildParameterDescriptor(TreeNode* const kernel_node); | 1132 RawObject* BuildParameterDescriptor(TreeNode* const kernel_node); |
| 1132 | 1133 |
| 1133 } // namespace kernel | 1134 } // namespace kernel |
| 1134 } // namespace dart | 1135 } // namespace dart |
| 1135 | 1136 |
| 1136 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 1137 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 1137 #endif // RUNTIME_VM_KERNEL_TO_IL_H_ | 1138 #endif // RUNTIME_VM_KERNEL_TO_IL_H_ |
| OLD | NEW |