Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: src/bootstrapper.cc

Issue 1409123003: [runtime] Avoid @@isConcatSpreadable lookup for fast path Array.prototype.concat (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merging with master Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 ReplaceAccessors(map, factory()->arguments_string(), rw_attribs, accessors); 851 ReplaceAccessors(map, factory()->arguments_string(), rw_attribs, accessors);
852 ReplaceAccessors(map, factory()->caller_string(), rw_attribs, accessors); 852 ReplaceAccessors(map, factory()->caller_string(), rw_attribs, accessors);
853 } 853 }
854 854
855 855
856 static void AddToWeakNativeContextList(Context* context) { 856 static void AddToWeakNativeContextList(Context* context) {
857 DCHECK(context->IsNativeContext()); 857 DCHECK(context->IsNativeContext());
858 Heap* heap = context->GetIsolate()->heap(); 858 Heap* heap = context->GetIsolate()->heap();
859 #ifdef DEBUG 859 #ifdef DEBUG
860 { // NOLINT 860 { // NOLINT
861 DCHECK(context->get(Context::NEXT_CONTEXT_LINK)->IsUndefined()); 861 DCHECK(context->next_context_link()->IsUndefined());
862 // Check that context is not in the list yet. 862 // Check that context is not in the list yet.
863 for (Object* current = heap->native_contexts_list(); 863 for (Object* current = heap->native_contexts_list();
864 !current->IsUndefined(); 864 !current->IsUndefined();
865 current = Context::cast(current)->get(Context::NEXT_CONTEXT_LINK)) { 865 current = Context::cast(current)->next_context_link()) {
866 DCHECK(current != context); 866 DCHECK(current != context);
867 } 867 }
868 } 868 }
869 #endif 869 #endif
870 context->set(Context::NEXT_CONTEXT_LINK, heap->native_contexts_list(), 870 context->set(Context::NEXT_CONTEXT_LINK, heap->native_contexts_list(),
871 UPDATE_WEAK_WRITE_BARRIER); 871 UPDATE_WEAK_WRITE_BARRIER);
872 heap->set_native_contexts_list(context); 872 heap->set_native_contexts_list(context);
873 } 873 }
874 874
875 875
(...skipping 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after
3715 } 3715 }
3716 3716
3717 3717
3718 // Called when the top-level V8 mutex is destroyed. 3718 // Called when the top-level V8 mutex is destroyed.
3719 void Bootstrapper::FreeThreadResources() { 3719 void Bootstrapper::FreeThreadResources() {
3720 DCHECK(!IsActive()); 3720 DCHECK(!IsActive());
3721 } 3721 }
3722 3722
3723 } // namespace internal 3723 } // namespace internal
3724 } // namespace v8 3724 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698