Add back assertion SetResourceConstraints.

This reverts commit f7f04272208d565020b528145ce6cef0f89c7079.

BUG=312233
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/59133003

Patch from Ross Mcilroy <rmcilroy@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17493 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
svenpanne@chromium.org 2013-11-05 14:24:57 +00:00
parent 43eb7076a1
commit c9f55136ad

View File

@ -574,8 +574,7 @@ bool SetResourceConstraints(ResourceConstraints* constraints) {
int max_executable_size = constraints->max_executable_size(); int max_executable_size = constraints->max_executable_size();
if (young_space_size != 0 || old_gen_size != 0 || max_executable_size != 0) { if (young_space_size != 0 || old_gen_size != 0 || max_executable_size != 0) {
// After initialization it's too late to change Heap constraints. // After initialization it's too late to change Heap constraints.
// TODO(rmcilroy): fix this assert. ASSERT(!isolate->IsInitialized());
// ASSERT(!isolate->IsInitialized());
bool result = isolate->heap()->ConfigureHeap(young_space_size / 2, bool result = isolate->heap()->ConfigureHeap(young_space_size / 2,
old_gen_size, old_gen_size,
max_executable_size); max_executable_size);