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

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

Issue 744853003: Integrate the Irregexp Regular Expression Engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix clang and win build Created 6 years 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_compiler.cc ('k') | runtime/vm/flow_graph_optimizer.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_OPTIMIZER_H_ 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_
6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ 6 #define VM_FLOW_GRAPH_OPTIMIZER_H_
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 TargetEntryInstr** entry, 58 TargetEntryInstr** entry,
59 Definition** last); 59 Definition** last);
60 60
61 // Remove environments from the instructions which do not deoptimize. 61 // Remove environments from the instructions which do not deoptimize.
62 void EliminateEnvironments(); 62 void EliminateEnvironments();
63 63
64 virtual void VisitStaticCall(StaticCallInstr* instr); 64 virtual void VisitStaticCall(StaticCallInstr* instr);
65 virtual void VisitInstanceCall(InstanceCallInstr* instr); 65 virtual void VisitInstanceCall(InstanceCallInstr* instr);
66 virtual void VisitStoreInstanceField(StoreInstanceFieldInstr* instr); 66 virtual void VisitStoreInstanceField(StoreInstanceFieldInstr* instr);
67 virtual void VisitAllocateContext(AllocateContextInstr* instr); 67 virtual void VisitAllocateContext(AllocateContextInstr* instr);
68 virtual void VisitLoadCodeUnits(LoadCodeUnitsInstr* instr);
68 69
69 void InsertBefore(Instruction* next, 70 void InsertBefore(Instruction* next,
70 Instruction* instr, 71 Instruction* instr,
71 Environment* env, 72 Environment* env,
72 FlowGraph::UseKind use_kind) { 73 FlowGraph::UseKind use_kind) {
73 flow_graph_->InsertBefore(next, instr, env, use_kind); 74 flow_graph_->InsertBefore(next, instr, env, use_kind);
74 } 75 }
75 76
76 private: 77 private:
77 // Attempt to build ICData for call using propagated class-ids. 78 // Attempt to build ICData for call using propagated class-ids.
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Optimize spill stores inside try-blocks by identifying values that always 504 // Optimize spill stores inside try-blocks by identifying values that always
504 // contain a single known constant at catch block entry. 505 // contain a single known constant at catch block entry.
505 class TryCatchAnalyzer : public AllStatic { 506 class TryCatchAnalyzer : public AllStatic {
506 public: 507 public:
507 static void Optimize(FlowGraph* flow_graph); 508 static void Optimize(FlowGraph* flow_graph);
508 }; 509 };
509 510
510 } // namespace dart 511 } // namespace dart
511 512
512 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 513 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698