Changeset 51424 in webkit


Ignore:
Timestamp:
Nov 26, 2009 9:20:37 PM (14 years ago)
Author:
oliver@apple.com
Message:

Incorrect behaviour of jneq_null in the interpreter
https://bugs.webkit.org/show_bug.cgi?id=31901

Reviewed by Gavin Barraclough.

Correct the logic of jneq_null. This is already covered by existing tests.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r51423 r51424  
     12009-11-25  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Gavin Barraclough.
     4
     5        Incorrect behaviour of jneq_null in the interpreter
     6        https://bugs.webkit.org/show_bug.cgi?id=31901
     7
     8        Correct the logic of jneq_null.  This is already covered by existing tests.
     9
     10        * interpreter/Interpreter.cpp:
     11        (JSC::Interpreter::privateExecute):
     12
    1132009-11-26  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    214
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r51128 r51424  
    27082708        JSValue srcValue = callFrame->r(src).jsValue();
    27092709
    2710         if (!srcValue.isUndefinedOrNull() || (srcValue.isCell() && !srcValue.asCell()->structure()->typeInfo().masqueradesAsUndefined())) {
     2710        if (!srcValue.isUndefinedOrNull() && (!srcValue.isCell() || !srcValue.asCell()->structure()->typeInfo().masqueradesAsUndefined())) {
    27112711            vPC += target;
    27122712            NEXT_INSTRUCTION();
Note: See TracChangeset for help on using the changeset viewer.