Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index c80162aa85e2333ff7db6f0552aa479c66da0a2c..c07d98650f6e05ef1a067049f682b4f670e26f68 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7477,8 +7477,6 @@ Handle<String> CpuProfileNode::GetFunctionName() const { |
int CpuProfileNode::GetScriptId() const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- IsDeadCheck(isolate, "v8::CpuProfileNode::GetScriptId"); |
loislo
2013/08/08 11:04:47
why did you remove that lines?
Sven Panne
2013/08/08 11:51:57
That's OK, the whole idea of IsDeadCheck is fundam
yurys
2013/08/08 12:33:10
They make no sense, if v8 is dead then the code sh
|
const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
const i::CodeEntry* entry = node->entry(); |
return entry->script_id(); |
@@ -7495,8 +7493,6 @@ Handle<String> CpuProfileNode::GetScriptResourceName() const { |
int CpuProfileNode::GetLineNumber() const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- IsDeadCheck(isolate, "v8::CpuProfileNode::GetLineNumber"); |
return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
} |
@@ -7522,7 +7518,7 @@ double CpuProfileNode::GetTotalSamplesCount() const { |
} |
-double CpuProfileNode::GetSelfSamplesCount() const { |
+unsigned CpuProfileNode::GetSelfSamplesCount() const { |
i::Isolate* isolate = i::Isolate::Current(); |
IsDeadCheck(isolate, "v8::CpuProfileNode::GetSelfSamplesCount"); |
return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
@@ -7530,8 +7526,6 @@ double CpuProfileNode::GetSelfSamplesCount() const { |
unsigned CpuProfileNode::GetCallUid() const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- IsDeadCheck(isolate, "v8::CpuProfileNode::GetCallUid"); |
return reinterpret_cast<const i::ProfileNode*>(this)->entry()->GetCallUid(); |
} |
@@ -7542,15 +7536,11 @@ unsigned CpuProfileNode::GetNodeId() const { |
int CpuProfileNode::GetChildrenCount() const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- IsDeadCheck(isolate, "v8::CpuProfileNode::GetChildrenCount"); |
return reinterpret_cast<const i::ProfileNode*>(this)->children()->length(); |
} |
const CpuProfileNode* CpuProfileNode::GetChild(int index) const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- IsDeadCheck(isolate, "v8::CpuProfileNode::GetChild"); |
const i::ProfileNode* child = |
reinterpret_cast<const i::ProfileNode*>(this)->children()->at(index); |
return reinterpret_cast<const CpuProfileNode*>(child); |
@@ -7571,8 +7561,6 @@ void CpuProfile::Delete() { |
unsigned CpuProfile::GetUid() const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- IsDeadCheck(isolate, "v8::CpuProfile::GetUid"); |
return reinterpret_cast<const i::CpuProfile*>(this)->uid(); |
} |
@@ -7587,8 +7575,6 @@ Handle<String> CpuProfile::GetTitle() const { |
const CpuProfileNode* CpuProfile::GetTopDownRoot() const { |
- i::Isolate* isolate = i::Isolate::Current(); |
- IsDeadCheck(isolate, "v8::CpuProfile::GetTopDownRoot"); |
const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this); |
return reinterpret_cast<const CpuProfileNode*>(profile->top_down()->root()); |
} |