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

Unified Diff: test/cctest/cctest.h

Issue 1293283003: [heap,cctest] Get rid of protected-for-sake-of-testing scope. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add heap-tester.h to cctest.gyp Created 5 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 | « src/heap/heap.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.h
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
index 0136db60fabfc7764df0c2411447c4f5d64cb7a6..6a25a89842ca88f7041bb7021036d2a5bb5357db 100644
--- a/test/cctest/cctest.h
+++ b/test/cctest/cctest.h
@@ -89,21 +89,6 @@ typedef v8::internal::EnumSet<CcTestExtensionIds> CcTestExtensionFlags;
#undef DEFINE_EXTENSION_FLAG
-// Use this to expose protected methods in i::Heap.
-class TestHeap : public i::Heap {
- public:
- using i::Heap::AllocateByteArray;
- using i::Heap::AllocateFixedArray;
- using i::Heap::AllocateHeapNumber;
- using i::Heap::AllocateFloat32x4;
- using i::Heap::AllocateJSObject;
- using i::Heap::AllocateJSObjectFromMap;
- using i::Heap::AllocateMap;
- using i::Heap::CopyCode;
- using i::Heap::kInitialNumberStringCacheSize;
-};
-
-
class CcTest {
public:
typedef void (TestFunction)();
@@ -137,10 +122,6 @@ class CcTest {
return i_isolate()->heap();
}
- static TestHeap* test_heap() {
- return reinterpret_cast<TestHeap*>(i_isolate()->heap());
- }
-
static v8::base::RandomNumberGenerator* random_number_generator() {
return InitIsolateOnce()->random_number_generator();
}
« no previous file with comments | « src/heap/heap.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698