Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 1d75db57b36e13fe4559da93958fdde82d31ccd6..909dd09ad5d516829732fd8dce00d355c3d207ed 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6727,7 +6727,7 @@ void HeapSnapshot::Delete() { |
HeapSnapshot::Type HeapSnapshot::GetType() const { |
i::Isolate* isolate = i::Isolate::Current(); |
IsDeadCheck(isolate, "v8::HeapSnapshot::GetType"); |
- return static_cast<HeapSnapshot::Type>(ToInternal(this)->type()); |
+ return kFull; |
} |
@@ -6861,17 +6861,9 @@ const HeapSnapshot* HeapProfiler::TakeSnapshot(Handle<String> title, |
ObjectNameResolver* resolver) { |
i::Isolate* isolate = i::Isolate::Current(); |
IsDeadCheck(isolate, "v8::HeapProfiler::TakeSnapshot"); |
- i::HeapSnapshot::Type internal_type = i::HeapSnapshot::kFull; |
- switch (type) { |
- case HeapSnapshot::kFull: |
- internal_type = i::HeapSnapshot::kFull; |
- break; |
- default: |
- UNREACHABLE(); |
- } |
return reinterpret_cast<const HeapSnapshot*>( |
isolate->heap_profiler()->TakeSnapshot( |
- *Utils::OpenHandle(*title), internal_type, control, resolver)); |
+ *Utils::OpenHandle(*title), control, resolver)); |
} |
@@ -6881,8 +6873,7 @@ const HeapSnapshot* HeapProfiler::TakeHeapSnapshot( |
ObjectNameResolver* resolver) { |
return reinterpret_cast<const HeapSnapshot*>( |
reinterpret_cast<i::HeapProfiler*>(this)->TakeSnapshot( |
- *Utils::OpenHandle(*title), i::HeapSnapshot::kFull, |
- control, resolver)); |
+ *Utils::OpenHandle(*title), control, resolver)); |
} |