Reviewers: Lasse Reichstein, Description: Fixed broken build.
Please review this at http://codereview.chromium.org/164395 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/api.cc Index: src/api.cc =================================================================== --- src/api.cc (revision 2664) +++ src/api.cc (working copy) @@ -33,6 +33,7 @@ #include "debug.h" #include "execution.h" #include "global-handles.h" +#include "objects-inl.h" #include "platform.h" #include "serialize.h" #include "snapshot.h" @@ -3041,7 +3042,10 @@ 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(); } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
