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/flow_graph_optimizer.h

Issue 346823003: VM: Optimized context allocation on all platforms. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const ICData& ic_data, 55 const ICData& ic_data,
56 TargetEntryInstr** entry, 56 TargetEntryInstr** entry,
57 Definition** last); 57 Definition** last);
58 58
59 // Remove environments from the instructions which do not deoptimize. 59 // Remove environments from the instructions which do not deoptimize.
60 void EliminateEnvironments(); 60 void EliminateEnvironments();
61 61
62 virtual void VisitStaticCall(StaticCallInstr* instr); 62 virtual void VisitStaticCall(StaticCallInstr* instr);
63 virtual void VisitInstanceCall(InstanceCallInstr* instr); 63 virtual void VisitInstanceCall(InstanceCallInstr* instr);
64 virtual void VisitStoreInstanceField(StoreInstanceFieldInstr* instr); 64 virtual void VisitStoreInstanceField(StoreInstanceFieldInstr* instr);
65 virtual void VisitAllocateContext(AllocateContextInstr* instr);
65 66
66 void InsertBefore(Instruction* next, 67 void InsertBefore(Instruction* next,
67 Instruction* instr, 68 Instruction* instr,
68 Environment* env, 69 Environment* env,
69 FlowGraph::UseKind use_kind) { 70 FlowGraph::UseKind use_kind) {
70 flow_graph_->InsertBefore(next, instr, env, use_kind); 71 flow_graph_->InsertBefore(next, instr, env, use_kind);
71 } 72 }
72 73
73 private: 74 private:
74 // Attempt to build ICData for call using propagated class-ids. 75 // Attempt to build ICData for call using propagated class-ids.
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // Optimize spill stores inside try-blocks by identifying values that always 502 // Optimize spill stores inside try-blocks by identifying values that always
502 // contain a single known constant at catch block entry. 503 // contain a single known constant at catch block entry.
503 class TryCatchAnalyzer : public AllStatic { 504 class TryCatchAnalyzer : public AllStatic {
504 public: 505 public:
505 static void Optimize(FlowGraph* flow_graph); 506 static void Optimize(FlowGraph* flow_graph);
506 }; 507 };
507 508
508 } // namespace dart 509 } // namespace dart
509 510
510 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 511 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698