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

Unified Diff: src/heap/heap-inl.h

Issue 581223004: Support large objects in the serializer/deserializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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.h ('k') | src/heap/spaces.h » ('j') | src/serialize.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 8863777e8f557eb3c3023210f7ba311337169d46..6255ce72b99514b6f4db609f61048f234666a215 100644
--- a/src/heap/heap-inl.h
+++ b/src/heap/heap-inl.h
@@ -220,6 +220,14 @@ AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space,
}
+HeapObject* Heap::ForceAllocateLargeObject(int size_in_bytes,
+ Executability executable) {
+ AlwaysAllocateScope scope(isolate());
+ AllocationResult result = lo_space_->AllocateRaw(size_in_bytes, executable);
+ return HeapObject::cast(result.ToObjectChecked());
+}
+
+
void Heap::OnAllocationEvent(HeapObject* object, int size_in_bytes) {
HeapProfiler* profiler = isolate_->heap_profiler();
if (profiler->is_tracking_allocations()) {
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/spaces.h » ('j') | src/serialize.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698