Revision: 17946
Author:   [email protected]
Date:     Thu Nov 21 08:38:51 2013 UTC
Log:      Fix Windows build

[email protected]

Review URL: https://codereview.chromium.org/79963003
http://code.google.com/p/v8/source/detail?r=17946

Modified:
 /branches/bleeding_edge/src/extensions/statistics-extension.cc
 /branches/bleeding_edge/src/heap.h

=======================================
--- /branches/bleeding_edge/src/extensions/statistics-extension.cc Wed Sep 4 10:34:42 2013 UTC +++ /branches/bleeding_edge/src/extensions/statistics-extension.cc Thu Nov 21 08:38:51 2013 UTC
@@ -56,6 +56,14 @@
   object->Set(v8::String::New(name),
               v8::Number::New(static_cast<double>(value)));
 }
+
+
+static void AddNumber64(v8::Local<v8::Object> object,
+                        int64_t value,
+                        const char* name) {
+  object->Set(v8::String::New(name),
+              v8::Number::New(static_cast<double>(value)));
+}


 void StatisticsExtension::GetCounters(
@@ -145,8 +153,8 @@
             "lo_space_available_bytes");
   AddNumber(result, heap->lo_space()->CommittedMemory(),
             "lo_space_commited_bytes");
-  AddNumber(result, heap->amount_of_external_allocated_memory(),
-            "amount_of_external_allocated_memory");
+  AddNumber64(result, heap->amount_of_external_allocated_memory(),
+              "amount_of_external_allocated_memory");
   args.GetReturnValue().Set(result);
 }

=======================================
--- /branches/bleeding_edge/src/heap.h  Thu Nov 21 08:06:02 2013 UTC
+++ /branches/bleeding_edge/src/heap.h  Thu Nov 21 08:38:51 2013 UTC
@@ -1783,7 +1783,7 @@

   bool flush_monomorphic_ics() { return flush_monomorphic_ics_; }

-  intptr_t amount_of_external_allocated_memory() {
+  int64_t amount_of_external_allocated_memory() {
     return amount_of_external_allocated_memory_;
   }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to