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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 void IncrementErrorsThrown(); | 401 void IncrementErrorsThrown(); |
402 int GetErrorsThrown(); | 402 int GetErrorsThrown(); |
403 | 403 |
404 // Direct slot access. | 404 // Direct slot access. |
405 inline JSFunction* closure(); | 405 inline JSFunction* closure(); |
406 inline void set_closure(JSFunction* closure); | 406 inline void set_closure(JSFunction* closure); |
407 | 407 |
408 inline Context* previous(); | 408 inline Context* previous(); |
409 inline void set_previous(Context* context); | 409 inline void set_previous(Context* context); |
410 | 410 |
| 411 inline Object* next_context_link(); |
| 412 |
411 inline bool has_extension(); | 413 inline bool has_extension(); |
412 inline HeapObject* extension(); | 414 inline HeapObject* extension(); |
413 inline void set_extension(HeapObject* object); | 415 inline void set_extension(HeapObject* object); |
414 JSObject* extension_object(); | 416 JSObject* extension_object(); |
415 JSReceiver* extension_receiver(); | 417 JSReceiver* extension_receiver(); |
416 ScopeInfo* scope_info(); | 418 ScopeInfo* scope_info(); |
417 String* catch_name(); | 419 String* catch_name(); |
418 | 420 |
419 inline JSModule* module(); | 421 inline JSModule* module(); |
420 inline void set_module(JSModule* module); | 422 inline void set_module(JSModule* module); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 #endif | 559 #endif |
558 | 560 |
559 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 561 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
560 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 562 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
561 }; | 563 }; |
562 | 564 |
563 } // namespace internal | 565 } // namespace internal |
564 } // namespace v8 | 566 } // namespace v8 |
565 | 567 |
566 #endif // V8_CONTEXTS_H_ | 568 #endif // V8_CONTEXTS_H_ |
OLD | NEW |