Changeset 227693 in webkit


Ignore:
Timestamp:
Jan 26, 2018 1:23:31 PM (6 years ago)
Author:
Joseph Pecoraro
Message:

Rebaselining builtin generator tests after r227685.

Unreviewed.

  • Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Combined.js-result:
  • Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Separate.js-result:
  • Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Combined.js-result:
  • Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Separate.js-result:
  • Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Combined.js-result:
  • Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Separate.js-result:
  • Scripts/tests/builtins/expected/JavaScriptCore-InternalClashingNames-Combined.js-result:
  • Scripts/tests/builtins/expected/WebCore-AnotherGuardedInternalBuiltin-Separate.js-result:
  • Scripts/tests/builtins/expected/WebCore-ArbitraryConditionalGuard-Separate.js-result:
  • Scripts/tests/builtins/expected/WebCore-GuardedBuiltin-Separate.js-result:
  • Scripts/tests/builtins/expected/WebCore-GuardedInternalBuiltin-Separate.js-result:
  • Scripts/tests/builtins/expected/WebCore-UnguardedBuiltin-Separate.js-result:
  • Scripts/tests/builtins/expected/WebCore-xmlCasingTest-Separate.js-result:

It used to be that the builtins generator was minifying by default. That was an accident
and we now only minify on Release builds. The generator tests are now getting the
default unminified output behavior so they need to update their expectations
for some extra whitespace.

