Revision: 11370
Author: [email protected]
Date: Wed Apr 18 04:58:13 2012
Log: Make functions with switch statements inlinable.
Review URL: https://chromiumcodereview.appspot.com/10083038
http://code.google.com/p/v8/source/detail?r=11370
Modified:
/branches/bleeding_edge/src/ast.cc
=======================================
--- /branches/bleeding_edge/src/ast.cc Mon Apr 16 07:43:27 2012
+++ /branches/bleeding_edge/src/ast.cc Wed Apr 18 04:58:13 2012
@@ -1024,6 +1024,7 @@
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(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