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 3097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3108 set_symbol_registry(Smi::FromInt(0)); | 3108 set_symbol_registry(Smi::FromInt(0)); |
3109 | 3109 |
3110 // Allocate object to hold object observation state. | 3110 // Allocate object to hold object observation state. |
3111 set_observation_state(*factory->NewJSObjectFromMap( | 3111 set_observation_state(*factory->NewJSObjectFromMap( |
3112 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); | 3112 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); |
3113 | 3113 |
3114 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 3114 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
3115 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 3115 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
3116 set_microtask_queue(empty_fixed_array()); | 3116 set_microtask_queue(empty_fixed_array()); |
3117 | 3117 |
3118 if (FLAG_vector_ics) { | 3118 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
3119 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); | 3119 Handle<TypeFeedbackVector> dummy_vector = |
3120 Handle<TypeFeedbackVector> dummy_vector = | 3120 factory->NewTypeFeedbackVector(&spec); |
3121 factory->NewTypeFeedbackVector(&spec); | 3121 dummy_vector->Set(FeedbackVectorICSlot(0), |
3122 dummy_vector->Set(FeedbackVectorICSlot(0), | 3122 *TypeFeedbackVector::MegamorphicSentinel(isolate()), |
3123 *TypeFeedbackVector::MegamorphicSentinel(isolate()), | 3123 SKIP_WRITE_BARRIER); |
3124 SKIP_WRITE_BARRIER); | 3124 set_keyed_load_dummy_vector(*dummy_vector); |
3125 set_keyed_load_dummy_vector(*dummy_vector); | |
3126 } else { | |
3127 set_keyed_load_dummy_vector(empty_fixed_array()); | |
3128 } | |
3129 | 3125 |
3130 set_detached_contexts(empty_fixed_array()); | 3126 set_detached_contexts(empty_fixed_array()); |
3131 set_retained_maps(ArrayList::cast(empty_fixed_array())); | 3127 set_retained_maps(ArrayList::cast(empty_fixed_array())); |
3132 | 3128 |
3133 set_weak_object_to_code_table( | 3129 set_weak_object_to_code_table( |
3134 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, | 3130 *WeakHashTable::New(isolate(), 16, USE_DEFAULT_MINIMUM_CAPACITY, |
3135 TENURED)); | 3131 TENURED)); |
3136 | 3132 |
3137 Handle<SeededNumberDictionary> slow_element_dictionary = | 3133 Handle<SeededNumberDictionary> slow_element_dictionary = |
3138 SeededNumberDictionary::New(isolate(), 0, TENURED); | 3134 SeededNumberDictionary::New(isolate(), 0, TENURED); |
(...skipping 3371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6510 } | 6506 } |
6511 delete list; | 6507 delete list; |
6512 } else { | 6508 } else { |
6513 prev = list; | 6509 prev = list; |
6514 } | 6510 } |
6515 list = next; | 6511 list = next; |
6516 } | 6512 } |
6517 } | 6513 } |
6518 } | 6514 } |
6519 } // namespace v8::internal | 6515 } // namespace v8::internal |
OLD | NEW |