Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: src/heap/heap.cc

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/objects-visiting-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); 2814 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate());
2815 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2815 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2816 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2816 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2817 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2817 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2818 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2818 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2819 2819
2820 set_dummy_vector(*dummy_vector); 2820 set_dummy_vector(*dummy_vector);
2821 } 2821 }
2822 2822
2823 { 2823 {
2824 Handle<FixedArray> empty_literals_array =
2825 factory->NewFixedArray(1, TENURED);
2826 empty_literals_array->set(0, *factory->empty_fixed_array(),
2827 SKIP_WRITE_BARRIER);
2828 set_empty_literals_array(*empty_literals_array);
2829 }
2830
2831 {
2832 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); 2824 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value());
2833 set_empty_weak_cell(*cell); 2825 set_empty_weak_cell(*cell);
2834 cell->clear(); 2826 cell->clear();
2835 2827
2836 Handle<FixedArray> cleared_optimized_code_map = 2828 Handle<FixedArray> cleared_optimized_code_map =
2837 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); 2829 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED);
2838 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, 2830 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex,
2839 *cell); 2831 *cell);
2840 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && 2832 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 &&
2841 SharedFunctionInfo::kSharedCodeIndex == 0); 2833 SharedFunctionInfo::kSharedCodeIndex == 0);
(...skipping 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after
6222 } 6214 }
6223 6215
6224 6216
6225 // static 6217 // static
6226 int Heap::GetStaticVisitorIdForMap(Map* map) { 6218 int Heap::GetStaticVisitorIdForMap(Map* map) {
6227 return StaticVisitorBase::GetVisitorId(map); 6219 return StaticVisitorBase::GetVisitorId(map);
6228 } 6220 }
6229 6221
6230 } // namespace internal 6222 } // namespace internal
6231 } // namespace v8 6223 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698