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

Unified Diff: src/heap/heap-inl.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/heap/heap.cc ('k') | src/heap/objects-visiting.h » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap-inl.h
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
index fdb1d7345b4d79c0e738f39ab879667f4e604048..962b0e5611bde02b9d47c749b44892698e06e0c4 100644
--- a/src/heap/heap-inl.h
+++ b/src/heap/heap-inl.h
@@ -16,6 +16,7 @@
#include "src/list-inl.h"
#include "src/msan.h"
#include "src/objects.h"
+#include "src/type-feedback-vector.h"
namespace v8 {
namespace internal {
@@ -149,6 +150,12 @@ AllocationResult Heap::CopyFixedDoubleArray(FixedDoubleArray* src) {
}
+AllocationResult Heap::CopyTypeFeedbackVector(TypeFeedbackVector* src) {
+ if (src->length() == 0) return src;
+ return CopyTypeFeedbackVectorWithMap(src, src->map());
+}
+
+
AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space,
AllocationSpace retry_space,
AllocationAlignment alignment) {
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/objects-visiting.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698