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

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

Issue 2687973003: Revert of [Compiler] Enable handles created during parsing and scope analysis to be deferred. (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « src/parsing/parser.cc ('k') | src/parsing/parsing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSING_H_ 5 #ifndef V8_PARSING_PARSING_H_
6 #define V8_PARSING_PARSING_H_ 6 #define V8_PARSING_PARSING_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 class ParseInfo; 13 class ParseInfo;
14 14
15 namespace parsing { 15 namespace parsing {
16 16
17 // Parses the top-level source code represented by the parse info and sets its 17 // Parses the top-level source code represented by the parse info and sets its
18 // function literal. Returns false (and deallocates any allocated AST 18 // function literal. Returns false (and deallocates any allocated AST
19 // nodes) if parsing failed. Internalizes AST nodes on the heap if 19 // nodes) if parsing failed.
20 // |internalize|. 20 V8_EXPORT_PRIVATE bool ParseProgram(ParseInfo* info);
21 V8_EXPORT_PRIVATE bool ParseProgram(ParseInfo* info, bool internalize = true);
22 21
23 // Like ParseProgram but for an individual function. Internalizes AST nodes on 22 // Like ParseProgram but for an individual function.
24 // the heap if |internalize|. 23 V8_EXPORT_PRIVATE bool ParseFunction(ParseInfo* info);
25 V8_EXPORT_PRIVATE bool ParseFunction(ParseInfo* info, bool internalize = true);
26 24
27 // If you don't know whether info->is_toplevel() is true or not, use this method 25 // If you don't know whether info->is_toplevel() is true or not, use this method
28 // to dispatch to either of the above functions. Prefer to use the above methods 26 // to dispatch to either of the above functions. Prefer to use the above methods
29 // whenever possible. Internalizes AST nodes on the heap if |internalize|. 27 // whenever possible.
30 V8_EXPORT_PRIVATE bool ParseAny(ParseInfo* info, bool internalize = true); 28 V8_EXPORT_PRIVATE bool ParseAny(ParseInfo* info);
31 29
32 } // namespace parsing 30 } // namespace parsing
33 } // namespace internal 31 } // namespace internal
34 } // namespace v8 32 } // namespace v8
35 33
36 #endif // V8_PARSING_PARSING_H_ 34 #endif // V8_PARSING_PARSING_H_
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | src/parsing/parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698