Ignore:
Timestamp:
Jan 21, 2011, 12:01:11 PM (14 years ago)
Author:
[email protected]
Message:

2011-01-21 Peter Gal <[email protected]>

Reviewed by Darin Adler.

REGRESSION(r76177): All JavaScriptCore tests fail on ARM
https://bugs.webkit.org/show_bug.cgi?id=52814

Get the approximateByteSize value before releasing the OwnPtr.

  • parser/JSParser.cpp: (JSC::JSParser::parseFunctionInfo):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/JSParser.cpp

    r76177 r76376  
    13581358    matchOrFail(CLOSEBRACE);
    13591359
    1360     if (newInfo)
    1361         m_functionCache->add(openBracePos, newInfo.release(), newInfo->approximateByteSize());
     1360    if (newInfo) {
     1361        unsigned approximateByteSize = newInfo->approximateByteSize();
     1362        m_functionCache->add(openBracePos, newInfo.release(), approximateByteSize);
     1363    }
    13621364
    13631365    next();
Note: See TracChangeset for help on using the changeset viewer.