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

Side by Side Diff: src/heap/heap.cc

Issue 1582773003: Make JSProxies always be in slow mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 11 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 | « src/heap/heap.h ('k') | src/objects.h » ('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 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 #include "src/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/ast/scopeinfo.h" 9 #include "src/ast/scopeinfo.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after
2745 } 2745 }
2746 2746
2747 CreateFixedStubs(); 2747 CreateFixedStubs();
2748 2748
2749 // Allocate the dictionary of intrinsic function names. 2749 // Allocate the dictionary of intrinsic function names.
2750 Handle<NameDictionary> intrinsic_names = 2750 Handle<NameDictionary> intrinsic_names =
2751 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED); 2751 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED);
2752 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); 2752 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names);
2753 set_intrinsic_function_names(*intrinsic_names); 2753 set_intrinsic_function_names(*intrinsic_names);
2754 2754
2755 Handle<NameDictionary> empty_properties_dictionary =
2756 NameDictionary::New(isolate(), 0, TENURED);
2757 empty_properties_dictionary->SetRequiresCopyOnCapacityChange();
2758 set_empty_properties_dictionary(*empty_properties_dictionary);
2759
2755 set_number_string_cache( 2760 set_number_string_cache(
2756 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); 2761 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED));
2757 2762
2758 // Allocate cache for single character one byte strings. 2763 // Allocate cache for single character one byte strings.
2759 set_single_character_string_cache( 2764 set_single_character_string_cache(
2760 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED)); 2765 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED));
2761 2766
2762 // Allocate cache for string split and regexp-multiple. 2767 // Allocate cache for string split and regexp-multiple.
2763 set_string_split_cache(*factory->NewFixedArray( 2768 set_string_split_cache(*factory->NewFixedArray(
2764 RegExpResultsCache::kRegExpResultsCacheSize, TENURED)); 2769 RegExpResultsCache::kRegExpResultsCacheSize, TENURED));
(...skipping 3472 matching lines...) Expand 10 before | Expand all | Expand 10 after
6237 } 6242 }
6238 6243
6239 6244
6240 // static 6245 // static
6241 int Heap::GetStaticVisitorIdForMap(Map* map) { 6246 int Heap::GetStaticVisitorIdForMap(Map* map) {
6242 return StaticVisitorBase::GetVisitorId(map); 6247 return StaticVisitorBase::GetVisitorId(map);
6243 } 6248 }
6244 6249
6245 } // namespace internal 6250 } // namespace internal
6246 } // namespace v8 6251 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698