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

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

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 6 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 2790 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate()); 2801 Object* megamorphic = *TypeFeedbackVector::MegamorphicSentinel(isolate());
2802 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2802 dummy_vector->Set(load_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2803 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2803 dummy_vector->Set(keyed_load_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2804 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2804 dummy_vector->Set(store_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2805 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER); 2805 dummy_vector->Set(keyed_store_ic_slot, megamorphic, SKIP_WRITE_BARRIER);
2806 2806
2807 set_dummy_vector(*dummy_vector); 2807 set_dummy_vector(*dummy_vector);
2808 } 2808 }
2809 2809
2810 { 2810 {
2811 Handle<FixedArray> empty_literals_array =
2812 factory->NewFixedArray(1, TENURED);
2813 empty_literals_array->set(0, *factory->empty_fixed_array());
2814 set_empty_literals_array(*empty_literals_array);
2815 }
2816
2817 {
2811 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value()); 2818 Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value());
2812 set_empty_weak_cell(*cell); 2819 set_empty_weak_cell(*cell);
2813 cell->clear(); 2820 cell->clear();
2814 2821
2815 Handle<FixedArray> cleared_optimized_code_map = 2822 Handle<FixedArray> cleared_optimized_code_map =
2816 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED); 2823 factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED);
2817 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex, 2824 cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex,
2818 *cell); 2825 *cell);
2819 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 && 2826 STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 &&
2820 SharedFunctionInfo::kSharedCodeIndex == 0); 2827 SharedFunctionInfo::kSharedCodeIndex == 0);
(...skipping 3555 matching lines...) Expand 10 before | Expand all | Expand 10 after
6376 } 6383 }
6377 6384
6378 6385
6379 // static 6386 // static
6380 int Heap::GetStaticVisitorIdForMap(Map* map) { 6387 int Heap::GetStaticVisitorIdForMap(Map* map) {
6381 return StaticVisitorBase::GetVisitorId(map); 6388 return StaticVisitorBase::GetVisitorId(map);
6382 } 6389 }
6383 6390
6384 } // namespace internal 6391 } // namespace internal
6385 } // namespace v8 6392 } // 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