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

Side by Side Diff: src/spaces.cc

Issue 9178013: Fix debug tests. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 } 1326 }
1327 anchor()->set_next_page(anchor()); 1327 anchor()->set_next_page(anchor());
1328 anchor()->set_prev_page(anchor()); 1328 anchor()->set_prev_page(anchor());
1329 1329
1330 committed_ = false; 1330 committed_ = false;
1331 return true; 1331 return true;
1332 } 1332 }
1333 1333
1334 1334
1335 bool SemiSpace::GrowTo(int new_capacity) { 1335 bool SemiSpace::GrowTo(int new_capacity) {
1336 if (!is_committed()) {
1337 bool ok = Commit();
1338 if (!ok) return false;
1339 }
1336 ASSERT((new_capacity & Page::kPageAlignmentMask) == 0); 1340 ASSERT((new_capacity & Page::kPageAlignmentMask) == 0);
1337 ASSERT(new_capacity <= maximum_capacity_); 1341 ASSERT(new_capacity <= maximum_capacity_);
1338 ASSERT(new_capacity > capacity_); 1342 ASSERT(new_capacity > capacity_);
1339 int pages_before = capacity_ / Page::kPageSize; 1343 int pages_before = capacity_ / Page::kPageSize;
1340 int pages_after = new_capacity / Page::kPageSize; 1344 int pages_after = new_capacity / Page::kPageSize;
1341 1345
1342 Address end = start_ + maximum_capacity_; 1346 Address end = start_ + maximum_capacity_;
1343 Address start = end - new_capacity; 1347 Address start = end - new_capacity;
1344 size_t delta = new_capacity - capacity_; 1348 size_t delta = new_capacity - capacity_;
1345 1349
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
2830 object->ShortPrint(); 2834 object->ShortPrint();
2831 PrintF("\n"); 2835 PrintF("\n");
2832 } 2836 }
2833 printf(" --------------------------------------\n"); 2837 printf(" --------------------------------------\n");
2834 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 2838 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
2835 } 2839 }
2836 2840
2837 #endif // DEBUG 2841 #endif // DEBUG
2838 2842
2839 } } // namespace v8::internal 2843 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698