| 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 "heap.h" | 8 #include "heap.h" |
| 9 #include "objects.h" | 9 #include "objects.h" |
| 10 | 10 |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 private: | 538 private: |
| 539 // Unchecked access to the slots. | 539 // Unchecked access to the slots. |
| 540 Object* unchecked_previous() { return get(PREVIOUS_INDEX); } | 540 Object* unchecked_previous() { return get(PREVIOUS_INDEX); } |
| 541 | 541 |
| 542 #ifdef DEBUG | 542 #ifdef DEBUG |
| 543 // Bootstrapping-aware type checks. | 543 // Bootstrapping-aware type checks. |
| 544 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid); | 544 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid); |
| 545 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 545 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
| 546 #endif | 546 #endif |
| 547 | 547 |
| 548 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); | 548 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 549 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 549 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 550 }; | 550 }; |
| 551 | 551 |
| 552 } } // namespace v8::internal | 552 } } // namespace v8::internal |
| 553 | 553 |
| 554 #endif // V8_CONTEXTS_H_ | 554 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |