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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 void IncrementErrorsThrown(); | 414 void IncrementErrorsThrown(); |
415 int GetErrorsThrown(); | 415 int GetErrorsThrown(); |
416 | 416 |
417 // Direct slot access. | 417 // Direct slot access. |
418 inline JSFunction* closure(); | 418 inline JSFunction* closure(); |
419 inline void set_closure(JSFunction* closure); | 419 inline void set_closure(JSFunction* closure); |
420 | 420 |
421 inline Context* previous(); | 421 inline Context* previous(); |
422 inline void set_previous(Context* context); | 422 inline void set_previous(Context* context); |
423 | 423 |
| 424 inline Object* next_context_link(); |
| 425 |
424 inline bool has_extension(); | 426 inline bool has_extension(); |
425 inline HeapObject* extension(); | 427 inline HeapObject* extension(); |
426 inline void set_extension(HeapObject* object); | 428 inline void set_extension(HeapObject* object); |
427 JSObject* extension_object(); | 429 JSObject* extension_object(); |
428 JSReceiver* extension_receiver(); | 430 JSReceiver* extension_receiver(); |
429 ScopeInfo* scope_info(); | 431 ScopeInfo* scope_info(); |
430 String* catch_name(); | 432 String* catch_name(); |
431 | 433 |
432 inline JSModule* module(); | 434 inline JSModule* module(); |
433 inline void set_module(JSModule* module); | 435 inline void set_module(JSModule* module); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 #endif | 572 #endif |
571 | 573 |
572 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 574 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
573 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 575 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
574 }; | 576 }; |
575 | 577 |
576 } // namespace internal | 578 } // namespace internal |
577 } // namespace v8 | 579 } // namespace v8 |
578 | 580 |
579 #endif // V8_CONTEXTS_H_ | 581 #endif // V8_CONTEXTS_H_ |
OLD | NEW |