Location:
trunk/Source/JavaScriptCore
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r227692 r227693  
     12018-01-26  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Rebaselining builtin generator tests after r227685.
     4
     5        Unreviewed.
     6
     7        * Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Combined.js-result:
     8        * Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Separate.js-result:
     9        * Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Combined.js-result:
     10        * Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Separate.js-result:
     11        * Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Combined.js-result:
     12        * Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Separate.js-result:
     13        * Scripts/tests/builtins/expected/JavaScriptCore-InternalClashingNames-Combined.js-result:
     14        * Scripts/tests/builtins/expected/WebCore-AnotherGuardedInternalBuiltin-Separate.js-result:
     15        * Scripts/tests/builtins/expected/WebCore-ArbitraryConditionalGuard-Separate.js-result:
     16        * Scripts/tests/builtins/expected/WebCore-GuardedBuiltin-Separate.js-result:
     17        * Scripts/tests/builtins/expected/WebCore-GuardedInternalBuiltin-Separate.js-result:
     18        * Scripts/tests/builtins/expected/WebCore-UnguardedBuiltin-Separate.js-result:
     19        * Scripts/tests/builtins/expected/WebCore-xmlCasingTest-Separate.js-result:
     20        It used to be that the builtins generator was minifying by default. That was an accident
     21        and we now only minify on Release builds. The generator tests are now getting the
     22        default unminified output behavior so they need to update their expectations
     23        for some extra whitespace.
     24
    1252018-01-26  Mark Lam  <mark.lam@apple.com>
    226
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Combined.js-result

    r221417 r227693  
    117117
    118118const JSC::ConstructAbility s_builtinPromiseRejectPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    119 const int s_builtinPromiseRejectPromiseCodeLength = 410;
     119const int s_builtinPromiseRejectPromiseCodeLength = 413;
    120120static const JSC::Intrinsic s_builtinPromiseRejectPromiseCodeIntrinsic = JSC::NoIntrinsic;
    121121const char* s_builtinPromiseRejectPromiseCode =
     
    123123    "{\n" \
    124124    "    \"use strict\";\n" \
     125    "\n" \
    125126    "    var reactions = promise.@promiseRejectReactions;\n" \
    126127    "    promise.@promiseResult = reason;\n" \
     
    128129    "    promise.@promiseRejectReactions = undefined;\n" \
    129130    "    promise.@promiseState = @promiseRejected;\n" \
     131    "\n" \
    130132    "    @InspectorInstrumentation.promiseRejected(promise, reason, reactions);\n" \
     133    "\n" \
    131134    "    @triggerPromiseReactions(reactions, reason);\n" \
    132135    "})\n" \
     
    134137
    135138const JSC::ConstructAbility s_builtinPromiseFulfillPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    136 const int s_builtinPromiseFulfillPromiseCodeLength = 409;
     139const int s_builtinPromiseFulfillPromiseCodeLength = 412;
    137140static const JSC::Intrinsic s_builtinPromiseFulfillPromiseCodeIntrinsic = JSC::NoIntrinsic;
    138141const char* s_builtinPromiseFulfillPromiseCode =
     
    140143    "{\n" \
    141144    "    \"use strict\";\n" \
     145    "\n" \
    142146    "    var reactions = promise.@promiseFulfillReactions;\n" \
    143147    "    promise.@promiseResult = value;\n" \
     
    145149    "    promise.@promiseRejectReactions = undefined;\n" \
    146150    "    promise.@promiseState = @promiseFulfilled;\n" \
     151    "\n" \
    147152    "    @InspectorInstrumentation.promiseFulfilled(promise, value, reactions);\n" \
     153    "\n" \
    148154    "    @triggerPromiseReactions(reactions, value);\n" \
    149155    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Separate.js-result

    r221417 r227693  
    116116
    117117const JSC::ConstructAbility s_builtinPromiseRejectPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    118 const int s_builtinPromiseRejectPromiseCodeLength = 410;
     118const int s_builtinPromiseRejectPromiseCodeLength = 413;
    119119static const JSC::Intrinsic s_builtinPromiseRejectPromiseCodeIntrinsic = JSC::NoIntrinsic;
    120120const char* s_builtinPromiseRejectPromiseCode =
     
    122122    "{\n" \
    123123    "    \"use strict\";\n" \
     124    "\n" \
    124125    "    var reactions = promise.@promiseRejectReactions;\n" \
    125126    "    promise.@promiseResult = reason;\n" \
     
    127128    "    promise.@promiseRejectReactions = undefined;\n" \
    128129    "    promise.@promiseState = @promiseRejected;\n" \
     130    "\n" \
    129131    "    @InspectorInstrumentation.promiseRejected(promise, reason, reactions);\n" \
     132    "\n" \
    130133    "    @triggerPromiseReactions(reactions, reason);\n" \
    131134    "})\n" \
     
    133136
    134137const JSC::ConstructAbility s_builtinPromiseFulfillPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    135 const int s_builtinPromiseFulfillPromiseCodeLength = 409;
     138const int s_builtinPromiseFulfillPromiseCodeLength = 412;
    136139static const JSC::Intrinsic s_builtinPromiseFulfillPromiseCodeIntrinsic = JSC::NoIntrinsic;
    137140const char* s_builtinPromiseFulfillPromiseCode =
     
    139142    "{\n" \
    140143    "    \"use strict\";\n" \
     144    "\n" \
    141145    "    var reactions = promise.@promiseFulfillReactions;\n" \
    142146    "    promise.@promiseResult = value;\n" \
     
    144148    "    promise.@promiseRejectReactions = undefined;\n" \
    145149    "    promise.@promiseState = @promiseFulfilled;\n" \
     150    "\n" \
    146151    "    @InspectorInstrumentation.promiseFulfilled(promise, value, reactions);\n" \
     152    "\n" \
    147153    "    @triggerPromiseReactions(reactions, value);\n" \
    148154    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Combined.js-result

    r221417 r227693  
    129129
    130130const JSC::ConstructAbility s_builtinPrototypeEveryCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    131 const int s_builtinPrototypeEveryCodeLength = 760;
     131const int s_builtinPrototypeEveryCodeLength = 762;
    132132static const JSC::Intrinsic s_builtinPrototypeEveryCodeIntrinsic = JSC::NoIntrinsic;
    133133const char* s_builtinPrototypeEveryCode =
     
    135135    "{\n" \
    136136    "    \"use strict\";\n" \
     137    "\n" \
    137138    "    if (this === null)\n" \
    138139    "        throw new @TypeError(\"Array.prototype.every requires that |this| not be null\");\n" \
     
    143144    "    var array = @Object(this);\n" \
    144145    "    var length = @toLength(array.length);\n" \
     146    "\n" \
    145147    "    if (typeof callback !== \"function\")\n" \
    146148    "        throw new @TypeError(\"Array.prototype.every callback must be a function\");\n" \
     
    160162
    161163const JSC::ConstructAbility s_builtinPrototypeForEachCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    162 const int s_builtinPrototypeForEachCodeLength = 692;
     164const int s_builtinPrototypeForEachCodeLength = 694;
    163165static const JSC::Intrinsic s_builtinPrototypeForEachCodeIntrinsic = JSC::NoIntrinsic;
    164166const char* s_builtinPrototypeForEachCode =
     
    166168    "{\n" \
    167169    "    \"use strict\";\n" \
     170    "\n" \
    168171    "    if (this === null)\n" \
    169172    "        throw new @TypeError(\"Array.prototype.forEach requires that |this| not be null\");\n" \
     
    174177    "    var array = @Object(this);\n" \
    175178    "    var length = @toLength(array.length);\n" \
     179    "\n" \
    176180    "    if (typeof callback !== \"function\")\n" \
    177181    "        throw new @TypeError(\"Array.prototype.forEach callback must be a function\");\n" \
     
    187191
    188192const JSC::ConstructAbility s_builtinPrototypeMatchCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    189 const int s_builtinPrototypeMatchCodeLength = 1198;
     193const int s_builtinPrototypeMatchCodeLength = 1238;
    190194static const JSC::Intrinsic s_builtinPrototypeMatchCodeIntrinsic = JSC::NoIntrinsic;
    191195const char* s_builtinPrototypeMatchCode =
     
    193197    "{\n" \
    194198    "    \"use strict\";\n" \
     199    "\n" \
    195200    "    if (!@isObject(this))\n" \
    196201    "        @throwTypeError(\"RegExp.prototype.@@match requires that |this| be an Object\");\n" \
     202    "\n" \
    197203    "    let regexp = this;\n" \
     204    "\n" \
     205    "    //\n" \
    198206    "    if (!@hasObservableSideEffectsForRegExpMatch(regexp))\n" \
    199207    "        return @regExpMatchFast.@call(regexp, strArg);\n" \
     208    "\n" \
    200209    "    let str = @toString(strArg);\n" \
     210    "\n" \
    201211    "    if (!regexp.global)\n" \
    202212    "        return @regExpExec(regexp, str);\n" \
     
    205215    "    regexp.lastIndex = 0;\n" \
    206216    "    let resultList = [];\n" \
     217    "\n" \
     218    "    //\n" \
     219    "    //\n" \
     220    "    //\n" \
    207221    "    const maximumReasonableMatchSize = 100000000;\n" \
     222    "\n" \
    208223    "    while (true) {\n" \
    209224    "        let result = @regExpExec(regexp, str);\n" \
     
    214229    "            return resultList;\n" \
    215230    "        }\n" \
     231    "\n" \
    216232    "        if (resultList.length > maximumReasonableMatchSize)\n" \
    217233    "            @throwOutOfMemoryError();\n" \
     234    "\n" \
    218235    "        if (!@isObject(result))\n" \
    219236    "            @throwTypeError(\"RegExp.prototype.@@match call to RegExp.exec didn't return null or an object\");\n" \
     237    "\n" \
    220238    "        let resultString = @toString(result[0]);\n" \
     239    "\n" \
    221240    "        if (!resultString.length)\n" \
    222241    "            regexp.lastIndex = @advanceStringIndex(str, regexp.lastIndex, unicode);\n" \
     242    "\n" \
    223243    "        resultList.@push(resultString);\n" \
    224244    "    }\n" \
     
    227247
    228248const JSC::ConstructAbility s_builtinPrototypeTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    229 const int s_builtinPrototypeTestCodeLength = 456;
     249const int s_builtinPrototypeTestCodeLength = 504;
    230250static const JSC::Intrinsic s_builtinPrototypeTestCodeIntrinsic = JSC::RegExpTestIntrinsic;
    231251const char* s_builtinPrototypeTestCode =
     
    233253    "{\n" \
    234254    "    \"use strict\";\n" \
     255    "\n" \
    235256    "    let regexp = this;\n" \
     257    "\n" \
     258    "    //\n" \
    236259    "    if (@isRegExpObject(regexp) && @tryGetById(regexp, \"exec\") === @regExpBuiltinExec)\n" \
    237260    "        return @regExpTestFast.@call(regexp, strArg);\n" \
     261    "\n" \
     262    "    //\n" \
     263    "    //\n" \
    238264    "    if (!@isObject(regexp))\n" \
    239265    "        @throwTypeError(\"RegExp.prototype.test requires that |this| be an Object\");\n" \
     266    "\n" \
     267    "    //\n" \
    240268    "    let str = @toString(strArg);\n" \
     269    "\n" \
     270    "    //\n" \
    241271    "    let match = @regExpExec(regexp, str);\n" \
     272    "\n" \
     273    "    //\n" \
    242274    "    if (match !== null)\n" \
    243275    "        return true;\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Separate.js-result

    r221417 r227693  
    130130
    131131const JSC::ConstructAbility s_builtinPrototypeEveryCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    132 const int s_builtinPrototypeEveryCodeLength = 760;
     132const int s_builtinPrototypeEveryCodeLength = 762;
    133133static const JSC::Intrinsic s_builtinPrototypeEveryCodeIntrinsic = JSC::NoIntrinsic;
    134134const char* s_builtinPrototypeEveryCode =
     
    136136    "{\n" \
    137137    "    \"use strict\";\n" \
     138    "\n" \
    138139    "    if (this === null)\n" \
    139140    "        throw new @TypeError(\"Array.prototype.every requires that |this| not be null\");\n" \
     
    144145    "    var array = @Object(this);\n" \
    145146    "    var length = @toLength(array.length);\n" \
     147    "\n" \
    146148    "    if (typeof callback !== \"function\")\n" \
    147149    "        throw new @TypeError(\"Array.prototype.every callback must be a function\");\n" \
     
    161163
    162164const JSC::ConstructAbility s_builtinPrototypeForEachCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    163 const int s_builtinPrototypeForEachCodeLength = 692;
     165const int s_builtinPrototypeForEachCodeLength = 694;
    164166static const JSC::Intrinsic s_builtinPrototypeForEachCodeIntrinsic = JSC::NoIntrinsic;
    165167const char* s_builtinPrototypeForEachCode =
     
    167169    "{\n" \
    168170    "    \"use strict\";\n" \
     171    "\n" \
    169172    "    if (this === null)\n" \
    170173    "        throw new @TypeError(\"Array.prototype.forEach requires that |this| not be null\");\n" \
     
    175178    "    var array = @Object(this);\n" \
    176179    "    var length = @toLength(array.length);\n" \
     180    "\n" \
    177181    "    if (typeof callback !== \"function\")\n" \
    178182    "        throw new @TypeError(\"Array.prototype.forEach callback must be a function\");\n" \
     
    188192
    189193const JSC::ConstructAbility s_builtinPrototypeMatchCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    190 const int s_builtinPrototypeMatchCodeLength = 1198;
     194const int s_builtinPrototypeMatchCodeLength = 1238;
    191195static const JSC::Intrinsic s_builtinPrototypeMatchCodeIntrinsic = JSC::NoIntrinsic;
    192196const char* s_builtinPrototypeMatchCode =
     
    194198    "{\n" \
    195199    "    \"use strict\";\n" \
     200    "\n" \
    196201    "    if (!@isObject(this))\n" \
    197202    "        @throwTypeError(\"RegExp.prototype.@@match requires that |this| be an Object\");\n" \
     203    "\n" \
    198204    "    let regexp = this;\n" \
     205    "\n" \
     206    "    //\n" \
    199207    "    if (!@hasObservableSideEffectsForRegExpMatch(regexp))\n" \
    200208    "        return @regExpMatchFast.@call(regexp, strArg);\n" \
     209    "\n" \
    201210    "    let str = @toString(strArg);\n" \
     211    "\n" \
    202212    "    if (!regexp.global)\n" \
    203213    "        return @regExpExec(regexp, str);\n" \
     
    206216    "    regexp.lastIndex = 0;\n" \
    207217    "    let resultList = [];\n" \
     218    "\n" \
     219    "    //\n" \
     220    "    //\n" \
     221    "    //\n" \
    208222    "    const maximumReasonableMatchSize = 100000000;\n" \
     223    "\n" \
    209224    "    while (true) {\n" \
    210225    "        let result = @regExpExec(regexp, str);\n" \
     
    215230    "            return resultList;\n" \
    216231    "        }\n" \
     232    "\n" \
    217233    "        if (resultList.length > maximumReasonableMatchSize)\n" \
    218234    "            @throwOutOfMemoryError();\n" \
     235    "\n" \
    219236    "        if (!@isObject(result))\n" \
    220237    "            @throwTypeError(\"RegExp.prototype.@@match call to RegExp.exec didn't return null or an object\");\n" \
     238    "\n" \
    221239    "        let resultString = @toString(result[0]);\n" \
     240    "\n" \
    222241    "        if (!resultString.length)\n" \
    223242    "            regexp.lastIndex = @advanceStringIndex(str, regexp.lastIndex, unicode);\n" \
     243    "\n" \
    224244    "        resultList.@push(resultString);\n" \
    225245    "    }\n" \
     
    228248
    229249const JSC::ConstructAbility s_builtinPrototypeTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    230 const int s_builtinPrototypeTestCodeLength = 456;
     250const int s_builtinPrototypeTestCodeLength = 504;
    231251static const JSC::Intrinsic s_builtinPrototypeTestCodeIntrinsic = JSC::RegExpTestIntrinsic;
    232252const char* s_builtinPrototypeTestCode =
     
    234254    "{\n" \
    235255    "    \"use strict\";\n" \
     256    "\n" \
    236257    "    let regexp = this;\n" \
     258    "\n" \
     259    "    //\n" \
    237260    "    if (@isRegExpObject(regexp) && @tryGetById(regexp, \"exec\") === @regExpBuiltinExec)\n" \
    238261    "        return @regExpTestFast.@call(regexp, strArg);\n" \
     262    "\n" \
     263    "    //\n" \
     264    "    //\n" \
    239265    "    if (!@isObject(regexp))\n" \
    240266    "        @throwTypeError(\"RegExp.prototype.test requires that |this| be an Object\");\n" \
     267    "\n" \
     268    "    //\n" \
    241269    "    let str = @toString(strArg);\n" \
     270    "\n" \
     271    "    //\n" \
    242272    "    let match = @regExpExec(regexp, str);\n" \
     273    "\n" \
     274    "    //\n" \
    243275    "    if (match !== null)\n" \
    244276    "        return true;\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Combined.js-result

    r221417 r227693  
    115115
    116116const JSC::ConstructAbility s_builtinConstructorOfCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    117 const int s_builtinConstructorOfCodeLength = 286;
     117const int s_builtinConstructorOfCodeLength = 294;
    118118static const JSC::Intrinsic s_builtinConstructorOfCodeIntrinsic = JSC::NoIntrinsic;
    119119const char* s_builtinConstructorOfCode =
     
    121121    "{\n" \
    122122    "    \"use strict\";\n" \
     123    "\n" \
    123124    "    var length = arguments.length;\n" \
     125    "    //\n" \
    124126    "    var array = typeof this === 'function' ? new this(length) : new @Array(length);\n" \
    125127    "    for (var k = 0; k < length; ++k)\n" \
     
    131133
    132134const JSC::ConstructAbility s_builtinConstructorFromCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    133 const int s_builtinConstructorFromCodeLength = 1979;
     135const int s_builtinConstructorFromCodeLength = 2046;
    134136static const JSC::Intrinsic s_builtinConstructorFromCodeIntrinsic = JSC::NoIntrinsic;
    135137const char* s_builtinConstructorFromCode =
     
    137139    "{\n" \
    138140    "    \"use strict\";\n" \
     141    "\n" \
    139142    "    var thisObj = this;\n" \
     143    "\n" \
    140144    "    var mapFn = arguments.length > 1 ? arguments[1] : undefined;\n" \
     145    "\n" \
    141146    "    var thisArg;\n" \
     147    "\n" \
    142148    "    if (mapFn !== undefined) {\n" \
    143149    "        if (typeof mapFn !== \"function\")\n" \
    144150    "            throw new @TypeError(\"Array.from requires that the second argument, when provided, be a function\");\n" \
     151    "\n" \
    145152    "        if (arguments.length > 2)\n" \
    146153    "            thisArg = arguments[2];\n" \
    147154    "    }\n" \
     155    "\n" \
    148156    "    if (items == null)\n" \
    149157    "        throw new @TypeError(\"Array.from requires an array-like object - not null or undefined\");\n" \
     158    "\n" \
    150159    "    var iteratorMethod = items[@symbolIterator];\n" \
    151160    "    if (iteratorMethod != null) {\n" \
    152161    "        if (typeof iteratorMethod !== \"function\")\n" \
    153162    "            throw new @TypeError(\"Array.from requires that the property of the first argument, items[Symbol.iterator], when exists, be a function\");\n" \
     163    "\n" \
     164    "        //\n" \
    154165    "        var result = (typeof thisObj === \"function\") ? @Object(new thisObj()) : [];\n" \
     166    "\n" \
    155167    "        var k = 0;\n" \
    156168    "        var iterator = iteratorMethod.@call(items);\n" \
     169    "\n" \
     170    "        //\n" \
     171    "        //\n" \
     172    "        //\n" \
    157173    "        var wrapper = {\n" \
    158174    "            [@symbolIterator]() {\n" \
     
    160176    "            }\n" \
    161177    "        };\n" \
     178    "\n" \
    162179    "        for (var value of wrapper) {\n" \
    163180    "            if (mapFn)\n" \
     
    167184    "            k += 1;\n" \
    168185    "        }\n" \
     186    "\n" \
    169187    "        result.length = k;\n" \
    170188    "        return result;\n" \
    171189    "    }\n" \
     190    "\n" \
    172191    "    var arrayLike = @Object(items);\n" \
    173192    "    var arrayLikeLength = @toLength(arrayLike.length);\n" \
     193    "\n" \
     194    "    //\n" \
    174195    "    var result = (typeof thisObj === \"function\") ? @Object(new thisObj(arrayLikeLength)) : new @Array(arrayLikeLength);\n" \
     196    "\n" \
    175197    "    var k = 0;\n" \
    176198    "    while (k < arrayLikeLength) {\n" \
     
    182204    "        k += 1;\n" \
    183205    "    }\n" \
     206    "\n" \
    184207    "    result.length = arrayLikeLength;\n" \
    185208    "    return result;\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Separate.js-result

    r221417 r227693  
    114114
    115115const JSC::ConstructAbility s_builtinConstructorOfCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    116 const int s_builtinConstructorOfCodeLength = 286;
     116const int s_builtinConstructorOfCodeLength = 294;
    117117static const JSC::Intrinsic s_builtinConstructorOfCodeIntrinsic = JSC::NoIntrinsic;
    118118const char* s_builtinConstructorOfCode =
     
    120120    "{\n" \
    121121    "    \"use strict\";\n" \
     122    "\n" \
    122123    "    var length = arguments.length;\n" \
     124    "    //\n" \
    123125    "    var array = typeof this === 'function' ? new this(length) : new @Array(length);\n" \
    124126    "    for (var k = 0; k < length; ++k)\n" \
     
    130132
    131133const JSC::ConstructAbility s_builtinConstructorFromCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    132 const int s_builtinConstructorFromCodeLength = 1979;
     134const int s_builtinConstructorFromCodeLength = 2046;
    133135static const JSC::Intrinsic s_builtinConstructorFromCodeIntrinsic = JSC::NoIntrinsic;
    134136const char* s_builtinConstructorFromCode =
     
    136138    "{\n" \
    137139    "    \"use strict\";\n" \
     140    "\n" \
    138141    "    var thisObj = this;\n" \
     142    "\n" \
    139143    "    var mapFn = arguments.length > 1 ? arguments[1] : undefined;\n" \
     144    "\n" \
    140145    "    var thisArg;\n" \
     146    "\n" \
    141147    "    if (mapFn !== undefined) {\n" \
    142148    "        if (typeof mapFn !== \"function\")\n" \
    143149    "            throw new @TypeError(\"Array.from requires that the second argument, when provided, be a function\");\n" \
     150    "\n" \
    144151    "        if (arguments.length > 2)\n" \
    145152    "            thisArg = arguments[2];\n" \
    146153    "    }\n" \
     154    "\n" \
    147155    "    if (items == null)\n" \
    148156    "        throw new @TypeError(\"Array.from requires an array-like object - not null or undefined\");\n" \
     157    "\n" \
    149158    "    var iteratorMethod = items[@symbolIterator];\n" \
    150159    "    if (iteratorMethod != null) {\n" \
    151160    "        if (typeof iteratorMethod !== \"function\")\n" \
    152161    "            throw new @TypeError(\"Array.from requires that the property of the first argument, items[Symbol.iterator], when exists, be a function\");\n" \
     162    "\n" \
     163    "        //\n" \
    153164    "        var result = (typeof thisObj === \"function\") ? @Object(new thisObj()) : [];\n" \
     165    "\n" \
    154166    "        var k = 0;\n" \
    155167    "        var iterator = iteratorMethod.@call(items);\n" \
     168    "\n" \
     169    "        //\n" \
     170    "        //\n" \
     171    "        //\n" \
    156172    "        var wrapper = {\n" \
    157173    "            [@symbolIterator]() {\n" \
     
    159175    "            }\n" \
    160176    "        };\n" \
     177    "\n" \
    161178    "        for (var value of wrapper) {\n" \
    162179    "            if (mapFn)\n" \
     
    166183    "            k += 1;\n" \
    167184    "        }\n" \
     185    "\n" \
    168186    "        result.length = k;\n" \
    169187    "        return result;\n" \
    170188    "    }\n" \
     189    "\n" \
    171190    "    var arrayLike = @Object(items);\n" \
    172191    "    var arrayLikeLength = @toLength(arrayLike.length);\n" \
     192    "\n" \
     193    "    //\n" \
    173194    "    var result = (typeof thisObj === \"function\") ? @Object(new thisObj(arrayLikeLength)) : new @Array(arrayLikeLength);\n" \
     195    "\n" \
    174196    "    var k = 0;\n" \
    175197    "    while (k < arrayLikeLength) {\n" \
     
    181203    "        k += 1;\n" \
    182204    "    }\n" \
     205    "\n" \
    183206    "    result.length = arrayLikeLength;\n" \
    184207    "    return result;\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-InternalClashingNames-Combined.js-result

    r221417 r227693  
    116116
    117117const JSC::ConstructAbility s_internalClashingNamesIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    118 const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 70;
     118const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 71;
    119119static const JSC::Intrinsic s_internalClashingNamesIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic;
    120120const char* s_internalClashingNamesIsReadableStreamLockedCode =
     
    122122    "{\n" \
    123123    "   \"use strict\";\n" \
     124    "\n" \
    124125    "    return !!stream.@reader;\n" \
    125126    "})\n" \
     
    127128
    128129const JSC::ConstructAbility s_internalClashingNamesIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    129 const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 70;
     130const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 71;
    130131static const JSC::Intrinsic s_internalClashingNamesIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic;
    131132const char* s_internalClashingNamesIsReadableStreamLockedCode =
     
    133134    "{\n" \
    134135    "   \"use strict\";\n" \
     136    "\n" \
    135137    "    return !!stream.@reader;\n" \
    136138    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-AnotherGuardedInternalBuiltin-Separate.js-result

    r221417 r227693  
    205205
    206206const JSC::ConstructAbility s_anotherGuardedInternalBuiltinLetsFetchCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    207 const int s_anotherGuardedInternalBuiltinLetsFetchCodeLength = 82;
     207const int s_anotherGuardedInternalBuiltinLetsFetchCodeLength = 83;
    208208static const JSC::Intrinsic s_anotherGuardedInternalBuiltinLetsFetchCodeIntrinsic = JSC::NoIntrinsic;
    209209const char* s_anotherGuardedInternalBuiltinLetsFetchCode =
     
    211211    "{\n" \
    212212    "   \"use strict\";\n" \
     213    "\n" \
    213214    "    return @fetchRequest(new @Request(\"yes\"));\n" \
    214215    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-ArbitraryConditionalGuard-Separate.js-result

    r221417 r227693  
    175175
    176176const JSC::ConstructAbility s_arbitraryConditionalGuardIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    177 const int s_arbitraryConditionalGuardIsReadableStreamLockedCodeLength = 70;
     177const int s_arbitraryConditionalGuardIsReadableStreamLockedCodeLength = 71;
    178178static const JSC::Intrinsic s_arbitraryConditionalGuardIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic;
    179179const char* s_arbitraryConditionalGuardIsReadableStreamLockedCode =
     
    181181    "{\n" \
    182182    "   \"use strict\";\n" \
     183    "\n" \
    183184    "    return !!stream.@reader;\n" \
    184185    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-GuardedBuiltin-Separate.js-result

    r221417 r227693  
    175175
    176176const JSC::ConstructAbility s_guardedBuiltinIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    177 const int s_guardedBuiltinIsReadableStreamLockedCodeLength = 70;
     177const int s_guardedBuiltinIsReadableStreamLockedCodeLength = 71;
    178178static const JSC::Intrinsic s_guardedBuiltinIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic;
    179179const char* s_guardedBuiltinIsReadableStreamLockedCode =
     
    181181    "{\n" \
    182182    "   \"use strict\";\n" \
     183    "\n" \
    183184    "    return !!stream.@reader;\n" \
    184185    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-GuardedInternalBuiltin-Separate.js-result

    r221417 r227693  
    207207
    208208const JSC::ConstructAbility s_guardedInternalBuiltinIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    209 const int s_guardedInternalBuiltinIsReadableStreamLockedCodeLength = 70;
     209const int s_guardedInternalBuiltinIsReadableStreamLockedCodeLength = 71;
    210210static const JSC::Intrinsic s_guardedInternalBuiltinIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic;
    211211const char* s_guardedInternalBuiltinIsReadableStreamLockedCode =
     
    213213    "{\n" \
    214214    "   \"use strict\";\n" \
     215    "\n" \
    215216    "    return !!stream.@reader;\n" \
    216217    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-UnguardedBuiltin-Separate.js-result

    r221417 r227693  
    169169
    170170const JSC::ConstructAbility s_unguardedBuiltinIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    171 const int s_unguardedBuiltinIsReadableStreamLockedCodeLength = 70;
     171const int s_unguardedBuiltinIsReadableStreamLockedCodeLength = 71;
    172172static const JSC::Intrinsic s_unguardedBuiltinIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic;
    173173const char* s_unguardedBuiltinIsReadableStreamLockedCode =
     
    175175    "{\n" \
    176176    "   \"use strict\";\n" \
     177    "\n" \
    177178    "    return !!stream.@reader;\n" \
    178179    "})\n" \
  • trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-xmlCasingTest-Separate.js-result

    r221417 r227693  
    221221
    222222const JSC::ConstructAbility s_xmlCasingTestXMLCasingTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    223 const int s_xmlCasingTestXMLCasingTestCodeLength = 70;
     223const int s_xmlCasingTestXMLCasingTestCodeLength = 71;
    224224static const JSC::Intrinsic s_xmlCasingTestXMLCasingTestCodeIntrinsic = JSC::NoIntrinsic;
    225225const char* s_xmlCasingTestXMLCasingTestCode =
     
    227227    "{\n" \
    228228    "   \"use strict\";\n" \
     229    "\n" \
    229230    "    return !!stream.@reader;\n" \
    230231    "})\n" \
     
    232233
    233234const JSC::ConstructAbility s_xmlCasingTestCssCasingTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    234 const int s_xmlCasingTestCssCasingTestCodeLength = 401;
     235const int s_xmlCasingTestCssCasingTestCodeLength = 402;
    235236static const JSC::Intrinsic s_xmlCasingTestCssCasingTestCodeIntrinsic = JSC::NoIntrinsic;
    236237const char* s_xmlCasingTestCssCasingTestCode =
     
    238239    "{\n" \
    239240    "    \"use strict\";\n" \
     241    "\n" \
    240242    "    if (stream.@state === @readableStreamClosed)\n" \
    241243    "        return Promise.resolve();\n" \
     
    249251
    250252const JSC::ConstructAbility s_xmlCasingTestUrlCasingTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
    251 const int s_xmlCasingTestUrlCasingTestCodeLength = 337;
     253const int s_xmlCasingTestUrlCasingTestCodeLength = 338;
    252254static const JSC::Intrinsic s_xmlCasingTestUrlCasingTestCodeIntrinsic = JSC::NoIntrinsic;
    253255const char* s_xmlCasingTestUrlCasingTestCode =
     
    255257    "{\n" \
    256258    "    \"use strict\";\n" \
     259    "\n" \
    257260    "    try {\n" \
    258261    "        var method = object[key];\n" \
Note: See TracChangeset for help on using the changeset viewer.