Author: [EMAIL PROTECTED]
Date: Tue Nov 18 02:55:50 2008
New Revision: 785
Modified:
branches/bleeding_edge/src/heap.cc
Log:
Ensure that external symbols have hash codes.
Review URL: http://codereview.chromium.org/11443
Modified: branches/bleeding_edge/src/heap.cc
==============================================================================
--- branches/bleeding_edge/src/heap.cc (original)
+++ branches/bleeding_edge/src/heap.cc Tue Nov 18 02:55:50 2008
@@ -2142,6 +2142,8 @@
// Patch the resource pointer of the result.
ExternalTwoByteString* result = ExternalTwoByteString::cast(obj);
result->set_resource(resource);
+ // Force hash code to be computed.
+ result->Hash();
ASSERT(result->IsEqualTo(string));
return result;
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---