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