summaryrefslogtreecommitdiff
path: root/chromium/v8/src/parsing/preparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/parsing/preparser.h')
-rw-r--r--chromium/v8/src/parsing/preparser.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/chromium/v8/src/parsing/preparser.h b/chromium/v8/src/parsing/preparser.h
index 1949e7f8a7e..746802a9aac 100644
--- a/chromium/v8/src/parsing/preparser.h
+++ b/chromium/v8/src/parsing/preparser.h
@@ -537,7 +537,7 @@ class PreParserFactory {
PreParserExpression NewTheHoleLiteral() {
return PreParserExpression::Default();
}
- PreParserExpression NewRegExpLiteral(const PreParserIdentifier& js_pattern,
+ PreParserExpression NewRegExpLiteral(const AstRawString* js_pattern,
int js_flags, int pos) {
return PreParserExpression::Default();
}
@@ -1455,12 +1455,9 @@ class PreParser : public ParserBase<PreParser> {
return PreParserExpression::Default();
}
- // Reporting errors.
- void ReportMessageAt(Scanner::Location source_location,
- MessageTemplate message, const char* arg = nullptr) {
- pending_error_handler()->ReportMessageAt(
- source_location.beg_pos, source_location.end_pos, message, arg);
- scanner()->set_parser_error();
+ V8_INLINE const AstRawString* PreParserIdentifierToAstRawString(
+ const PreParserIdentifier& x) {
+ return x.string_;
}
V8_INLINE void ReportUnidentifiableError() {
@@ -1468,19 +1465,6 @@ class PreParser : public ParserBase<PreParser> {
scanner()->set_parser_error();
}
- V8_INLINE void ReportMessageAt(Scanner::Location source_location,
- MessageTemplate message,
- const PreParserIdentifier& arg) {
- ReportMessageAt(source_location, message, arg.string_);
- }
-
- void ReportMessageAt(Scanner::Location source_location,
- MessageTemplate message, const AstRawString* arg) {
- pending_error_handler()->ReportMessageAt(
- source_location.beg_pos, source_location.end_pos, message, arg);
- scanner()->set_parser_error();
- }
-
const AstRawString* GetRawNameFromIdentifier(const PreParserIdentifier& arg) {
return arg.string_;
}