Fix Windows build

R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/79963003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17946 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 9318e1cc
......@@ -58,6 +58,14 @@ static void AddNumber(v8::Local<v8::Object> object,
}
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(
const v8::FunctionCallbackInfo<v8::Value>& args) {
Isolate* isolate = reinterpret_cast<Isolate*>(args.GetIsolate());
......@@ -145,8 +153,8 @@ void StatisticsExtension::GetCounters(
"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);
}
......
......@@ -1783,7 +1783,7 @@ class Heap {
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_;
}
......
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