| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 1cd961813f0f64e346c5b810e41394fab35d8bcc..2df0a89649279052ba2d808586a79cd1b6f25df5 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -13748,20 +13748,17 @@ UNINITIALIZED_TEST(SetJitCodeEventHandler) {
|
| }
|
|
|
|
|
| -static int64_t cast(intptr_t x) { return static_cast<int64_t>(x); }
|
| -
|
| -
|
| THREADED_TEST(ExternalAllocatedMemory) {
|
| v8::Isolate* isolate = CcTest::isolate();
|
| v8::HandleScope outer(isolate);
|
| v8::Local<Context> env(Context::New(isolate));
|
| CHECK(!env.IsEmpty());
|
| - const intptr_t kSize = 1024*1024;
|
| - int64_t baseline = cast(isolate->AdjustAmountOfExternalAllocatedMemory(0));
|
| - CHECK_EQ(baseline + cast(kSize),
|
| - cast(isolate->AdjustAmountOfExternalAllocatedMemory(kSize)));
|
| + const int64_t kSize = 1024*1024;
|
| + int64_t baseline = isolate->AdjustAmountOfExternalAllocatedMemory(0);
|
| + CHECK_EQ(baseline + kSize,
|
| + isolate->AdjustAmountOfExternalAllocatedMemory(kSize));
|
| CHECK_EQ(baseline,
|
| - cast(isolate->AdjustAmountOfExternalAllocatedMemory(-kSize)));
|
| + isolate->AdjustAmountOfExternalAllocatedMemory(-kSize));
|
| }
|
|
|
|
|
|
|