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 | 10 |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 #ifdef DEBUG | 545 #ifdef DEBUG |
546 // Bootstrapping-aware type checks. | 546 // Bootstrapping-aware type checks. |
547 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid); | 547 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid); |
548 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 548 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
549 #endif | 549 #endif |
550 | 550 |
551 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 551 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
552 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 552 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
553 }; | 553 }; |
554 | 554 |
555 } } // namespace v8::internal | 555 } // namespace internal |
| 556 } // namespace v8 |
556 | 557 |
557 #endif // V8_CONTEXTS_H_ | 558 #endif // V8_CONTEXTS_H_ |
OLD | NEW |