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

Unified Diff: test/cctest/test-spaces.cc

Issue 3301008: [Isolates] Add heap pointer to all maps and use map->heap() more. (Closed)
Patch Set: even more Created 10 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
« src/mark-compact.cc ('K') | « src/spaces.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-spaces.cc
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc
index e011c1c37a699ac39dc2a3b5cd35330695c17cc3..d8f03675647b76d6fef0df474de78b3c6af06dd0 100644
--- a/test/cctest/test-spaces.cc
+++ b/test/cctest/test-spaces.cc
@@ -96,7 +96,9 @@ TEST(MemoryAllocator) {
CHECK(isolate->heap()->ConfigureHeapDefault());
CHECK(isolate->memory_allocator()->Setup(isolate->heap()->MaxReserved()));
- OldSpace faked_space(isolate->heap()->MaxReserved(), OLD_POINTER_SPACE,
+ OldSpace faked_space(isolate->heap(),
+ isolate->heap()->MaxReserved(),
+ OLD_POINTER_SPACE,
NOT_EXECUTABLE);
int total_pages = 0;
int requested = 2;
@@ -156,7 +158,7 @@ TEST(NewSpace) {
CHECK(HEAP->ConfigureHeapDefault());
CHECK(Isolate::Current()->memory_allocator()->Setup(HEAP->MaxReserved()));
- NewSpace new_space;
+ NewSpace new_space(HEAP);
void* chunk =
Isolate::Current()->memory_allocator()->ReserveInitialChunk(
@@ -183,7 +185,8 @@ TEST(OldSpace) {
CHECK(HEAP->ConfigureHeapDefault());
CHECK(Isolate::Current()->memory_allocator()->Setup(HEAP->MaxReserved()));
- OldSpace* s = new OldSpace(HEAP->MaxOldGenerationSize(),
+ OldSpace* s = new OldSpace(HEAP,
+ HEAP->MaxOldGenerationSize(),
OLD_POINTER_SPACE,
NOT_EXECUTABLE);
CHECK(s != NULL);
« src/mark-compact.cc ('K') | « src/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698