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

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

Issue 2776373002: Initial steps into streaming the kernel flowgraph (Closed)
Patch Set: Changed type 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
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
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.
4
5 #ifndef RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_
6 #define RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_
7
8 #if !defined(DART_PRECOMPILED_RUNTIME)
9
10 #include <map>
11
12 #include "vm/kernel.h"
13 #include "vm/kernel_binary.h"
14 #include "vm/kernel_to_il.h"
15 #include "vm/object.h"
16
17 namespace dart {
18 namespace kernel {
19
20 class KernelFlowgraphBuilder {
Kevin Millikin (Google) 2017/03/28 12:50:00 I'd call this something like StreamingFlowGraphBui
jensj 2017/03/29 09:30:42 Done.
21 public:
22 KernelFlowgraphBuilder(FlowGraphBuilder* flowGraph_builder,
23 const uint8_t* buffer,
24 intptr_t buffer_length)
25 : flowGraph_builder_(flowGraph_builder),
26 reader_(new kernel::Reader(buffer, buffer_length)) {}
27
28 virtual ~KernelFlowgraphBuilder() { delete reader_; }
29
30 Fragment BuildAt(int64_t kernel_offset);
31
32 private:
33 Fragment buildRethrow();
Kevin Millikin (Google) 2017/03/28 12:50:00 BuildRethrow()
jensj 2017/03/29 09:30:42 Done.
34
35 FlowGraphBuilder* flowGraph_builder_;
Kevin Millikin (Google) 2017/03/28 12:50:00 flow_graph_builder_ or possibly flowgraph_builder_
jensj 2017/03/29 09:30:42 Done.
36 kernel::Reader* reader_;
37 };
38
39 } // namespace kernel
40 } // namespace dart
41
42 #endif // !defined(DART_PRECOMPILED_RUNTIME)
43 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698