Ignore:
Timestamp:
Nov 26, 2009, 9:20:37 PM (16 years ago)
Author:
[email protected]
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.