Commit 260717af authored by oliver@apple.com's avatar oliver@apple.com

Missed code from last patch


git-svn-id: svn://svn.chromium.org/blink/trunk@42480 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent cd34074f
2009-04-13 Oliver Hunt <oliver@apple.com>
Reviewed by NOBODY (Missed code from last patch).
* runtime/InternalFunction.cpp:
(JSC::InternalFunction::displayName):
(JSC::InternalFunction::calculatedDisplayName):
* runtime/InternalFunction.h:
2009-04-13 Francisco Tolmasky <francisco@280north.com> 2009-04-13 Francisco Tolmasky <francisco@280north.com>
Reviewed by Oliver Hunt. Reviewed by Oliver Hunt.
...@@ -48,7 +48,7 @@ const UString& InternalFunction::name(JSGlobalData* globalData) ...@@ -48,7 +48,7 @@ const UString& InternalFunction::name(JSGlobalData* globalData)
return asString(getDirect(globalData->propertyNames->name))->value(); return asString(getDirect(globalData->propertyNames->name))->value();
} }
const UString& InternalFunction::displayName(JSGlobalData* globalData) const UString InternalFunction::displayName(JSGlobalData* globalData)
{ {
JSValuePtr displayName = getDirect(globalData->propertyNames->displayName); JSValuePtr displayName = getDirect(globalData->propertyNames->displayName);
...@@ -58,9 +58,9 @@ const UString& InternalFunction::displayName(JSGlobalData* globalData) ...@@ -58,9 +58,9 @@ const UString& InternalFunction::displayName(JSGlobalData* globalData)
return UString::null(); return UString::null();
} }
const UString& InternalFunction::calculatedDisplayName(JSGlobalData* globalData) const UString InternalFunction::calculatedDisplayName(JSGlobalData* globalData)
{ {
const UString& explicitName = displayName(globalData); const UString explicitName = displayName(globalData);
if (!explicitName.isEmpty()) if (!explicitName.isEmpty())
return explicitName; return explicitName;
......
...@@ -37,8 +37,8 @@ namespace JSC { ...@@ -37,8 +37,8 @@ namespace JSC {
static const ClassInfo info; static const ClassInfo info;
const UString& name(JSGlobalData*); const UString& name(JSGlobalData*);
const UString& displayName(JSGlobalData*); const UString displayName(JSGlobalData*);
const UString& calculatedDisplayName(JSGlobalData*); const UString calculatedDisplayName(JSGlobalData*);
static PassRefPtr<Structure> createStructure(JSValuePtr proto) static PassRefPtr<Structure> createStructure(JSValuePtr proto)
{ {
......
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