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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 | 2693 |
2694 // Microtask queue uses the empty fixed array as a sentinel for "empty". | 2694 // Microtask queue uses the empty fixed array as a sentinel for "empty". |
2695 // Number of queued microtasks stored in Isolate::pending_microtask_count(). | 2695 // Number of queued microtasks stored in Isolate::pending_microtask_count(). |
2696 set_microtask_queue(empty_fixed_array()); | 2696 set_microtask_queue(empty_fixed_array()); |
2697 | 2697 |
2698 { | 2698 { |
2699 FeedbackVectorSlotKind kinds[] = {FeedbackVectorSlotKind::LOAD_IC, | 2699 FeedbackVectorSlotKind kinds[] = {FeedbackVectorSlotKind::LOAD_IC, |
2700 FeedbackVectorSlotKind::KEYED_LOAD_IC, | 2700 FeedbackVectorSlotKind::KEYED_LOAD_IC, |
2701 FeedbackVectorSlotKind::STORE_IC, | 2701 FeedbackVectorSlotKind::STORE_IC, |
2702 FeedbackVectorSlotKind::KEYED_STORE_IC}; | 2702 FeedbackVectorSlotKind::KEYED_STORE_IC}; |
2703 FeedbackVectorSpec spec(0, 4, kinds); | 2703 StaticFeedbackVectorSpec spec(0, 4, kinds); |
2704 Handle<TypeFeedbackVector> dummy_vector = | 2704 Handle<TypeFeedbackVector> dummy_vector = |
2705 factory->NewTypeFeedbackVector(&spec); | 2705 factory->NewTypeFeedbackVector(&spec); |
2706 for (int i = 0; i < 4; i++) { | 2706 for (int i = 0; i < 4; i++) { |
2707 dummy_vector->Set(FeedbackVectorICSlot(0), | 2707 dummy_vector->Set(FeedbackVectorICSlot(0), |
2708 *TypeFeedbackVector::MegamorphicSentinel(isolate()), | 2708 *TypeFeedbackVector::MegamorphicSentinel(isolate()), |
2709 SKIP_WRITE_BARRIER); | 2709 SKIP_WRITE_BARRIER); |
2710 } | 2710 } |
2711 set_dummy_vector(*dummy_vector); | 2711 set_dummy_vector(*dummy_vector); |
2712 } | 2712 } |
2713 | 2713 |
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6136 } | 6136 } |
6137 | 6137 |
6138 | 6138 |
6139 // static | 6139 // static |
6140 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6140 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6141 return StaticVisitorBase::GetVisitorId(map); | 6141 return StaticVisitorBase::GetVisitorId(map); |
6142 } | 6142 } |
6143 | 6143 |
6144 } // namespace internal | 6144 } // namespace internal |
6145 } // namespace v8 | 6145 } // namespace v8 |
OLD | NEW |