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/heap/heap.h" | 5 #include "src/heap/heap.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/ast/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2754 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); | 2754 *factory->NewFixedArray(ExtraNatives::GetBuiltinsCount())); |
2755 | 2755 |
2756 set_experimental_extra_natives_source_cache( | 2756 set_experimental_extra_natives_source_cache( |
2757 *factory->NewFixedArray(ExperimentalExtraNatives::GetBuiltinsCount())); | 2757 *factory->NewFixedArray(ExperimentalExtraNatives::GetBuiltinsCount())); |
2758 | 2758 |
2759 set_undefined_cell(*factory->NewCell(factory->undefined_value())); | 2759 set_undefined_cell(*factory->NewCell(factory->undefined_value())); |
2760 | 2760 |
2761 // The symbol registry is initialized lazily. | 2761 // The symbol registry is initialized lazily. |
2762 set_symbol_registry(Smi::FromInt(0)); | 2762 set_symbol_registry(Smi::FromInt(0)); |
2763 | 2763 |
2764 // Allocate object to hold object observation state. | |
2765 set_observation_state(*factory->NewJSObjectFromMap( | |
2766 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize))); | |
2767 | |
2768 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2764 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
2769 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2765 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
2770 set_microtask_queue(empty_fixed_array()); | 2766 set_microtask_queue(empty_fixed_array()); |
2771 | 2767 |
2772 { | 2768 { |
2773 StaticFeedbackVectorSpec spec; | 2769 StaticFeedbackVectorSpec spec; |
2774 FeedbackVectorSlot load_ic_slot = spec.AddLoadICSlot(); | 2770 FeedbackVectorSlot load_ic_slot = spec.AddLoadICSlot(); |
2775 FeedbackVectorSlot keyed_load_ic_slot = spec.AddKeyedLoadICSlot(); | 2771 FeedbackVectorSlot keyed_load_ic_slot = spec.AddKeyedLoadICSlot(); |
2776 FeedbackVectorSlot store_ic_slot = spec.AddStoreICSlot(); | 2772 FeedbackVectorSlot store_ic_slot = spec.AddStoreICSlot(); |
2777 FeedbackVectorSlot keyed_store_ic_slot = spec.AddKeyedStoreICSlot(); | 2773 FeedbackVectorSlot keyed_store_ic_slot = spec.AddKeyedStoreICSlot(); |
(...skipping 3647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6425 } | 6421 } |
6426 | 6422 |
6427 | 6423 |
6428 // static | 6424 // static |
6429 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6425 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6430 return StaticVisitorBase::GetVisitorId(map); | 6426 return StaticVisitorBase::GetVisitorId(map); |
6431 } | 6427 } |
6432 | 6428 |
6433 } // namespace internal | 6429 } // namespace internal |
6434 } // namespace v8 | 6430 } // namespace v8 |
OLD | NEW |