Fix win64 build (int conversion)

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6219 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ricow@chromium.org 2011-01-07 10:51:44 +00:00
parent 426f13e084
commit b02ff71824

View File

@ -10417,7 +10417,7 @@ static MaybeObject* Runtime_SetFlags(Arguments args) {
CONVERT_CHECKED(String, arg, args[0]); CONVERT_CHECKED(String, arg, args[0]);
SmartPointer<char> flags = SmartPointer<char> flags =
arg->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL); arg->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL);
FlagList::SetFlagsFromString(*flags, strlen(*flags)); FlagList::SetFlagsFromString(*flags, StrLength(*flags));
return Heap::undefined_value(); return Heap::undefined_value();
} }
@ -10432,7 +10432,7 @@ static MaybeObject* Runtime_CollectGarbage(Arguments args) {
// Gets the current heap usage. // Gets the current heap usage.
static MaybeObject* Runtime_GetHeapUsage(Arguments args) { static MaybeObject* Runtime_GetHeapUsage(Arguments args) {
int usage = Heap::SizeOfObjects(); int usage = static_cast<int>(Heap::SizeOfObjects());
if (!Smi::IsValid(usage)) { if (!Smi::IsValid(usage)) {
return *Factory::NewNumberFromInt(usage); return *Factory::NewNumberFromInt(usage);
} }