Fixed broken build.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2665 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ba974ace
......@@ -3041,7 +3041,10 @@ bool v8::String::CanMakeExternal() {
if (IsDeadCheck("v8::String::CanMakeExternal()")) return false;
i::Handle<i::String> obj = Utils::OpenHandle(this);
int size = obj->Size(); // Byte size of the original string.
return (size >= i::ExternalString::kSize) && !obj->IsExternalString();
if (size < i::ExternalString::kSize)
return false;
i::StringShape shape(*obj);
return !shape.IsExternal();
}
......
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