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

Unified Diff: src/heap/heap.h

Issue 1217943004: Vector ICs: Introduce an InstanceType for the type feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix for failing test. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index a57a46d85edd6c351bc66be96d192271b6be3578..02174e0cee7c18fecc94933d0b6aad00aa0b5ef2 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -53,11 +53,13 @@ namespace internal {
V(Map, scope_info_map, ScopeInfoMap) \
V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
+ V(Map, feedback_vector_map, FeedbackVectorMap) \
V(Map, weak_cell_map, WeakCellMap) \
V(Map, one_byte_string_map, OneByteStringMap) \
V(Map, one_byte_internalized_string_map, OneByteInternalizedStringMap) \
V(Map, function_context_map, FunctionContextMap) \
V(FixedArray, empty_fixed_array, EmptyFixedArray) \
+ V(Object, empty_feedback_vector, EmptyFeedbackVector) \
V(ByteArray, empty_byte_array, EmptyByteArray) \
V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
/* The roots above this line should be boring from a GC point of view. */ \
@@ -564,6 +566,7 @@ enum ArrayStorageAllocationMode {
};
+class FeedbackVectorSpec;
class Heap {
public:
// Configure heap size in MB before setup. Return false if the heap has been
@@ -2008,6 +2011,11 @@ class Heap {
MUST_USE_RESULT inline AllocationResult CopyFixedDoubleArray(
FixedDoubleArray* src);
+ MUST_USE_RESULT inline AllocationResult CopyTypeFeedbackVector(
+ TypeFeedbackVector* src);
+ MUST_USE_RESULT AllocationResult
+ CopyTypeFeedbackVectorWithMap(TypeFeedbackVector* src, Map* map);
+
// Computes a single character string where the character has code.
// A cache is used for one-byte (Latin1) codes.
MUST_USE_RESULT AllocationResult
@@ -2016,6 +2024,9 @@ class Heap {
// Allocate a symbol in old space.
MUST_USE_RESULT AllocationResult AllocateSymbol();
+ template <typename Spec>
+ MUST_USE_RESULT AllocationResult AllocateTypeFeedbackVector(const Spec* spec);
+
// Allocates an external array of the specified length and type.
MUST_USE_RESULT AllocationResult
AllocateExternalArray(int length, ExternalArrayType array_type,
@@ -2047,6 +2058,9 @@ class Heap {
// Allocate empty fixed array.
MUST_USE_RESULT AllocationResult AllocateEmptyFixedArray();
+ // Allocate empty feedback vector.
+ MUST_USE_RESULT AllocationResult AllocateEmptyFeedbackVector();
+
// Allocate empty external array of given type.
MUST_USE_RESULT AllocationResult
AllocateEmptyExternalArray(ExternalArrayType array_type);
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698