Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 0e11e3d94319d23965bb42996baaa51fe76159a2..829017c98ed6caf4ff1c2499869f443eb437702a 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1104,6 +1104,10 @@ class PreParserStatement { |
return PreParserStatement(kUnknownStatement); |
} |
+ static PreParserStatement Jump() { |
+ return PreParserStatement(kJumpStatement); |
+ } |
+ |
static PreParserStatement FunctionDeclaration() { |
return PreParserStatement(kFunctionDeclaration); |
} |
@@ -1139,9 +1143,14 @@ class PreParserStatement { |
return code_ == kFunctionDeclaration; |
} |
+ bool IsJumpStatement() { |
+ return code_ == kJumpStatement; |
+ } |
+ |
private: |
enum Type { |
kUnknownStatement, |
+ kJumpStatement, |
kStringLiteralExpressionStatement, |
kUseStrictExpressionStatement, |
kUseStrongExpressionStatement, |