#include "src/parsing/preparser.h"
#include <cmath>
#include "src/base/logging.h"
#include "src/common/globals.h"
#include "src/logging/runtime-call-stats-scope.h"
#include "src/numbers/conversions-inl.h"
#include "src/numbers/conversions.h"
#include "src/parsing/parser-base.h"
#include "src/parsing/preparse-data.h"
#include "src/strings/unicode.h"
#include "src/utils/allocation.h"
#include "src/utils/utils.h"
#include "src/zone/zone-list-inl.h"
namespace v8 {
namespace internal {
namespace {
PreParserIdentifier GetIdentifierHelper(Scanner* scanner,
const AstRawString* string,
AstValueFactory* avf) { … }
}
PreParserIdentifier PreParser::GetIdentifier() const { … }
PreParser::PreParseResult PreParser::PreParseProgram() { … }
void PreParserFormalParameters::ValidateDuplicate(PreParser* preparser) const { … }
void PreParserFormalParameters::ValidateStrictMode(PreParser* preparser) const { … }
PreParser::PreParseResult PreParser::PreParseFunction(
const AstRawString* function_name, FunctionKind kind,
FunctionSyntaxKind function_syntax_kind, DeclarationScope* function_scope,
int* use_counts, ProducedPreparseData** produced_preparse_data) { … }
PreParser::Expression PreParser::ParseFunctionLiteral(
Identifier function_name, Scanner::Location function_name_location,
FunctionNameValidity function_name_validity, FunctionKind kind,
int function_token_pos, FunctionSyntaxKind function_syntax_kind,
LanguageMode language_mode,
ZonePtrList<const AstRawString>* arguments_for_wrapped_function) { … }
void PreParser::ParseStatementListAndLogFunction(
PreParserFormalParameters* formals) { … }
PreParserBlock PreParser::BuildParameterInitializationBlock(
const PreParserFormalParameters& parameters) { … }
bool PreParser::IdentifierEquals(const PreParserIdentifier& identifier,
const AstRawString* other) { … }
}
}