Reviewers: Yang,

Message:
Committed patchset #1 manually as r16738 (presubmit successful).

Description:
HeapProfiler: compile fix for win x64.

BUG=none
[email protected]

Committed: https://code.google.com/p/v8/source/detail?r=16738

Please review this at https://codereview.chromium.org/24178003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+2, -2 lines):
  M src/heap-snapshot-generator.cc


Index: src/heap-snapshot-generator.cc
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc
index 279880f3afa4725e421d14b4940159a094336575..2d31ca49d1f88118982e487038f470f24bd1f89e 100644
--- a/src/heap-snapshot-generator.cc
+++ b/src/heap-snapshot-generator.cc
@@ -2698,8 +2698,8 @@ void HeapSnapshotJSONSerializer::SerializeStrings() {
   for (HashMap::Entry* entry = strings_.Start();
        entry != NULL;
        entry = strings_.Next(entry)) {
-    sorted_strings[reinterpret_cast<uintptr_t>(entry->value)] =
-        reinterpret_cast<const unsigned char*>(entry->key);
+ int index = static_cast<int>(reinterpret_cast<uintptr_t>(entry->value)); + sorted_strings[index] = reinterpret_cast<const unsigned char*>(entry->key);
   }
   writer_->AddString("\"<dummy>\"");
   for (int i = 1; i < sorted_strings.length(); ++i) {


--
--
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