OLD | NEW |
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 #include "src/objects/scope-info.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 | 14 |
14 class Extension; | 15 class Extension; |
15 | 16 |
16 namespace internal { | 17 namespace internal { |
17 | 18 |
18 class AstRawString; | 19 class AstRawString; |
19 class AstValueFactory; | 20 class AstValueFactory; |
20 class DeclarationScope; | 21 class DeclarationScope; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 260 |
260 void SetFlag(Flag f) { flags_ |= f; } | 261 void SetFlag(Flag f) { flags_ |= f; } |
261 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } | 262 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } |
262 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } | 263 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } |
263 }; | 264 }; |
264 | 265 |
265 } // namespace internal | 266 } // namespace internal |
266 } // namespace v8 | 267 } // namespace v8 |
267 | 268 |
268 #endif // V8_PARSING_PARSE_INFO_H_ | 269 #endif // V8_PARSING_PARSE_INFO_H_ |
OLD | NEW |