Reviewers: fschneider,

Description:
Make functions with switch statements inlinable.


Please review this at http://codereview.chromium.org/10083038/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/ast.cc


Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 22645a8642743d64b812ce0b6ffdb0fd749769d0..6ee48d5b0e88391f7abdd0204c584dfee136b319 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -1024,6 +1024,7 @@ REGULAR_NODE(IfStatement)
 REGULAR_NODE(ContinueStatement)
 REGULAR_NODE(BreakStatement)
 REGULAR_NODE(ReturnStatement)
+REGULAR_NODE(SwitchStatement)
 REGULAR_NODE(Conditional)
 REGULAR_NODE(Literal)
 REGULAR_NODE(ObjectLiteral)
@@ -1056,7 +1057,6 @@ DONT_OPTIMIZE_NODE(TryFinallyStatement)
 DONT_OPTIMIZE_NODE(DebuggerStatement)
 DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral)

-DONT_INLINE_NODE(SwitchStatement)
 DONT_INLINE_NODE(FunctionLiteral)
DONT_INLINE_NODE(RegExpLiteral) // TODO(1322): Allow materialized literals.
 DONT_INLINE_NODE(ArrayLiteral)  // TODO(1322): Allow materialized literals.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to