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

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: fixing tests Created 4 years, 8 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') | src/builtins.cc » ('J')
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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 ReplaceAccessors(map, factory()->arguments_string(), rw_attribs, accessors); 846 ReplaceAccessors(map, factory()->arguments_string(), rw_attribs, accessors);
847 ReplaceAccessors(map, factory()->caller_string(), rw_attribs, accessors); 847 ReplaceAccessors(map, factory()->caller_string(), rw_attribs, accessors);
848 } 848 }
849 849
850 850
851 static void AddToWeakNativeContextList(Context* context) { 851 static void AddToWeakNativeContextList(Context* context) {
852 DCHECK(context->IsNativeContext()); 852 DCHECK(context->IsNativeContext());
853 Heap* heap = context->GetIsolate()->heap(); 853 Heap* heap = context->GetIsolate()->heap();
854 #ifdef DEBUG 854 #ifdef DEBUG
855 { // NOLINT 855 { // NOLINT
856 DCHECK(context->get(Context::NEXT_CONTEXT_LINK)->IsUndefined()); 856 DCHECK(context->next_context_link()->IsUndefined());
857 // Check that context is not in the list yet. 857 // Check that context is not in the list yet.
858 for (Object* current = heap->native_contexts_list(); 858 for (Object* current = heap->native_contexts_list();
859 !current->IsUndefined(); 859 !current->IsUndefined();
860 current = Context::cast(current)->get(Context::NEXT_CONTEXT_LINK)) { 860 current = Context::cast(current)->next_context_link()) {
861 DCHECK(current != context); 861 DCHECK(current != context);
862 } 862 }
863 } 863 }
864 #endif 864 #endif
865 context->set(Context::NEXT_CONTEXT_LINK, heap->native_contexts_list(), 865 context->set(Context::NEXT_CONTEXT_LINK, heap->native_contexts_list(),
866 UPDATE_WEAK_WRITE_BARRIER); 866 UPDATE_WEAK_WRITE_BARRIER);
867 heap->set_native_contexts_list(context); 867 heap->set_native_contexts_list(context);
868 } 868 }
869 869
870 870
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after
3614 } 3614 }
3615 3615
3616 3616
3617 // Called when the top-level V8 mutex is destroyed. 3617 // Called when the top-level V8 mutex is destroyed.
3618 void Bootstrapper::FreeThreadResources() { 3618 void Bootstrapper::FreeThreadResources() {
3619 DCHECK(!IsActive()); 3619 DCHECK(!IsActive());
3620 } 3620 }
3621 3621
3622 } // namespace internal 3622 } // namespace internal
3623 } // namespace v8 3623 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698