Skip to content
Browse files

build on node 0.3.2-pre

  • Loading branch information...
1 parent a16cc25 commit 7c1fb5b96681d6b0d6269635e134d154ed4a9a26 @dannycoates dannycoates committed Dec 6, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 graph_node.cc
View
8 graph_node.cc
@@ -20,7 +20,7 @@ void GraphNode::Initialize() {
node_template_->SetAccessor(String::New("retainersCount"), GraphNode::GetRetainersCount);
node_template_->SetAccessor(String::New("size"), GraphNode::GetSize);
node_template_->SetAccessor(String::New("retainingPathsCount"), GraphNode::GetRetainingPathsCount);
- //node_template_->SetAccessor(String::New("dominatorNode"), GraphNode::GetDominator);
+ node_template_->SetAccessor(String::New("dominatorNode"), GraphNode::GetDominator);
node_template_->Set(String::New("getChild"), FunctionTemplate::New(GraphNode::GetChild));
node_template_->Set(String::New("retainedSize"), FunctionTemplate::New(GraphNode::GetRetainedSize));
node_template_->Set(String::New("getRetainer"), FunctionTemplate::New(GraphNode::GetRetainer));
@@ -140,7 +140,7 @@ Handle<Value> GraphNode::GetRetainedSize(const Arguments& args) {
}
Handle<Object> self = args.This();
void* ptr = self->GetPointerFromInternalField(0);
- int32_t size = static_cast<HeapGraphNode*>(ptr)->GetRetainedSize();
+ int32_t size = static_cast<HeapGraphNode*>(ptr)->GetRetainedSize(exact);
return scope.Close(Integer::New(size));
}
@@ -179,15 +179,15 @@ Handle<Value> GraphNode::GetRetainingPath(const Arguments& args) {
const HeapGraphPath* path = static_cast<HeapGraphNode*>(ptr)->GetRetainingPath(index);
return scope.Close(GraphPath::New(path));
}
-/*
+
Handle<Value> GraphNode::GetDominator(Local<String> property, const AccessorInfo& info) {
HandleScope scope;
Local<Object> self = info.Holder();
void* ptr = self->GetPointerFromInternalField(0);
const HeapGraphNode* node = static_cast<HeapGraphNode*>(ptr)->GetDominatorNode();
return scope.Close(GraphNode::New(node));
}
-*/
+
Handle<Value> GraphNode::New(const HeapGraphNode* node) {
HandleScope scope;

0 comments on commit 7c1fb5b

Please sign in to comment.
Something went wrong with that request. Please try again.