Revision: 17948
Author:   [email protected]
Date:     Thu Nov 21 08:59:15 2013 UTC
Log:      Fix Windows build for real

[email protected]

Review URL: https://codereview.chromium.org/80513002
http://code.google.com/p/v8/source/detail?r=17948

Modified:
 /branches/bleeding_edge/test/cctest/test-api.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-api.cc Wed Nov 20 15:16:18 2013 UTC +++ /branches/bleeding_edge/test/cctest/test-api.cc Thu Nov 21 08:59:15 2013 UTC
@@ -13746,9 +13746,6 @@
   isolate->Exit();
   isolate->Dispose();
 }
-
-
-static int64_t cast(intptr_t x) { return static_cast<int64_t>(x); }


 THREADED_TEST(ExternalAllocatedMemory) {
@@ -13756,12 +13753,12 @@
   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));
 }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to