// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_PARSING_PARSING_H_ #define V8_PARSING_PARSING_H_ #include "src/common/globals.h" namespace v8 { namespace internal { class ParseInfo; class SharedFunctionInfo; namespace parsing { enum class ReportStatisticsMode { kYes, kNo }; // Parses the top-level source code represented by the parse info and sets its // function literal. Returns false (and deallocates any allocated AST nodes) if // parsing failed. V8_EXPORT_PRIVATE bool ParseProgram(ParseInfo* info, Handle