Changeset 76376 in webkit


Ignore:
Timestamp:
Jan 21, 2011 12:01:11 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-21 Peter Gal <galpeter@inf.u-szeged.hu>

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):
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r76369 r76376  
     12011-01-21  Peter Gal  <galpeter@inf.u-szeged.hu>
     2
     3        Reviewed by Darin Adler.
     4
     5        REGRESSION(r76177): All JavaScriptCore tests fail on ARM
     6        https://bugs.webkit.org/show_bug.cgi?id=52814
     7
     8        Get the approximateByteSize value before releasing the OwnPtr.
     9
     10        * parser/JSParser.cpp:
     11        (JSC::JSParser::parseFunctionInfo):
     12
    1132011-01-21  Xan Lopez  <xlopez@igalia.com>
    214
  • 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.