Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/parsing/parsing.h

Issue 2534393002: Split parsing of functions and top-level code into two separate methods (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_PARSING_PARSING_H_
6 #define V8_PARSING_PARSING_H_
7
8 namespace v8 {
9 namespace internal {
10
11 class ParseInfo;
12
13 namespace parsing {
14
15 // Parses the top-level source code represented by the parse info and sets its
16 // function literal. Returns false (and deallocates any allocated AST
17 // nodes) if parsing failed.
18 bool ParseProgram(ParseInfo* info);
19
20 // Like ParseProgram but for an individual function.
21 bool ParseFunction(ParseInfo* info);
22
23 } // namespace parsing
24 } // namespace internal
25 } // namespace v8
26
27 #endif // V8_PARSING_PARSING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698