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); |