Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index af1a0e55429baebd6968540157794da235cb7c36..28be6366a3bfc7ff229e7dc08c70b5bd7c784b19 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -1251,7 +1251,8 @@ String* JSObject::class_name() { |
| String* JSObject::constructor_name() { |
| if (IsJSFunction()) { |
| - return Heap::function_class_symbol(); |
| + return JSFunction::cast(this)->IsBoilerplate() ? |
| + Heap::function_class_symbol() : Heap::closure_symbol(); |
|
Søren Thygesen Gjesse
2009/10/26 08:13:09
Where will this show up? All actual JsvaScript fun
mnaganov (inactive)
2009/10/26 09:54:14
'constructor_name' is only used in heap profiler.
|
| } |
| if (map()->constructor()->IsJSFunction()) { |
| JSFunction* constructor = JSFunction::cast(map()->constructor()); |