Commit 606e1ada authored by dcheng's avatar dcheng Committed by Commit bot

Force v8::internal::HeapObjectsSet::SetTag to be out-of-lined.

This reduces the size of GetStrongGcSubrootName() from 77 KB to 10KB.

BUG=5240

Review-Url: https://codereview.chromium.org/2189633003
Cr-Commit-Position: refs/heads/master@{#38123}
parent d8077227
...@@ -751,7 +751,7 @@ const char* HeapObjectsSet::GetTag(Object* obj) { ...@@ -751,7 +751,7 @@ const char* HeapObjectsSet::GetTag(Object* obj) {
} }
void HeapObjectsSet::SetTag(Object* obj, const char* tag) { V8_NOINLINE void HeapObjectsSet::SetTag(Object* obj, const char* tag) {
if (!obj->IsHeapObject()) return; if (!obj->IsHeapObject()) return;
HeapObject* object = HeapObject::cast(obj); HeapObject* object = HeapObject::cast(obj);
base::HashMap::Entry* cache_entry = base::HashMap::Entry* cache_entry =
......
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