Reviewers: Michael Starzinger,
Message:
Committed patchset #1 manually as r19731 (presubmit successful).
Description:
Fix compiler warning on Win64
BUG=None
LOG=N
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=19731
Please review this at https://codereview.chromium.org/191153002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+7, -7 lines):
M test/cctest/test-heap-profiler.cc
Index: test/cctest/test-heap-profiler.cc
diff --git a/test/cctest/test-heap-profiler.cc
b/test/cctest/test-heap-profiler.cc
index
ebd231df33b4149b9c1708d1fb122da2435c29ae..f1ccc571dabcfef9766da81c7f6a367cef469838
100644
--- a/test/cctest/test-heap-profiler.cc
+++ b/test/cctest/test-heap-profiler.cc
@@ -2524,19 +2524,19 @@ TEST(AddressToTraceMap) {
CHECK_EQ(1, map.GetTraceNodeId(ToAddress(0x100)));
CHECK_EQ(1, map.GetTraceNodeId(ToAddress(0x150)));
CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x100 + 0x100)));
- CHECK_EQ(1, map.size());
+ CHECK_EQ(1, static_cast<int>(map.size()));
// [0x100, 0x200) -> 1, [0x200, 0x300) -> 2
map.AddRange(ToAddress(0x200), 0x100, 2U);
CHECK_EQ(2, map.GetTraceNodeId(ToAddress(0x2a0)));
- CHECK_EQ(2, map.size());
+ CHECK_EQ(2, static_cast<int>(map.size()));
// [0x100, 0x180) -> 1, [0x180, 0x280) -> 3, [0x280, 0x300) -> 2
map.AddRange(ToAddress(0x180), 0x100, 3U);
CHECK_EQ(1, map.GetTraceNodeId(ToAddress(0x17F)));
CHECK_EQ(2, map.GetTraceNodeId(ToAddress(0x280)));
CHECK_EQ(3, map.GetTraceNodeId(ToAddress(0x180)));
- CHECK_EQ(3, map.size());
+ CHECK_EQ(3, static_cast<int>(map.size()));
// [0x100, 0x180) -> 1, [0x180, 0x280) -> 3, [0x280, 0x300) -> 2,
// [0x400, 0x500) -> 4
@@ -2547,22 +2547,22 @@ TEST(AddressToTraceMap) {
CHECK_EQ(4, map.GetTraceNodeId(ToAddress(0x450)));
CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x500)));
CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x350)));
- CHECK_EQ(4, map.size());
+ CHECK_EQ(4, static_cast<int>(map.size()));
// [0x100, 0x180) -> 1, [0x180, 0x200) -> 3, [0x200, 0x600) -> 5
map.AddRange(ToAddress(0x200), 0x400, 5U);
CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x200)));
CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x400)));
- CHECK_EQ(3, map.size());
+ CHECK_EQ(3, static_cast<int>(map.size()));
// [0x100, 0x180) -> 1, [0x180, 0x200) -> 7, [0x200, 0x600) ->5
map.AddRange(ToAddress(0x180), 0x80, 6U);
map.AddRange(ToAddress(0x180), 0x80, 7U);
CHECK_EQ(7, map.GetTraceNodeId(ToAddress(0x180)));
CHECK_EQ(5, map.GetTraceNodeId(ToAddress(0x200)));
- CHECK_EQ(3, map.size());
+ CHECK_EQ(3, static_cast<int>(map.size()));
map.Clear();
- CHECK_EQ(0, map.size());
+ CHECK_EQ(0, static_cast<int>(map.size()));
CHECK_EQ(0, map.GetTraceNodeId(ToAddress(0x400)));
}
--
--
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.