| 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 3115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3126 factory->NewTypeFeedbackVector(&spec); | 3126 factory->NewTypeFeedbackVector(&spec); |
| 3127 dummy_vector->Set(FeedbackVectorICSlot(0), | 3127 dummy_vector->Set(FeedbackVectorICSlot(0), |
| 3128 *TypeFeedbackVector::MegamorphicSentinel(isolate()), | 3128 *TypeFeedbackVector::MegamorphicSentinel(isolate()), |
| 3129 SKIP_WRITE_BARRIER); | 3129 SKIP_WRITE_BARRIER); |
| 3130 set_keyed_load_dummy_vector(*dummy_vector); | 3130 set_keyed_load_dummy_vector(*dummy_vector); |
| 3131 | 3131 |
| 3132 set_detached_contexts(empty_fixed_array()); | 3132 set_detached_contexts(empty_fixed_array()); |
| 3133 set_retained_maps(ArrayList::cast(empty_fixed_array())); | 3133 set_retained_maps(ArrayList::cast(empty_fixed_array())); |
| 3134 | 3134 |
| 3135 set_weak_object_to_code_table( | 3135 set_weak_object_to_code_table( |
| 3136 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, | 3136 *WeakHashTable::New(isolate(), 16, USE_CUSTOM_MINIMUM_CAPACITY, TENURED)); |
| 3137 TENURED)); | |
| 3138 | 3137 |
| 3139 Handle<SeededNumberDictionary> slow_element_dictionary = | 3138 Handle<SeededNumberDictionary> slow_element_dictionary = |
| 3140 SeededNumberDictionary::New(isolate(), 0, TENURED); | 3139 SeededNumberDictionary::New(isolate(), 0, TENURED); |
| 3141 slow_element_dictionary->set_requires_slow_elements(); | 3140 slow_element_dictionary->set_requires_slow_elements(); |
| 3142 set_empty_slow_element_dictionary(*slow_element_dictionary); | 3141 set_empty_slow_element_dictionary(*slow_element_dictionary); |
| 3143 | 3142 |
| 3144 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 3143 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
| 3145 | 3144 |
| 3146 // Handling of script id generation is in Factory::NewScript. | 3145 // Handling of script id generation is in Factory::NewScript. |
| 3147 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 3146 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
| (...skipping 3355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6503 } | 6502 } |
| 6504 delete list; | 6503 delete list; |
| 6505 } else { | 6504 } else { |
| 6506 prev = list; | 6505 prev = list; |
| 6507 } | 6506 } |
| 6508 list = next; | 6507 list = next; |
| 6509 } | 6508 } |
| 6510 } | 6509 } |
| 6511 } | 6510 } |
| 6512 } // namespace v8::internal | 6511 } // namespace v8::internal |
| OLD | NEW |