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

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

Issue 2632183002: Debugging in kernel shaping up. (Closed)
Patch Set: Changed to TokenPosition::kMaxSourcePos 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
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/kernel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef RUNTIME_VM_KERNEL_H_
6 #define RUNTIME_VM_KERNEL_H_ 6 #define RUNTIME_VM_KERNEL_H_
7 7
8 #if !defined(DART_PRECOMPILED_RUNTIME) 8 #if !defined(DART_PRECOMPILED_RUNTIME)
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
11 #include "vm/globals.h" 11 #include "vm/globals.h"
12 #include "vm/growable_array.h"
12 #include "vm/token_position.h" 13 #include "vm/token_position.h"
13 14
14 15
15 #define KERNEL_NODES_DO(M) \ 16 #define KERNEL_NODES_DO(M) \
16 M(Name) \ 17 M(Name) \
17 M(InferredValue) \ 18 M(InferredValue) \
18 M(DartType) \ 19 M(DartType) \
19 M(InvalidType) \ 20 M(InvalidType) \
20 M(DynamicType) \ 21 M(DynamicType) \
21 M(VoidType) \ 22 M(VoidType) \
(...skipping 2698 matching lines...) Expand 10 before | Expand all | Expand 10 after
2720 DEFINE_CASTING_OPERATIONS(Program); 2721 DEFINE_CASTING_OPERATIONS(Program);
2721 2722
2722 virtual void AcceptTreeVisitor(TreeVisitor* visitor); 2723 virtual void AcceptTreeVisitor(TreeVisitor* visitor);
2723 virtual void VisitChildren(Visitor* visitor); 2724 virtual void VisitChildren(Visitor* visitor);
2724 2725
2725 StringTable& string_table() { return string_table_; } 2726 StringTable& string_table() { return string_table_; }
2726 StringTable& source_uri_table() { return source_uri_table_; } 2727 StringTable& source_uri_table() { return source_uri_table_; }
2727 SourceTable& source_table() { return source_table_; } 2728 SourceTable& source_table() { return source_table_; }
2728 List<Library>& libraries() { return libraries_; } 2729 List<Library>& libraries() { return libraries_; }
2729 Procedure* main_method() { return main_method_; } 2730 Procedure* main_method() { return main_method_; }
2731 MallocGrowableArray<MallocGrowableArray<intptr_t>*> valid_token_positions;
2732 MallocGrowableArray<MallocGrowableArray<intptr_t>*> yield_token_positions;
2730 2733
2731 private: 2734 private:
2732 Program() {} 2735 Program() {}
2733 2736
2734 List<Library> libraries_; 2737 List<Library> libraries_;
2735 Ref<Procedure> main_method_; 2738 Ref<Procedure> main_method_;
2736 StringTable string_table_; 2739 StringTable string_table_;
2737 StringTable source_uri_table_; 2740 StringTable source_uri_table_;
2738 SourceTable source_table_; 2741 SourceTable source_table_;
2739 2742
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
3164 3167
3165 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, 3168 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer,
3166 intptr_t buffer_length); 3169 intptr_t buffer_length);
3167 3170
3168 3171
3169 3172
3170 } // namespace dart 3173 } // namespace dart
3171 3174
3172 #endif // !defined(DART_PRECOMPILED_RUNTIME) 3175 #endif // !defined(DART_PRECOMPILED_RUNTIME)
3173 #endif // RUNTIME_VM_KERNEL_H_ 3176 #endif // RUNTIME_VM_KERNEL_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/kernel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698