OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 ReplaceAccessors(map, factory()->arguments_string(), rw_attribs, accessors); | 800 ReplaceAccessors(map, factory()->arguments_string(), rw_attribs, accessors); |
801 ReplaceAccessors(map, factory()->caller_string(), rw_attribs, accessors); | 801 ReplaceAccessors(map, factory()->caller_string(), rw_attribs, accessors); |
802 } | 802 } |
803 | 803 |
804 | 804 |
805 static void AddToWeakNativeContextList(Context* context) { | 805 static void AddToWeakNativeContextList(Context* context) { |
806 DCHECK(context->IsNativeContext()); | 806 DCHECK(context->IsNativeContext()); |
807 Heap* heap = context->GetIsolate()->heap(); | 807 Heap* heap = context->GetIsolate()->heap(); |
808 #ifdef DEBUG | 808 #ifdef DEBUG |
809 { // NOLINT | 809 { // NOLINT |
810 DCHECK(context->get(Context::NEXT_CONTEXT_LINK)->IsUndefined()); | 810 DCHECK(context->next_context_link()->IsUndefined()); |
811 // Check that context is not in the list yet. | 811 // Check that context is not in the list yet. |
812 for (Object* current = heap->native_contexts_list(); | 812 for (Object* current = heap->native_contexts_list(); |
813 !current->IsUndefined(); | 813 !current->IsUndefined(); |
814 current = Context::cast(current)->get(Context::NEXT_CONTEXT_LINK)) { | 814 current = Context::cast(current)->next_context_link()) { |
815 DCHECK(current != context); | 815 DCHECK(current != context); |
816 } | 816 } |
817 } | 817 } |
818 #endif | 818 #endif |
819 context->set(Context::NEXT_CONTEXT_LINK, heap->native_contexts_list(), | 819 context->set(Context::NEXT_CONTEXT_LINK, heap->native_contexts_list(), |
820 UPDATE_WEAK_WRITE_BARRIER); | 820 UPDATE_WEAK_WRITE_BARRIER); |
821 heap->set_native_contexts_list(context); | 821 heap->set_native_contexts_list(context); |
822 } | 822 } |
823 | 823 |
824 | 824 |
(...skipping 2805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3630 } | 3630 } |
3631 | 3631 |
3632 | 3632 |
3633 // Called when the top-level V8 mutex is destroyed. | 3633 // Called when the top-level V8 mutex is destroyed. |
3634 void Bootstrapper::FreeThreadResources() { | 3634 void Bootstrapper::FreeThreadResources() { |
3635 DCHECK(!IsActive()); | 3635 DCHECK(!IsActive()); |
3636 } | 3636 } |
3637 | 3637 |
3638 } // namespace internal | 3638 } // namespace internal |
3639 } // namespace v8 | 3639 } // namespace v8 |
OLD | NEW |