Simplify the way that we compile slow-case switch statements. Compile

all the reachable tests first, and then all the reachable bodies.
Review URL: http://codereview.chromium.org/28296

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1397 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a4d8eadc
......@@ -447,10 +447,12 @@ class CaseClause: public ZoneObject {
CHECK(!is_default());
return label_;
}
JumpTarget* body_target() { return &body_target_; }
ZoneList<Statement*>* statements() const { return statements_; }
private:
Expression* label_;
JumpTarget body_target_;
ZoneList<Statement*>* statements_;
};
......
This diff is collapsed.
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