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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "include/v8.h" | 10 #include "include/v8.h" |
11 #include "src/globals.h" | 11 #include "src/globals.h" |
12 #include "src/handles.h" | 12 #include "src/handles.h" |
13 #include "src/objects/scope-info.h" | |
14 | 13 |
15 namespace v8 { | 14 namespace v8 { |
16 | 15 |
17 class Extension; | 16 class Extension; |
18 | 17 |
19 namespace internal { | 18 namespace internal { |
20 | 19 |
21 class AccountingAllocator; | 20 class AccountingAllocator; |
22 class AstRawString; | 21 class AstRawString; |
23 class AstValueFactory; | 22 class AstValueFactory; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 265 |
267 void SetFlag(Flag f) { flags_ |= f; } | 266 void SetFlag(Flag f) { flags_ |= f; } |
268 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } | 267 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } |
269 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } | 268 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } |
270 }; | 269 }; |
271 | 270 |
272 } // namespace internal | 271 } // namespace internal |
273 } // namespace v8 | 272 } // namespace v8 |
274 | 273 |
275 #endif // V8_PARSING_PARSE_INFO_H_ | 274 #endif // V8_PARSING_PARSE_INFO_H_ |
OLD | NEW |