Reviewers: danno,
Description:
A version of test-api.cc that compiles both on Mac and on Linux.
Please review this at http://codereview.chromium.org/10050013/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M test/cctest/test-api.cc
Index: test/cctest/test-api.cc
===================================================================
--- test/cctest/test-api.cc (revision 11273)
+++ test/cctest/test-api.cc (working copy)
@@ -10870,9 +10870,10 @@
v8::Persistent<Context> env(Context::New());
CHECK(!env.IsEmpty());
const intptr_t kSize = 1024*1024;
- CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(kSize), kSize);
- CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize),
- static_cast<intptr_t>(0));
+
CHECK_EQ(static_cast<int64_t>(v8::V8::AdjustAmountOfExternalAllocatedMemory(kSize)),
+ static_cast<int64_t>(kSize));
+
CHECK_EQ(static_cast<int64_t>(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize)),
+ static_cast<int64_t>(0));
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev