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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: New failing test Created 3 years, 10 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 RawFunction* LookupConstructorByKernelConstructor(Constructor* constructor); 279 RawFunction* LookupConstructorByKernelConstructor(Constructor* constructor);
280 dart::RawFunction* LookupConstructorByKernelConstructor( 280 dart::RawFunction* LookupConstructorByKernelConstructor(
281 const dart::Class& owner, 281 const dart::Class& owner,
282 Constructor* constructor); 282 Constructor* constructor);
283 283
284 dart::Type& GetCanonicalType(const dart::Class& klass); 284 dart::Type& GetCanonicalType(const dart::Class& klass);
285 285
286 void ReportError(const char* format, ...); 286 void ReportError(const char* format, ...);
287 void ReportError(const Error& prev_error, const char* format, ...); 287 void ReportError(const Error& prev_error, const char* format, ...);
288 288
289 bool ShouldAddDebugInstruction(const Function& function,
Kevin Millikin (Google) 2017/02/08 15:37:53 Why are these in the translation helper instead of
jensj 2017/02/13 14:04:17 I paid to little attention to the name; I just saw
290 TokenPosition position);
291 bool ShouldAddDebugInstruction(Value* value, TokenPosition position);
292 Fragment GetDebugInstruction(TokenPosition position);
Kevin Millikin (Google) 2017/02/08 15:37:53 This one should definitely be in the graph builder
jensj 2017/02/13 14:04:17 Done.
293
289 private: 294 private:
290 // This will mangle [kernel_name] (if necessary) and make the result a symbol. 295 // This will mangle [kernel_name] (if necessary) and make the result a symbol.
291 // The result will be avilable in [name_to_modify] and it is also returned. 296 // The result will be avilable in [name_to_modify] and it is also returned.
292 dart::String& ManglePrivateName(Library* kernel_library, 297 dart::String& ManglePrivateName(Library* kernel_library,
293 dart::String* name_to_modify, 298 dart::String* name_to_modify,
294 bool symbolize = true); 299 bool symbolize = true);
295 300
296 dart::Thread* thread_; 301 dart::Thread* thread_;
297 dart::Zone* zone_; 302 dart::Zone* zone_;
298 dart::Isolate* isolate_; 303 dart::Isolate* isolate_;
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 intptr_t argument_count, 866 intptr_t argument_count,
862 const Array& argument_names); 867 const Array& argument_names);
863 Fragment StoreIndexed(intptr_t class_id); 868 Fragment StoreIndexed(intptr_t class_id);
864 Fragment StoreInstanceFieldGuarded(const dart::Field& field, 869 Fragment StoreInstanceFieldGuarded(const dart::Field& field,
865 bool is_initialization_store); 870 bool is_initialization_store);
866 Fragment StoreInstanceField( 871 Fragment StoreInstanceField(
867 const dart::Field& field, 872 const dart::Field& field,
868 bool is_initialization_store, 873 bool is_initialization_store,
869 StoreBarrierType emit_store_barrier = kEmitStoreBarrier); 874 StoreBarrierType emit_store_barrier = kEmitStoreBarrier);
870 Fragment StoreInstanceField( 875 Fragment StoreInstanceField(
876 TokenPosition position,
871 intptr_t offset, 877 intptr_t offset,
872 StoreBarrierType emit_store_barrier = kEmitStoreBarrier); 878 StoreBarrierType emit_store_barrier = kEmitStoreBarrier);
873 Fragment StoreLocal(TokenPosition position, LocalVariable* variable); 879 Fragment StoreLocal(TokenPosition position, LocalVariable* variable);
874 Fragment StoreStaticField(const dart::Field& field); 880 Fragment StoreStaticField(TokenPosition position, const dart::Field& field);
875 Fragment StringInterpolate(TokenPosition position); 881 Fragment StringInterpolate(TokenPosition position);
876 Fragment ThrowTypeError(); 882 Fragment ThrowTypeError();
877 Fragment ThrowNoSuchMethodError(); 883 Fragment ThrowNoSuchMethodError();
878 Fragment BuildImplicitClosureCreation(const Function& target); 884 Fragment BuildImplicitClosureCreation(const Function& target);
879 Fragment GuardFieldLength(const dart::Field& field, intptr_t deopt_id); 885 Fragment GuardFieldLength(const dart::Field& field, intptr_t deopt_id);
880 Fragment GuardFieldClass(const dart::Field& field, intptr_t deopt_id); 886 Fragment GuardFieldClass(const dart::Field& field, intptr_t deopt_id);
881 887
882 Fragment EvaluateAssertion(); 888 Fragment EvaluateAssertion();
883 Fragment CheckReturnTypeInCheckedMode(); 889 Fragment CheckReturnTypeInCheckedMode();
884 Fragment CheckVariableTypeInCheckedMode(VariableDeclaration* variable); 890 Fragment CheckVariableTypeInCheckedMode(VariableDeclaration* variable);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 namespace kernel { 1028 namespace kernel {
1023 1029
1024 RawObject* EvaluateMetadata(TreeNode* const kernel_node); 1030 RawObject* EvaluateMetadata(TreeNode* const kernel_node);
1025 RawObject* BuildParameterDescriptor(TreeNode* const kernel_node); 1031 RawObject* BuildParameterDescriptor(TreeNode* const kernel_node);
1026 1032
1027 } // namespace kernel 1033 } // namespace kernel
1028 } // namespace dart 1034 } // namespace dart
1029 1035
1030 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1036 #endif // !defined(DART_PRECOMPILED_RUNTIME)
1031 #endif // RUNTIME_VM_KERNEL_TO_IL_H_ 1037 #endif // RUNTIME_VM_KERNEL_TO_IL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698