From 18af012b7465105174e0f575bb9039d6701e98a0 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Wed, 18 Apr 2012 11:58:13 +0000 Subject: [PATCH] Make functions with switch statements inlinable. Review URL: https://chromiumcodereview.appspot.com/10083038 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11370 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ast.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast.cc b/src/ast.cc index 22645a8..6ee48d5 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. -- 2.7.4