Remove most uses of HSubgraph as an argument.

In a lot of cases where we were passing a subgraph (a pair of basic blocks),
we actually only needed a basic block.

Review URL: http://codereview.chromium.org/6570006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6913 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 65443b38
This diff is collapsed.
...@@ -208,23 +208,26 @@ class HSubgraph: public ZoneObject { ...@@ -208,23 +208,26 @@ class HSubgraph: public ZoneObject {
void PreProcessOsrEntry(IterationStatement* statement); void PreProcessOsrEntry(IterationStatement* statement);
void AppendJoin(HSubgraph* then_graph, HSubgraph* else_graph, AstNode* node); void AppendJoin(HBasicBlock* first, HBasicBlock* second, int join_id);
void AppendWhile(HSubgraph* condition, void AppendWhile(IterationStatement* statement,
HSubgraph* body, HBasicBlock* condition_entry,
IterationStatement* statement, HBasicBlock* exit_block,
HSubgraph* continue_subgraph, HBasicBlock* body_exit,
HSubgraph* exit, HBasicBlock* break_block,
HBasicBlock* loop_entry,
HBasicBlock* loop_exit);
void AppendDoWhile(IterationStatement* statement,
HBasicBlock* body_entry,
HBasicBlock* go_back,
HBasicBlock* exit_block,
HBasicBlock* break_block); HBasicBlock* break_block);
void AppendDoWhile(HSubgraph* body, void AppendEndless(IterationStatement* statement,
IterationStatement* statement, HBasicBlock* body_entry,
HSubgraph* go_back, HBasicBlock* body_exit,
HSubgraph* exit,
HBasicBlock* break_block); HBasicBlock* break_block);
void AppendEndless(HSubgraph* body, void Append(BreakableStatement* stmt,
IterationStatement* statement, HBasicBlock* entry_block,
HBasicBlock* break_block); HBasicBlock* exit_block,
void Append(HSubgraph* next,
BreakableStatement* stmt,
HBasicBlock* break_block); HBasicBlock* break_block);
void ResolveContinue(IterationStatement* statement, void ResolveContinue(IterationStatement* statement,
HBasicBlock* continue_block); HBasicBlock* continue_block);
...@@ -696,9 +699,9 @@ class HGraphBuilder: public AstVisitor { ...@@ -696,9 +699,9 @@ class HGraphBuilder: public AstVisitor {
void Bailout(const char* reason); void Bailout(const char* reason);
void AppendPeeledWhile(IterationStatement* stmt, void AppendPeeledWhile(IterationStatement* stmt,
HSubgraph* cond_graph, HBasicBlock* condition_entry,
HSubgraph* body_graph, HBasicBlock* exit_block,
HSubgraph* exit_graph, HBasicBlock* body_exit,
HBasicBlock* break_block); HBasicBlock* break_block);
void AddToSubgraph(HSubgraph* graph, ZoneList<Statement*>* stmts); void AddToSubgraph(HSubgraph* graph, ZoneList<Statement*>* stmts);
...@@ -741,8 +744,6 @@ class HGraphBuilder: public AstVisitor { ...@@ -741,8 +744,6 @@ class HGraphBuilder: public AstVisitor {
AST_NODE_LIST(DECLARE_VISIT) AST_NODE_LIST(DECLARE_VISIT)
#undef DECLARE_VISIT #undef DECLARE_VISIT
bool ShouldPeel(HSubgraph* cond, HSubgraph* body);
HBasicBlock* CreateBasicBlock(HEnvironment* env); HBasicBlock* CreateBasicBlock(HEnvironment* env);
HSubgraph* CreateEmptySubgraph(); HSubgraph* CreateEmptySubgraph();
HSubgraph* CreateGotoSubgraph(HEnvironment* env); HSubgraph* CreateGotoSubgraph(HEnvironment* env);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment