Changeset 149134 in webkit


Ignore:
Timestamp:
Apr 25, 2013 12:54:53 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

JSC: Fix interpreter misbehavior in builds with JIT disabled
https://bugs.webkit.org/show_bug.cgi?id=115190

Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-04-25
Reviewed by Oliver Hunt.

Commit http://trac.webkit.org/changeset/147858 modified
some details on how JS stack traces are built. The method
"getLineNumberForCallFrame", renamed in that changeset to
"getBytecodeOffsetForCallFrame" is always returning `0' when
JIT is disabled

How to reproduce:

  • Build webkit with JIT disabled
  • Open MiniBrowser, for example, with http://google.com
  • In a debug build, WebProcess will hit the following ASSERT: Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:279 ASSERT(low);
  • interpreter/Interpreter.cpp:

(JSC::getBytecodeOffsetForCallFrame):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r149130 r149134  
     12013-04-25  Nick Diego Yamane  <nick.yamane@openbossa.org>
     2
     3        JSC: Fix interpreter misbehavior in builds with JIT disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=115190
     5
     6        Reviewed by Oliver Hunt.
     7
     8        Commit http://trac.webkit.org/changeset/147858 modified
     9        some details on how JS stack traces are built. The method
     10        "getLineNumberForCallFrame", renamed in that changeset to
     11        "getBytecodeOffsetForCallFrame" is always returning `0' when
     12        JIT is disabled
     13
     14        How to reproduce:
     15         - Build webkit with JIT disabled
     16         - Open MiniBrowser, for example, with http://google.com
     17         - In a debug build, WebProcess will hit the following ASSERT:
     18           Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:279 ASSERT(low);
     19
     20        * interpreter/Interpreter.cpp:
     21        (JSC::getBytecodeOffsetForCallFrame):
     22
    1232013-04-25  Oliver Hunt  <oliver@apple.com>
    224
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r148720 r149134  
    571571    if (!codeBlock)
    572572        return 0;
    573 #if ENABLE(JIT)
    574573#if ENABLE(DFG_JIT)
    575574    if (codeBlock->getJITType() == JITCode::DFGJIT)
     
    577576#endif
    578577    return callFrame->bytecodeOffsetForNonDFGCode();
    579 #else
    580     return 0;
    581 #endif
    582578}
    583579
Note: See TracChangeset for help on using the changeset viewer.