| Index: test/cctest/test-mark-compact.cc
|
| diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
|
| index 25b30ef4e4840b7b1e442a50536a41f245f265ab..005dab74d002c0b9f252a2a3756766331600ed5d 100644
|
| --- a/test/cctest/test-mark-compact.cc
|
| +++ b/test/cctest/test-mark-compact.cc
|
| @@ -39,6 +39,7 @@
|
|
|
| #include "v8.h"
|
|
|
| +#include "full-codegen.h"
|
| #include "global-handles.h"
|
| #include "snapshot.h"
|
| #include "cctest.h"
|
| @@ -493,18 +494,12 @@ TEST(BootUpMemoryUse) {
|
| CcTest::InitializeVM();
|
| intptr_t delta = MemoryInUse() - initial_memory;
|
| printf("delta: %" V8_PTR_PREFIX "d kB\n", delta / 1024);
|
| - if (sizeof(initial_memory) == 8) { // 64-bit.
|
| - if (v8::internal::Snapshot::IsEnabled()) {
|
| - CHECK_LE(delta, 4100 * 1024);
|
| - } else {
|
| - CHECK_LE(delta, 4600 * 1024);
|
| - }
|
| - } else { // 32-bit.
|
| - if (v8::internal::Snapshot::IsEnabled()) {
|
| - CHECK_LE(delta, 3100 * 1024);
|
| - } else {
|
| - CHECK_LE(delta, 3450 * 1024);
|
| - }
|
| + if (v8::internal::Snapshot::IsEnabled()) {
|
| + CHECK_LE(delta,
|
| + 3000 * 1024 * FullCodeGenerator::kBootCodeSizeMultiplier / 100);
|
| + } else {
|
| + CHECK_LE(delta,
|
| + 3300 * 1024 * FullCodeGenerator::kBootCodeSizeMultiplier / 100);
|
| }
|
| }
|
| }
|
|
|