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

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

Issue 78733002: Generalize if-conversion to arbitrary smi comparisons. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_inliner.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) 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_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
11 #include "vm/code_generator.h" 11 #include "vm/code_generator.h"
12 #include "vm/intermediate_language.h" 12 #include "vm/intermediate_language.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 // Forward declarations. 16 // Forward declarations.
17 class Code; 17 class Code;
18 class DeoptInfoBuilder; 18 class DeoptInfoBuilder;
19 class FlowGraph; 19 class FlowGraph;
20 class FlowGraphCompiler; 20 class FlowGraphCompiler;
21 class Function; 21 class Function;
22 template <typename T> class GrowableArray; 22 template <typename T> class GrowableArray;
23 class ParsedFunction; 23 class ParsedFunction;
24 24
25 25
26 struct BranchLabels {
27 Label* true_label;
28 Label* false_label;
29 Label* fall_through;
30 };
31
32
33 class ParallelMoveResolver : public ValueObject { 26 class ParallelMoveResolver : public ValueObject {
34 public: 27 public:
35 explicit ParallelMoveResolver(FlowGraphCompiler* compiler); 28 explicit ParallelMoveResolver(FlowGraphCompiler* compiler);
36 29
37 // Resolve a set of parallel moves, emitting assembler instructions. 30 // Resolve a set of parallel moves, emitting assembler instructions.
38 void EmitNativeCode(ParallelMoveInstr* parallel_move); 31 void EmitNativeCode(ParallelMoveInstr* parallel_move);
39 32
40 private: 33 private:
41 class ScratchFpuRegisterScope : public ValueObject { 34 class ScratchFpuRegisterScope : public ValueObject {
42 public: 35 public:
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 // that should be used when deoptimizing we store it in this variable. 605 // that should be used when deoptimizing we store it in this variable.
613 // In future AddDeoptStub should be moved out of the instruction template. 606 // In future AddDeoptStub should be moved out of the instruction template.
614 Environment* pending_deoptimization_env_; 607 Environment* pending_deoptimization_env_;
615 608
616 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 609 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
617 }; 610 };
618 611
619 } // namespace dart 612 } // namespace dart
620 613
621 #endif // VM_FLOW_GRAPH_COMPILER_H_ 614 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698