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

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

Issue 1643533003: 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 2808 matching lines...) Expand 10 before | Expand all | Expand 10 after
2819 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); 2819 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate());
2820 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2820 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2821 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2821 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2822 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2822 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2823 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2823 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2824 2824
2825 set_dummy_vector(*dummy_vector); 2825 set_dummy_vector(*dummy_vector);
2826 } 2826 }
2827 2827
2828 { 2828 {
2829 Handle<FixedArray> empty_literals_array =
2830 factory->NewFixedArray(1, TENURED);
2831 empty_literals_array->set(0, *factory->empty_fixed_array(),
2832 SKIP_WRITE_BARRIER);
2833 set_empty_literals_array(*empty_literals_array);
2834 }
2835
2836 {
2837 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); 2829 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value());
2838 set_empty_weak_cell(*cell); 2830 set_empty_weak_cell(*cell);
2839 cell->clear(); 2831 cell->clear();
2840 2832
2841 Handle<FixedArray> cleared_optimized_code_map = 2833 Handle<FixedArray> cleared_optimized_code_map =
2842 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); 2834 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED);
2843 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, 2835 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex,
2844 *cell); 2836 *cell);
2845 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && 2837 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 &&
2846 SharedFunctionInfo::kSharedCodeIndex == 0); 2838 SharedFunctionInfo::kSharedCodeIndex == 0);
(...skipping 3379 matching lines...) Expand 10 before | Expand all | Expand 10 after
6226 } 6218 }
6227 6219
6228 6220
6229 // static 6221 // static
6230 int Heap::GetStaticVisitorIdForMap(Map* map) { 6222 int Heap::GetStaticVisitorIdForMap(Map* map) {
6231 return StaticVisitorBase::GetVisitorId(map); 6223 return StaticVisitorBase::GetVisitorId(map);
6232 } 6224 }
6233 6225
6234 } // namespace internal 6226 } // namespace internal
6235 } // namespace v8 6227 } // 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