Reviewers: Søren Gjesse,

Description:
Fix win64 build (int conversion)



Please review this at http://codereview.chromium.org/6083014/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/runtime.cc


Index: src/runtime.cc
===================================================================
--- src/runtime.cc      (revision 6214)
+++ src/runtime.cc      (working copy)
@@ -10417,7 +10417,7 @@
   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 @@

 // 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);
   }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to