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:
parent
426f13e084
commit
b02ff71824
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user