Revision: 19837
Author: [email protected]
Date: Wed Mar 12 10:33:40 2014 UTC
Log: Win64 fix for r19833.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/197083002
Patch from Daniel Vogelheim <[email protected]>.
http://code.google.com/p/v8/source/detail?r=19837
Modified:
/branches/bleeding_edge/test/cctest/test-api.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-api.cc Wed Mar 12 09:11:25
2014 UTC
+++ /branches/bleeding_edge/test/cctest/test-api.cc Wed Mar 12 10:33:40
2014 UTC
@@ -3515,25 +3515,25 @@
v8::internal::GlobalHandles* global_handles =
reinterpret_cast<v8::internal::Isolate*>(isolate)->global_handles();
int initial_handle_count = global_handles->global_handles_count();
- CHECK_EQ(0, map.Size());
+ CHECK_EQ(0, static_cast<int>(map.Size()));
{
HandleScope scope(isolate);
Local<v8::Object> obj = map.Get(7);
CHECK(obj.IsEmpty());
Local<v8::Object> expected = v8::Object::New(isolate);
map.Set(7, expected);
- CHECK_EQ(1, map.Size());
+ CHECK_EQ(1, static_cast<int>(map.Size()));
obj = map.Get(7);
CHECK_EQ(expected, obj);
v8::UniquePersistent<v8::Object> removed = map.Remove(7);
- CHECK_EQ(0, map.Size());
+ CHECK_EQ(0, static_cast<int>(map.Size()));
CHECK(expected == removed);
removed = map.Remove(7);
CHECK(removed.IsEmpty());
map.Set(8, expected);
- CHECK_EQ(1, map.Size());
+ CHECK_EQ(1, static_cast<int>(map.Size()));
map.Set(8, expected);
- CHECK_EQ(1, map.Size());
+ CHECK_EQ(1, static_cast<int>(map.Size()));
}
CHECK_EQ(initial_handle_count + 1,
global_handles->global_handles_count());
if (is_weak) {
@@ -3542,7 +3542,7 @@
} else {
map.Clear();
}
- CHECK_EQ(0, map.Size());
+ CHECK_EQ(0, static_cast<int>(map.Size()));
CHECK_EQ(initial_handle_count, global_handles->global_handles_count());
}
--
--
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/d/optout.