Commit b02ff718 authored by ricow@chromium.org's avatar ricow@chromium.org

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