| OLD | NEW |
| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 base = NULL; | 382 base = NULL; |
| 383 } | 383 } |
| 384 } else { | 384 } else { |
| 385 if (!reservation.Commit(base, commit_size, false)) { | 385 if (!reservation.Commit(base, commit_size, false)) { |
| 386 base = NULL; | 386 base = NULL; |
| 387 } | 387 } |
| 388 } | 388 } |
| 389 | 389 |
| 390 if (base == NULL) { | 390 if (base == NULL) { |
| 391 // Failed to commit the body. Release the mapping and any partially | 391 // Failed to commit the body. Release the mapping and any partially |
| 392 // commited regions inside it. | 392 // committed regions inside it. |
| 393 reservation.Release(); | 393 reservation.Release(); |
| 394 return NULL; | 394 return NULL; |
| 395 } | 395 } |
| 396 | 396 |
| 397 controller->TakeControl(&reservation); | 397 controller->TakeControl(&reservation); |
| 398 return base; | 398 return base; |
| 399 } | 399 } |
| 400 | 400 |
| 401 | 401 |
| 402 void Page::InitializeAsAnchor(PagedSpace* owner) { | 402 void Page::InitializeAsAnchor(PagedSpace* owner) { |
| (...skipping 2773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3176 object->ShortPrint(); | 3176 object->ShortPrint(); |
| 3177 PrintF("\n"); | 3177 PrintF("\n"); |
| 3178 } | 3178 } |
| 3179 printf(" --------------------------------------\n"); | 3179 printf(" --------------------------------------\n"); |
| 3180 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3180 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
| 3181 } | 3181 } |
| 3182 | 3182 |
| 3183 #endif // DEBUG | 3183 #endif // DEBUG |
| 3184 | 3184 |
| 3185 } } // namespace v8::internal | 3185 } } // namespace v8::internal |
| OLD | NEW |