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

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

Issue 2624513005: Small cleanups in the Kernel FlowGraphBuilder (Closed)
Patch Set: Incorporate review comments Created 3 years, 11 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/kernel_binary.cc ('k') | runtime/vm/kernel_reader.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_READER_H_ 5 #ifndef RUNTIME_VM_KERNEL_READER_H_
6 #define RUNTIME_VM_KERNEL_READER_H_ 6 #define RUNTIME_VM_KERNEL_READER_H_
7 7
8 #if !defined(DART_PRECOMPILED_RUNTIME) 8 #if !defined(DART_PRECOMPILED_RUNTIME)
9 #include <map> 9 #include <map>
10 10
11 #include "vm/kernel.h" 11 #include "vm/kernel.h"
12 #include "vm/kernel_to_il.h" 12 #include "vm/kernel_to_il.h"
13 #include "vm/object.h" 13 #include "vm/object.h"
14 14
15 namespace dart { 15 namespace dart {
16 namespace kernel { 16 namespace kernel {
17 17
18 class KernelReader; 18 class KernelReader;
19 19
20 class BuildingTranslationHelper : public TranslationHelper { 20 class BuildingTranslationHelper : public TranslationHelper {
21 public: 21 public:
22 BuildingTranslationHelper(KernelReader* reader, 22 BuildingTranslationHelper(KernelReader* reader, dart::Thread* thread)
23 dart::Thread* thread, 23 : TranslationHelper(thread), reader_(reader) {}
24 dart::Zone* zone,
25 Isolate* isolate)
26 : TranslationHelper(thread, zone, isolate), reader_(reader) {}
27 virtual ~BuildingTranslationHelper() {} 24 virtual ~BuildingTranslationHelper() {}
28 25
29 virtual RawLibrary* LookupLibraryByKernelLibrary(Library* library); 26 virtual RawLibrary* LookupLibraryByKernelLibrary(Library* library);
30 virtual RawClass* LookupClassByKernelClass(Class* klass); 27 virtual RawClass* LookupClassByKernelClass(Class* klass);
31 28
32 private: 29 private:
33 KernelReader* reader_; 30 KernelReader* reader_;
34 }; 31 };
35 32
36 template <typename KernelType, typename VmType> 33 template <typename KernelType, typename VmType>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 107
111 Mapping<Library, dart::Library> libraries_; 108 Mapping<Library, dart::Library> libraries_;
112 Mapping<Class, dart::Class> classes_; 109 Mapping<Class, dart::Class> classes_;
113 }; 110 };
114 111
115 } // namespace kernel 112 } // namespace kernel
116 } // namespace dart 113 } // namespace dart
117 114
118 #endif // !defined(DART_PRECOMPILED_RUNTIME) 115 #endif // !defined(DART_PRECOMPILED_RUNTIME)
119 #endif // RUNTIME_VM_KERNEL_READER_H_ 116 #endif // RUNTIME_VM_KERNEL_READER_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_binary.cc ('k') | runtime/vm/kernel_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698