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

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

Issue 189513003: Add alias disambiguation for VM fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 391
392 void DetachMaterializations(); 392 void DetachMaterializations();
393 393
394 private: 394 private:
395 void InsertMaterializations(AllocateObjectInstr* alloc); 395 void InsertMaterializations(AllocateObjectInstr* alloc);
396 396
397 void CreateMaterializationAt( 397 void CreateMaterializationAt(
398 Instruction* exit, 398 Instruction* exit,
399 AllocateObjectInstr* alloc, 399 AllocateObjectInstr* alloc,
400 const Class& cls, 400 const Class& cls,
401 const ZoneGrowableArray<const Field*>& fields); 401 const ZoneGrowableArray<const Object*>& fields);
402 402
403 FlowGraph* flow_graph_; 403 FlowGraph* flow_graph_;
404 404
405 GrowableArray<MaterializeObjectInstr*> materializations_; 405 GrowableArray<MaterializeObjectInstr*> materializations_;
406 }; 406 };
407 407
408 408
409 // Optimize spill stores inside try-blocks by identifying values that always 409 // Optimize spill stores inside try-blocks by identifying values that always
410 // contain a single known constant at catch block entry. 410 // contain a single known constant at catch block entry.
411 class TryCatchAnalyzer : public AllStatic { 411 class TryCatchAnalyzer : public AllStatic {
412 public: 412 public:
413 static void Optimize(FlowGraph* flow_graph); 413 static void Optimize(FlowGraph* flow_graph);
414 }; 414 };
415 415
416 } // namespace dart 416 } // namespace dart
417 417
418 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 418 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698