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

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

Issue 1411873005: Start remove dependencies on compiler-related files. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: removed some unnecessry includes Created 5 years, 1 month 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 | « no previous file | runtime/vm/flow_graph_compiler.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 VM_FLOW_GRAPH_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 10 matching lines...) Expand all
21 class Class; 21 class Class;
22 class Field; 22 class Field;
23 class LocalVariable; 23 class LocalVariable;
24 class ParsedFunction; 24 class ParsedFunction;
25 class String; 25 class String;
26 class TypeArguments; 26 class TypeArguments;
27 27
28 class NestedStatement; 28 class NestedStatement;
29 class TestGraphVisitor; 29 class TestGraphVisitor;
30 30
31 // List of recognized list factories:
32 // (factory-name-symbol, result-cid, fingerprint).
33 #define RECOGNIZED_LIST_FACTORY_LIST(V) \
34 V(_ListFactory, kArrayCid, 850375012) \
35 V(_GrowableListWithData, kGrowableObjectArrayCid, 2094352700) \
36 V(_GrowableListFactory, kGrowableObjectArrayCid, 1518848600) \
37 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 439914696) \
38 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 1442599030) \
39 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 1320015159) \
40 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 2132591678) \
41 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 1704816032) \
42 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1115045147) \
43 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 1385852190) \
44 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1193438555) \
45 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 410766246) \
46 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1430631000) \
47 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1194249144) \
48 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 158753569) \
49
50
51 // Class that recognizes factories and returns corresponding result cid.
52 class FactoryRecognizer : public AllStatic {
53 public:
54 // Return kDynamicCid if factory is not recognized.
55 static intptr_t ResultCid(const Function& factory);
56 };
57
58
59 // A class to collect the exits from an inlined function during graph 31 // A class to collect the exits from an inlined function during graph
60 // construction so they can be plugged into the caller's flow graph. 32 // construction so they can be plugged into the caller's flow graph.
61 class InlineExitCollector: public ZoneAllocated { 33 class InlineExitCollector: public ZoneAllocated {
62 public: 34 public:
63 InlineExitCollector(FlowGraph* caller_graph, Definition* call) 35 InlineExitCollector(FlowGraph* caller_graph, Definition* call)
64 : caller_graph_(caller_graph), call_(call), exits_(4) { } 36 : caller_graph_(caller_graph), call_(call), exits_(4) { }
65 37
66 void AddExit(ReturnInstr* exit); 38 void AddExit(ReturnInstr* exit);
67 39
68 void Union(const InlineExitCollector* other); 40 void Union(const InlineExitCollector* other);
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // Output parameters. 574 // Output parameters.
603 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 575 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
604 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 576 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
605 577
606 intptr_t condition_token_pos_; 578 intptr_t condition_token_pos_;
607 }; 579 };
608 580
609 } // namespace dart 581 } // namespace dart
610 582
611 #endif // VM_FLOW_GRAPH_BUILDER_H_ 583 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698