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

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

Issue 10388161: Initial work on computing SSA. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | 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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 } 1356 }
1357 1357
1358 virtual Instruction* StraightLineSuccessor() const { 1358 virtual Instruction* StraightLineSuccessor() const {
1359 return successor_; 1359 return successor_;
1360 } 1360 }
1361 virtual void SetSuccessor(Instruction* instr) { 1361 virtual void SetSuccessor(Instruction* instr) {
1362 ASSERT(successor_ == NULL); 1362 ASSERT(successor_ == NULL);
1363 successor_ = instr; 1363 successor_ = instr;
1364 } 1364 }
1365 1365
1366 void InsertPhi(intptr_t variable_index) { }
Kevin Millikin (Google) 2012/05/16 15:33:08 This needs an implementation that adds a Phi with
1367
1366 private: 1368 private:
1367 ZoneGrowableArray<BlockEntryInstr*> predecessors_; 1369 ZoneGrowableArray<BlockEntryInstr*> predecessors_;
1368 Instruction* successor_; 1370 Instruction* successor_;
1369 1371
1370 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr); 1372 DISALLOW_COPY_AND_ASSIGN(JoinEntryInstr);
1371 }; 1373 };
1372 1374
1373 1375
1374 class TargetEntryInstr : public BlockEntryInstr { 1376 class TargetEntryInstr : public BlockEntryInstr {
1375 public: 1377 public:
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 const GrowableArray<BlockEntryInstr*>& block_order_; 1673 const GrowableArray<BlockEntryInstr*>& block_order_;
1672 1674
1673 private: 1675 private:
1674 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 1676 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
1675 }; 1677 };
1676 1678
1677 1679
1678 } // namespace dart 1680 } // namespace dart
1679 1681
1680 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 1682 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698