Sha256: 36106715d90b55aaf00ca9cbe6994fc1158d02747ec5e1ed0cad9a80ad74fd8d

Contents?: true

Size: 1.38 KB

Versions: 5

Compression:

Stored size: 1.38 KB

Contents

// 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/globals.h"

namespace v8 {
namespace internal {

class ParseInfo;

namespace parsing {

// 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. Internalizes AST nodes on the heap if
// |internalize|.
V8_EXPORT_PRIVATE bool ParseProgram(ParseInfo* info, Isolate* isolate,
                                    bool internalize = true);

// Like ParseProgram but for an individual function. Internalizes AST nodes on
// the heap if |internalize|.
V8_EXPORT_PRIVATE bool ParseFunction(ParseInfo* info, Isolate* isolate,
                                     bool internalize = true);

// If you don't know whether info->is_toplevel() is true or not, use this method
// to dispatch to either of the above functions. Prefer to use the above methods
// whenever possible. Internalizes AST nodes on the heap if |internalize|.
V8_EXPORT_PRIVATE bool ParseAny(ParseInfo* info, Isolate* isolate,
                                bool internalize = true);

}  // namespace parsing
}  // namespace internal
}  // namespace v8

#endif  // V8_PARSING_PARSING_H_

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/parsing/parsing.h
libv8-6.0.286.54.0 vendor/v8/src/parsing/parsing.h
libv8-6.0.286.54.0beta2 vendor/v8/src/parsing/parsing.h
libv8-6.0.286.54.0beta1 vendor/v8/src/parsing/parsing.h
libv8-6.0.286.44.0beta1 vendor/v8/src/parsing/parsing.h