Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: runtime/vm/kernel_to_il.h

Issue 2790093002: Hacky streaming of VariableGet (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698