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

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

Issue 1134573002: Give ComputeCapacityForSerialization a minimum capacity (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/objects-inl.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/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 3095 matching lines...) Expand 10 before | Expand all | Expand 10 after
3106 } 3106 }
3107 3107
3108 set_detached_contexts(empty_fixed_array()); 3108 set_detached_contexts(empty_fixed_array());
3109 set_retained_maps(ArrayList::cast(empty_fixed_array())); 3109 set_retained_maps(ArrayList::cast(empty_fixed_array()));
3110 3110
3111 set_weak_object_to_code_table( 3111 set_weak_object_to_code_table(
3112 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, 3112 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY,
3113 TENURED)); 3113 TENURED));
3114 3114
3115 Handle<SeededNumberDictionary> slow_element_dictionary = 3115 Handle<SeededNumberDictionary> slow_element_dictionary =
3116 SeededNumberDictionary::New(isolate(), 1, TENURED); 3116 SeededNumberDictionary::New(isolate(), 0, TENURED);
3117 slow_element_dictionary->set_requires_slow_elements(); 3117 slow_element_dictionary->set_requires_slow_elements();
3118 set_empty_slow_element_dictionary(*slow_element_dictionary); 3118 set_empty_slow_element_dictionary(*slow_element_dictionary);
3119 3119
3120 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); 3120 set_materialized_objects(*factory->NewFixedArray(0, TENURED));
3121 3121
3122 // Handling of script id generation is in Factory::NewScript. 3122 // Handling of script id generation is in Factory::NewScript.
3123 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); 3123 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId));
3124 3124
3125 Handle<PropertyCell> cell = factory->NewPropertyCell(); 3125 Handle<PropertyCell> cell = factory->NewPropertyCell();
3126 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); 3126 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
(...skipping 3369 matching lines...) Expand 10 before | Expand all | Expand 10 after
6496 } 6496 }
6497 delete list; 6497 delete list;
6498 } else { 6498 } else {
6499 prev = list; 6499 prev = list;
6500 } 6500 }
6501 list = next; 6501 list = next;
6502 } 6502 }
6503 } 6503 }
6504 } 6504 }
6505 } // namespace v8::internal 6505 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698