OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_CONTEXTS_H_ | 5 #ifndef V8_CONTEXTS_H_ |
6 #define V8_CONTEXTS_H_ | 6 #define V8_CONTEXTS_H_ |
7 | 7 |
8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 #include "src/objects/regexp-match-info.h" | |
marja
2017/01/20 12:03:07
This is slightly weird.. but.. contexts.h needs to
Michael Starzinger
2017/01/20 12:18:48
question: Is it really contexts.h that needs to kn
marja
2017/01/20 12:27:03
Ah yes, moved it to contexts-inl.h. The macro is f
| |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 | 14 |
14 | 15 |
15 enum ContextLookupFlags { | 16 enum ContextLookupFlags { |
16 FOLLOW_CONTEXT_CHAIN = 1 << 0, | 17 FOLLOW_CONTEXT_CHAIN = 1 << 0, |
17 FOLLOW_PROTOTYPE_CHAIN = 1 << 1, | 18 FOLLOW_PROTOTYPE_CHAIN = 1 << 1, |
18 STOP_AT_DECLARATION_SCOPE = 1 << 2, | 19 STOP_AT_DECLARATION_SCOPE = 1 << 2, |
19 SKIP_WITH_CONTEXT = 1 << 3, | 20 SKIP_WITH_CONTEXT = 1 << 3, |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
690 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 691 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
691 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 692 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
692 }; | 693 }; |
693 | 694 |
694 typedef Context::Field ContextField; | 695 typedef Context::Field ContextField; |
695 | 696 |
696 } // namespace internal | 697 } // namespace internal |
697 } // namespace v8 | 698 } // namespace v8 |
698 | 699 |
699 #endif // V8_CONTEXTS_H_ | 700 #endif // V8_CONTEXTS_H_ |
OLD | NEW |