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

Side by Side Diff: src/parsing/parse-info.h

Issue 2417703003: parser fuzzer and parser shell should also work in component builds (Closed)
Patch Set: updates Created 4 years, 2 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
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_PARSE_INFO_H_ 5 #ifndef V8_PARSING_PARSE_INFO_H_
6 #define V8_PARSING_PARSE_INFO_H_ 6 #define V8_PARSING_PARSE_INFO_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 13
14 class Extension; 14 class Extension;
15 15
16 namespace internal { 16 namespace internal {
17 17
18 class AstRawString; 18 class AstRawString;
19 class AstValueFactory; 19 class AstValueFactory;
20 class DeclarationScope; 20 class DeclarationScope;
21 class FunctionLiteral; 21 class FunctionLiteral;
22 class ScriptData; 22 class ScriptData;
23 class SharedFunctionInfo; 23 class SharedFunctionInfo;
24 class UnicodeCache; 24 class UnicodeCache;
25 class Utf16CharacterStream; 25 class Utf16CharacterStream;
26 class Zone; 26 class Zone;
27 27
28 // A container for the inputs, configuration options, and outputs of parsing. 28 // A container for the inputs, configuration options, and outputs of parsing.
29 class ParseInfo { 29 class V8_EXPORT_PRIVATE ParseInfo {
30 public: 30 public:
31 explicit ParseInfo(Zone* zone); 31 explicit ParseInfo(Zone* zone);
32 ParseInfo(Zone* zone, Handle<JSFunction> function); 32 ParseInfo(Zone* zone, Handle<JSFunction> function);
33 ParseInfo(Zone* zone, Handle<Script> script); 33 ParseInfo(Zone* zone, Handle<Script> script);
34 // TODO(all) Only used via Debug::FindSharedFunctionInfoInScript, remove? 34 // TODO(all) Only used via Debug::FindSharedFunctionInfoInScript, remove?
35 ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared); 35 ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared);
36 36
37 ~ParseInfo(); 37 ~ParseInfo();
38 38
39 Zone* zone() const { return zone_; } 39 Zone* zone() const { return zone_; }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 void SetFlag(Flag f) { flags_ |= f; } 247 void SetFlag(Flag f) { flags_ |= f; }
248 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } 248 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; }
249 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } 249 bool GetFlag(Flag f) const { return (flags_ & f) != 0; }
250 }; 250 };
251 251
252 } // namespace internal 252 } // namespace internal
253 } // namespace v8 253 } // namespace v8
254 254
255 #endif // V8_PARSING_PARSE_INFO_H_ 255 #endif // V8_PARSING_PARSE_INFO_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/parsing/parser.h » ('j') | src/parsing/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698