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

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

Issue 464473002: Add "own" symbols support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes for 64-bit builds Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/lookup.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/v8.h" 5 #include "src/v8.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/base/once.h" 9 #include "src/base/once.h"
10 #include "src/base/utils/random-number-generator.h" 10 #include "src/base/utils/random-number-generator.h"
(...skipping 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 *factory->NewStruct(POLYMORPHIC_CODE_CACHE_TYPE))); 2827 *factory->NewStruct(POLYMORPHIC_CODE_CACHE_TYPE)));
2828 2828
2829 set_instanceof_cache_function(Smi::FromInt(0)); 2829 set_instanceof_cache_function(Smi::FromInt(0));
2830 set_instanceof_cache_map(Smi::FromInt(0)); 2830 set_instanceof_cache_map(Smi::FromInt(0));
2831 set_instanceof_cache_answer(Smi::FromInt(0)); 2831 set_instanceof_cache_answer(Smi::FromInt(0));
2832 2832
2833 CreateFixedStubs(); 2833 CreateFixedStubs();
2834 2834
2835 // Allocate the dictionary of intrinsic function names. 2835 // Allocate the dictionary of intrinsic function names.
2836 Handle<NameDictionary> intrinsic_names = 2836 Handle<NameDictionary> intrinsic_names =
2837 NameDictionary::New(isolate(), Runtime::kNumFunctions); 2837 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED);
2838 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); 2838 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names);
2839 set_intrinsic_function_names(*intrinsic_names); 2839 set_intrinsic_function_names(*intrinsic_names);
2840 2840
2841 set_number_string_cache( 2841 set_number_string_cache(
2842 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); 2842 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED));
2843 2843
2844 // Allocate cache for single character one byte strings. 2844 // Allocate cache for single character one byte strings.
2845 set_single_character_string_cache( 2845 set_single_character_string_cache(
2846 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED)); 2846 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED));
2847 2847
(...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after
6143 static_cast<int>(object_sizes_last_time_[index])); 6143 static_cast<int>(object_sizes_last_time_[index]));
6144 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6144 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6145 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6145 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6146 6146
6147 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6147 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6148 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6148 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6149 ClearObjectStats(); 6149 ClearObjectStats();
6150 } 6150 }
6151 } 6151 }
6152 } // namespace v8::internal 6152 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/lookup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698