Commit 6e931081 authored by ager@chromium.org's avatar ager@chromium.org

Ensure that external symbols have hash codes.

Review URL: http://codereview.chromium.org/11443

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@785 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 27e4365a
......@@ -2142,6 +2142,8 @@ Object* Heap::AllocateExternalSymbol(Vector<const char> string, int chars) {
// 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment