OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |