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

Unified Diff: src/heap/heap.h

Issue 2203783002: [heap] Record references in the new code objects in heap::CopyCode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('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 d17e07d5959a3bf1318bf22f64b65eeeafd254ac..13af2092ed7f94c4618ae8770ce36e2d942e2101 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -23,6 +23,9 @@
namespace v8 {
namespace internal {
+class Heap;
+AllocationResult TestCopyCode(Heap* heap, Code* code);
+
using v8::MemoryPressureLevel;
// Defines all the roots in Heap.
@@ -1863,6 +1866,8 @@ class Heap {
int parameter_count, FixedArray* constant_pool);
MUST_USE_RESULT AllocationResult CopyCode(Code* code);
+ // The test function ofCopyCode in cctest/test-heap.cc.
+ friend AllocationResult TestCopyCode(Heap* heap, Code* code);
Michael Lippautz 2016/08/02 19:07:57 No need to do that. Have a look at test/cctest/h
ahaas 2016/08/03 08:47:42 Done.
MUST_USE_RESULT AllocationResult
CopyBytecodeArray(BytecodeArray* bytecode_array);
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698