Changeset 227693 in webkit
- Timestamp:
- Jan 26, 2018, 1:23:31 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r227692 r227693 1 2018-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 1 25 2018-01-26 Mark Lam <mark.lam@apple.com> 2 26 -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Combined.js-result
r221417 r227693 117 117 118 118 const JSC::ConstructAbility s_builtinPromiseRejectPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 119 const int s_builtinPromiseRejectPromiseCodeLength = 41 0;119 const int s_builtinPromiseRejectPromiseCodeLength = 413; 120 120 static const JSC::Intrinsic s_builtinPromiseRejectPromiseCodeIntrinsic = JSC::NoIntrinsic; 121 121 const char* s_builtinPromiseRejectPromiseCode = … … 123 123 "{\n" \ 124 124 " \"use strict\";\n" \ 125 "\n" \ 125 126 " var reactions = promise.@promiseRejectReactions;\n" \ 126 127 " promise.@promiseResult = reason;\n" \ … … 128 129 " promise.@promiseRejectReactions = undefined;\n" \ 129 130 " promise.@promiseState = @promiseRejected;\n" \ 131 "\n" \ 130 132 " @InspectorInstrumentation.promiseRejected(promise, reason, reactions);\n" \ 133 "\n" \ 131 134 " @triggerPromiseReactions(reactions, reason);\n" \ 132 135 "})\n" \ … … 134 137 135 138 const JSC::ConstructAbility s_builtinPromiseFulfillPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 136 const int s_builtinPromiseFulfillPromiseCodeLength = 4 09;139 const int s_builtinPromiseFulfillPromiseCodeLength = 412; 137 140 static const JSC::Intrinsic s_builtinPromiseFulfillPromiseCodeIntrinsic = JSC::NoIntrinsic; 138 141 const char* s_builtinPromiseFulfillPromiseCode = … … 140 143 "{\n" \ 141 144 " \"use strict\";\n" \ 145 "\n" \ 142 146 " var reactions = promise.@promiseFulfillReactions;\n" \ 143 147 " promise.@promiseResult = value;\n" \ … … 145 149 " promise.@promiseRejectReactions = undefined;\n" \ 146 150 " promise.@promiseState = @promiseFulfilled;\n" \ 151 "\n" \ 147 152 " @InspectorInstrumentation.promiseFulfilled(promise, value, reactions);\n" \ 153 "\n" \ 148 154 " @triggerPromiseReactions(reactions, value);\n" \ 149 155 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.Promise-Separate.js-result
r221417 r227693 116 116 117 117 const JSC::ConstructAbility s_builtinPromiseRejectPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 118 const int s_builtinPromiseRejectPromiseCodeLength = 41 0;118 const int s_builtinPromiseRejectPromiseCodeLength = 413; 119 119 static const JSC::Intrinsic s_builtinPromiseRejectPromiseCodeIntrinsic = JSC::NoIntrinsic; 120 120 const char* s_builtinPromiseRejectPromiseCode = … … 122 122 "{\n" \ 123 123 " \"use strict\";\n" \ 124 "\n" \ 124 125 " var reactions = promise.@promiseRejectReactions;\n" \ 125 126 " promise.@promiseResult = reason;\n" \ … … 127 128 " promise.@promiseRejectReactions = undefined;\n" \ 128 129 " promise.@promiseState = @promiseRejected;\n" \ 130 "\n" \ 129 131 " @InspectorInstrumentation.promiseRejected(promise, reason, reactions);\n" \ 132 "\n" \ 130 133 " @triggerPromiseReactions(reactions, reason);\n" \ 131 134 "})\n" \ … … 133 136 134 137 const JSC::ConstructAbility s_builtinPromiseFulfillPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 135 const int s_builtinPromiseFulfillPromiseCodeLength = 4 09;138 const int s_builtinPromiseFulfillPromiseCodeLength = 412; 136 139 static const JSC::Intrinsic s_builtinPromiseFulfillPromiseCodeIntrinsic = JSC::NoIntrinsic; 137 140 const char* s_builtinPromiseFulfillPromiseCode = … … 139 142 "{\n" \ 140 143 " \"use strict\";\n" \ 144 "\n" \ 141 145 " var reactions = promise.@promiseFulfillReactions;\n" \ 142 146 " promise.@promiseResult = value;\n" \ … … 144 148 " promise.@promiseRejectReactions = undefined;\n" \ 145 149 " promise.@promiseState = @promiseFulfilled;\n" \ 150 "\n" \ 146 151 " @InspectorInstrumentation.promiseFulfilled(promise, value, reactions);\n" \ 152 "\n" \ 147 153 " @triggerPromiseReactions(reactions, value);\n" \ 148 154 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Combined.js-result
r221417 r227693 129 129 130 130 const JSC::ConstructAbility s_builtinPrototypeEveryCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 131 const int s_builtinPrototypeEveryCodeLength = 76 0;131 const int s_builtinPrototypeEveryCodeLength = 762; 132 132 static const JSC::Intrinsic s_builtinPrototypeEveryCodeIntrinsic = JSC::NoIntrinsic; 133 133 const char* s_builtinPrototypeEveryCode = … … 135 135 "{\n" \ 136 136 " \"use strict\";\n" \ 137 "\n" \ 137 138 " if (this === null)\n" \ 138 139 " throw new @TypeError(\"Array.prototype.every requires that |this| not be null\");\n" \ … … 143 144 " var array = @Object(this);\n" \ 144 145 " var length = @toLength(array.length);\n" \ 146 "\n" \ 145 147 " if (typeof callback !== \"function\")\n" \ 146 148 " throw new @TypeError(\"Array.prototype.every callback must be a function\");\n" \ … … 160 162 161 163 const JSC::ConstructAbility s_builtinPrototypeForEachCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 162 const int s_builtinPrototypeForEachCodeLength = 69 2;164 const int s_builtinPrototypeForEachCodeLength = 694; 163 165 static const JSC::Intrinsic s_builtinPrototypeForEachCodeIntrinsic = JSC::NoIntrinsic; 164 166 const char* s_builtinPrototypeForEachCode = … … 166 168 "{\n" \ 167 169 " \"use strict\";\n" \ 170 "\n" \ 168 171 " if (this === null)\n" \ 169 172 " throw new @TypeError(\"Array.prototype.forEach requires that |this| not be null\");\n" \ … … 174 177 " var array = @Object(this);\n" \ 175 178 " var length = @toLength(array.length);\n" \ 179 "\n" \ 176 180 " if (typeof callback !== \"function\")\n" \ 177 181 " throw new @TypeError(\"Array.prototype.forEach callback must be a function\");\n" \ … … 187 191 188 192 const JSC::ConstructAbility s_builtinPrototypeMatchCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 189 const int s_builtinPrototypeMatchCodeLength = 1 198;193 const int s_builtinPrototypeMatchCodeLength = 1238; 190 194 static const JSC::Intrinsic s_builtinPrototypeMatchCodeIntrinsic = JSC::NoIntrinsic; 191 195 const char* s_builtinPrototypeMatchCode = … … 193 197 "{\n" \ 194 198 " \"use strict\";\n" \ 199 "\n" \ 195 200 " if (!@isObject(this))\n" \ 196 201 " @throwTypeError(\"RegExp.prototype.@@match requires that |this| be an Object\");\n" \ 202 "\n" \ 197 203 " let regexp = this;\n" \ 204 "\n" \ 205 " //\n" \ 198 206 " if (!@hasObservableSideEffectsForRegExpMatch(regexp))\n" \ 199 207 " return @regExpMatchFast.@call(regexp, strArg);\n" \ 208 "\n" \ 200 209 " let str = @toString(strArg);\n" \ 210 "\n" \ 201 211 " if (!regexp.global)\n" \ 202 212 " return @regExpExec(regexp, str);\n" \ … … 205 215 " regexp.lastIndex = 0;\n" \ 206 216 " let resultList = [];\n" \ 217 "\n" \ 218 " //\n" \ 219 " //\n" \ 220 " //\n" \ 207 221 " const maximumReasonableMatchSize = 100000000;\n" \ 222 "\n" \ 208 223 " while (true) {\n" \ 209 224 " let result = @regExpExec(regexp, str);\n" \ … … 214 229 " return resultList;\n" \ 215 230 " }\n" \ 231 "\n" \ 216 232 " if (resultList.length > maximumReasonableMatchSize)\n" \ 217 233 " @throwOutOfMemoryError();\n" \ 234 "\n" \ 218 235 " if (!@isObject(result))\n" \ 219 236 " @throwTypeError(\"RegExp.prototype.@@match call to RegExp.exec didn't return null or an object\");\n" \ 237 "\n" \ 220 238 " let resultString = @toString(result[0]);\n" \ 239 "\n" \ 221 240 " if (!resultString.length)\n" \ 222 241 " regexp.lastIndex = @advanceStringIndex(str, regexp.lastIndex, unicode);\n" \ 242 "\n" \ 223 243 " resultList.@push(resultString);\n" \ 224 244 " }\n" \ … … 227 247 228 248 const JSC::ConstructAbility s_builtinPrototypeTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 229 const int s_builtinPrototypeTestCodeLength = 456;249 const int s_builtinPrototypeTestCodeLength = 504; 230 250 static const JSC::Intrinsic s_builtinPrototypeTestCodeIntrinsic = JSC::RegExpTestIntrinsic; 231 251 const char* s_builtinPrototypeTestCode = … … 233 253 "{\n" \ 234 254 " \"use strict\";\n" \ 255 "\n" \ 235 256 " let regexp = this;\n" \ 257 "\n" \ 258 " //\n" \ 236 259 " if (@isRegExpObject(regexp) && @tryGetById(regexp, \"exec\") === @regExpBuiltinExec)\n" \ 237 260 " return @regExpTestFast.@call(regexp, strArg);\n" \ 261 "\n" \ 262 " //\n" \ 263 " //\n" \ 238 264 " if (!@isObject(regexp))\n" \ 239 265 " @throwTypeError(\"RegExp.prototype.test requires that |this| be an Object\");\n" \ 266 "\n" \ 267 " //\n" \ 240 268 " let str = @toString(strArg);\n" \ 269 "\n" \ 270 " //\n" \ 241 271 " let match = @regExpExec(regexp, str);\n" \ 272 "\n" \ 273 " //\n" \ 242 274 " if (match !== null)\n" \ 243 275 " return true;\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-Builtin.prototype-Separate.js-result
r221417 r227693 130 130 131 131 const JSC::ConstructAbility s_builtinPrototypeEveryCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 132 const int s_builtinPrototypeEveryCodeLength = 76 0;132 const int s_builtinPrototypeEveryCodeLength = 762; 133 133 static const JSC::Intrinsic s_builtinPrototypeEveryCodeIntrinsic = JSC::NoIntrinsic; 134 134 const char* s_builtinPrototypeEveryCode = … … 136 136 "{\n" \ 137 137 " \"use strict\";\n" \ 138 "\n" \ 138 139 " if (this === null)\n" \ 139 140 " throw new @TypeError(\"Array.prototype.every requires that |this| not be null\");\n" \ … … 144 145 " var array = @Object(this);\n" \ 145 146 " var length = @toLength(array.length);\n" \ 147 "\n" \ 146 148 " if (typeof callback !== \"function\")\n" \ 147 149 " throw new @TypeError(\"Array.prototype.every callback must be a function\");\n" \ … … 161 163 162 164 const JSC::ConstructAbility s_builtinPrototypeForEachCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 163 const int s_builtinPrototypeForEachCodeLength = 69 2;165 const int s_builtinPrototypeForEachCodeLength = 694; 164 166 static const JSC::Intrinsic s_builtinPrototypeForEachCodeIntrinsic = JSC::NoIntrinsic; 165 167 const char* s_builtinPrototypeForEachCode = … … 167 169 "{\n" \ 168 170 " \"use strict\";\n" \ 171 "\n" \ 169 172 " if (this === null)\n" \ 170 173 " throw new @TypeError(\"Array.prototype.forEach requires that |this| not be null\");\n" \ … … 175 178 " var array = @Object(this);\n" \ 176 179 " var length = @toLength(array.length);\n" \ 180 "\n" \ 177 181 " if (typeof callback !== \"function\")\n" \ 178 182 " throw new @TypeError(\"Array.prototype.forEach callback must be a function\");\n" \ … … 188 192 189 193 const JSC::ConstructAbility s_builtinPrototypeMatchCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 190 const int s_builtinPrototypeMatchCodeLength = 1 198;194 const int s_builtinPrototypeMatchCodeLength = 1238; 191 195 static const JSC::Intrinsic s_builtinPrototypeMatchCodeIntrinsic = JSC::NoIntrinsic; 192 196 const char* s_builtinPrototypeMatchCode = … … 194 198 "{\n" \ 195 199 " \"use strict\";\n" \ 200 "\n" \ 196 201 " if (!@isObject(this))\n" \ 197 202 " @throwTypeError(\"RegExp.prototype.@@match requires that |this| be an Object\");\n" \ 203 "\n" \ 198 204 " let regexp = this;\n" \ 205 "\n" \ 206 " //\n" \ 199 207 " if (!@hasObservableSideEffectsForRegExpMatch(regexp))\n" \ 200 208 " return @regExpMatchFast.@call(regexp, strArg);\n" \ 209 "\n" \ 201 210 " let str = @toString(strArg);\n" \ 211 "\n" \ 202 212 " if (!regexp.global)\n" \ 203 213 " return @regExpExec(regexp, str);\n" \ … … 206 216 " regexp.lastIndex = 0;\n" \ 207 217 " let resultList = [];\n" \ 218 "\n" \ 219 " //\n" \ 220 " //\n" \ 221 " //\n" \ 208 222 " const maximumReasonableMatchSize = 100000000;\n" \ 223 "\n" \ 209 224 " while (true) {\n" \ 210 225 " let result = @regExpExec(regexp, str);\n" \ … … 215 230 " return resultList;\n" \ 216 231 " }\n" \ 232 "\n" \ 217 233 " if (resultList.length > maximumReasonableMatchSize)\n" \ 218 234 " @throwOutOfMemoryError();\n" \ 235 "\n" \ 219 236 " if (!@isObject(result))\n" \ 220 237 " @throwTypeError(\"RegExp.prototype.@@match call to RegExp.exec didn't return null or an object\");\n" \ 238 "\n" \ 221 239 " let resultString = @toString(result[0]);\n" \ 240 "\n" \ 222 241 " if (!resultString.length)\n" \ 223 242 " regexp.lastIndex = @advanceStringIndex(str, regexp.lastIndex, unicode);\n" \ 243 "\n" \ 224 244 " resultList.@push(resultString);\n" \ 225 245 " }\n" \ … … 228 248 229 249 const JSC::ConstructAbility s_builtinPrototypeTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 230 const int s_builtinPrototypeTestCodeLength = 456;250 const int s_builtinPrototypeTestCodeLength = 504; 231 251 static const JSC::Intrinsic s_builtinPrototypeTestCodeIntrinsic = JSC::RegExpTestIntrinsic; 232 252 const char* s_builtinPrototypeTestCode = … … 234 254 "{\n" \ 235 255 " \"use strict\";\n" \ 256 "\n" \ 236 257 " let regexp = this;\n" \ 258 "\n" \ 259 " //\n" \ 237 260 " if (@isRegExpObject(regexp) && @tryGetById(regexp, \"exec\") === @regExpBuiltinExec)\n" \ 238 261 " return @regExpTestFast.@call(regexp, strArg);\n" \ 262 "\n" \ 263 " //\n" \ 264 " //\n" \ 239 265 " if (!@isObject(regexp))\n" \ 240 266 " @throwTypeError(\"RegExp.prototype.test requires that |this| be an Object\");\n" \ 267 "\n" \ 268 " //\n" \ 241 269 " let str = @toString(strArg);\n" \ 270 "\n" \ 271 " //\n" \ 242 272 " let match = @regExpExec(regexp, str);\n" \ 273 "\n" \ 274 " //\n" \ 243 275 " if (match !== null)\n" \ 244 276 " return true;\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Combined.js-result
r221417 r227693 115 115 116 116 const JSC::ConstructAbility s_builtinConstructorOfCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 117 const int s_builtinConstructorOfCodeLength = 2 86;117 const int s_builtinConstructorOfCodeLength = 294; 118 118 static const JSC::Intrinsic s_builtinConstructorOfCodeIntrinsic = JSC::NoIntrinsic; 119 119 const char* s_builtinConstructorOfCode = … … 121 121 "{\n" \ 122 122 " \"use strict\";\n" \ 123 "\n" \ 123 124 " var length = arguments.length;\n" \ 125 " //\n" \ 124 126 " var array = typeof this === 'function' ? new this(length) : new @Array(length);\n" \ 125 127 " for (var k = 0; k < length; ++k)\n" \ … … 131 133 132 134 const JSC::ConstructAbility s_builtinConstructorFromCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 133 const int s_builtinConstructorFromCodeLength = 1979;135 const int s_builtinConstructorFromCodeLength = 2046; 134 136 static const JSC::Intrinsic s_builtinConstructorFromCodeIntrinsic = JSC::NoIntrinsic; 135 137 const char* s_builtinConstructorFromCode = … … 137 139 "{\n" \ 138 140 " \"use strict\";\n" \ 141 "\n" \ 139 142 " var thisObj = this;\n" \ 143 "\n" \ 140 144 " var mapFn = arguments.length > 1 ? arguments[1] : undefined;\n" \ 145 "\n" \ 141 146 " var thisArg;\n" \ 147 "\n" \ 142 148 " if (mapFn !== undefined) {\n" \ 143 149 " if (typeof mapFn !== \"function\")\n" \ 144 150 " throw new @TypeError(\"Array.from requires that the second argument, when provided, be a function\");\n" \ 151 "\n" \ 145 152 " if (arguments.length > 2)\n" \ 146 153 " thisArg = arguments[2];\n" \ 147 154 " }\n" \ 155 "\n" \ 148 156 " if (items == null)\n" \ 149 157 " throw new @TypeError(\"Array.from requires an array-like object - not null or undefined\");\n" \ 158 "\n" \ 150 159 " var iteratorMethod = items[@symbolIterator];\n" \ 151 160 " if (iteratorMethod != null) {\n" \ 152 161 " if (typeof iteratorMethod !== \"function\")\n" \ 153 162 " 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" \ 154 165 " var result = (typeof thisObj === \"function\") ? @Object(new thisObj()) : [];\n" \ 166 "\n" \ 155 167 " var k = 0;\n" \ 156 168 " var iterator = iteratorMethod.@call(items);\n" \ 169 "\n" \ 170 " //\n" \ 171 " //\n" \ 172 " //\n" \ 157 173 " var wrapper = {\n" \ 158 174 " [@symbolIterator]() {\n" \ … … 160 176 " }\n" \ 161 177 " };\n" \ 178 "\n" \ 162 179 " for (var value of wrapper) {\n" \ 163 180 " if (mapFn)\n" \ … … 167 184 " k += 1;\n" \ 168 185 " }\n" \ 186 "\n" \ 169 187 " result.length = k;\n" \ 170 188 " return result;\n" \ 171 189 " }\n" \ 190 "\n" \ 172 191 " var arrayLike = @Object(items);\n" \ 173 192 " var arrayLikeLength = @toLength(arrayLike.length);\n" \ 193 "\n" \ 194 " //\n" \ 174 195 " var result = (typeof thisObj === \"function\") ? @Object(new thisObj(arrayLikeLength)) : new @Array(arrayLikeLength);\n" \ 196 "\n" \ 175 197 " var k = 0;\n" \ 176 198 " while (k < arrayLikeLength) {\n" \ … … 182 204 " k += 1;\n" \ 183 205 " }\n" \ 206 "\n" \ 184 207 " result.length = arrayLikeLength;\n" \ 185 208 " return result;\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-BuiltinConstructor-Separate.js-result
r221417 r227693 114 114 115 115 const JSC::ConstructAbility s_builtinConstructorOfCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 116 const int s_builtinConstructorOfCodeLength = 2 86;116 const int s_builtinConstructorOfCodeLength = 294; 117 117 static const JSC::Intrinsic s_builtinConstructorOfCodeIntrinsic = JSC::NoIntrinsic; 118 118 const char* s_builtinConstructorOfCode = … … 120 120 "{\n" \ 121 121 " \"use strict\";\n" \ 122 "\n" \ 122 123 " var length = arguments.length;\n" \ 124 " //\n" \ 123 125 " var array = typeof this === 'function' ? new this(length) : new @Array(length);\n" \ 124 126 " for (var k = 0; k < length; ++k)\n" \ … … 130 132 131 133 const JSC::ConstructAbility s_builtinConstructorFromCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 132 const int s_builtinConstructorFromCodeLength = 1979;134 const int s_builtinConstructorFromCodeLength = 2046; 133 135 static const JSC::Intrinsic s_builtinConstructorFromCodeIntrinsic = JSC::NoIntrinsic; 134 136 const char* s_builtinConstructorFromCode = … … 136 138 "{\n" \ 137 139 " \"use strict\";\n" \ 140 "\n" \ 138 141 " var thisObj = this;\n" \ 142 "\n" \ 139 143 " var mapFn = arguments.length > 1 ? arguments[1] : undefined;\n" \ 144 "\n" \ 140 145 " var thisArg;\n" \ 146 "\n" \ 141 147 " if (mapFn !== undefined) {\n" \ 142 148 " if (typeof mapFn !== \"function\")\n" \ 143 149 " throw new @TypeError(\"Array.from requires that the second argument, when provided, be a function\");\n" \ 150 "\n" \ 144 151 " if (arguments.length > 2)\n" \ 145 152 " thisArg = arguments[2];\n" \ 146 153 " }\n" \ 154 "\n" \ 147 155 " if (items == null)\n" \ 148 156 " throw new @TypeError(\"Array.from requires an array-like object - not null or undefined\");\n" \ 157 "\n" \ 149 158 " var iteratorMethod = items[@symbolIterator];\n" \ 150 159 " if (iteratorMethod != null) {\n" \ 151 160 " if (typeof iteratorMethod !== \"function\")\n" \ 152 161 " 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" \ 153 164 " var result = (typeof thisObj === \"function\") ? @Object(new thisObj()) : [];\n" \ 165 "\n" \ 154 166 " var k = 0;\n" \ 155 167 " var iterator = iteratorMethod.@call(items);\n" \ 168 "\n" \ 169 " //\n" \ 170 " //\n" \ 171 " //\n" \ 156 172 " var wrapper = {\n" \ 157 173 " [@symbolIterator]() {\n" \ … … 159 175 " }\n" \ 160 176 " };\n" \ 177 "\n" \ 161 178 " for (var value of wrapper) {\n" \ 162 179 " if (mapFn)\n" \ … … 166 183 " k += 1;\n" \ 167 184 " }\n" \ 185 "\n" \ 168 186 " result.length = k;\n" \ 169 187 " return result;\n" \ 170 188 " }\n" \ 189 "\n" \ 171 190 " var arrayLike = @Object(items);\n" \ 172 191 " var arrayLikeLength = @toLength(arrayLike.length);\n" \ 192 "\n" \ 193 " //\n" \ 173 194 " var result = (typeof thisObj === \"function\") ? @Object(new thisObj(arrayLikeLength)) : new @Array(arrayLikeLength);\n" \ 195 "\n" \ 174 196 " var k = 0;\n" \ 175 197 " while (k < arrayLikeLength) {\n" \ … … 181 203 " k += 1;\n" \ 182 204 " }\n" \ 205 "\n" \ 183 206 " result.length = arrayLikeLength;\n" \ 184 207 " return result;\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/JavaScriptCore-InternalClashingNames-Combined.js-result
r221417 r227693 116 116 117 117 const JSC::ConstructAbility s_internalClashingNamesIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 118 const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 7 0;118 const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 71; 119 119 static const JSC::Intrinsic s_internalClashingNamesIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic; 120 120 const char* s_internalClashingNamesIsReadableStreamLockedCode = … … 122 122 "{\n" \ 123 123 " \"use strict\";\n" \ 124 "\n" \ 124 125 " return !!stream.@reader;\n" \ 125 126 "})\n" \ … … 127 128 128 129 const JSC::ConstructAbility s_internalClashingNamesIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 129 const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 7 0;130 const int s_internalClashingNamesIsReadableStreamLockedCodeLength = 71; 130 131 static const JSC::Intrinsic s_internalClashingNamesIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic; 131 132 const char* s_internalClashingNamesIsReadableStreamLockedCode = … … 133 134 "{\n" \ 134 135 " \"use strict\";\n" \ 136 "\n" \ 135 137 " return !!stream.@reader;\n" \ 136 138 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-AnotherGuardedInternalBuiltin-Separate.js-result
r221417 r227693 205 205 206 206 const JSC::ConstructAbility s_anotherGuardedInternalBuiltinLetsFetchCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 207 const int s_anotherGuardedInternalBuiltinLetsFetchCodeLength = 8 2;207 const int s_anotherGuardedInternalBuiltinLetsFetchCodeLength = 83; 208 208 static const JSC::Intrinsic s_anotherGuardedInternalBuiltinLetsFetchCodeIntrinsic = JSC::NoIntrinsic; 209 209 const char* s_anotherGuardedInternalBuiltinLetsFetchCode = … … 211 211 "{\n" \ 212 212 " \"use strict\";\n" \ 213 "\n" \ 213 214 " return @fetchRequest(new @Request(\"yes\"));\n" \ 214 215 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-ArbitraryConditionalGuard-Separate.js-result
r221417 r227693 175 175 176 176 const JSC::ConstructAbility s_arbitraryConditionalGuardIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 177 const int s_arbitraryConditionalGuardIsReadableStreamLockedCodeLength = 7 0;177 const int s_arbitraryConditionalGuardIsReadableStreamLockedCodeLength = 71; 178 178 static const JSC::Intrinsic s_arbitraryConditionalGuardIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic; 179 179 const char* s_arbitraryConditionalGuardIsReadableStreamLockedCode = … … 181 181 "{\n" \ 182 182 " \"use strict\";\n" \ 183 "\n" \ 183 184 " return !!stream.@reader;\n" \ 184 185 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-GuardedBuiltin-Separate.js-result
r221417 r227693 175 175 176 176 const JSC::ConstructAbility s_guardedBuiltinIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 177 const int s_guardedBuiltinIsReadableStreamLockedCodeLength = 7 0;177 const int s_guardedBuiltinIsReadableStreamLockedCodeLength = 71; 178 178 static const JSC::Intrinsic s_guardedBuiltinIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic; 179 179 const char* s_guardedBuiltinIsReadableStreamLockedCode = … … 181 181 "{\n" \ 182 182 " \"use strict\";\n" \ 183 "\n" \ 183 184 " return !!stream.@reader;\n" \ 184 185 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-GuardedInternalBuiltin-Separate.js-result
r221417 r227693 207 207 208 208 const JSC::ConstructAbility s_guardedInternalBuiltinIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 209 const int s_guardedInternalBuiltinIsReadableStreamLockedCodeLength = 7 0;209 const int s_guardedInternalBuiltinIsReadableStreamLockedCodeLength = 71; 210 210 static const JSC::Intrinsic s_guardedInternalBuiltinIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic; 211 211 const char* s_guardedInternalBuiltinIsReadableStreamLockedCode = … … 213 213 "{\n" \ 214 214 " \"use strict\";\n" \ 215 "\n" \ 215 216 " return !!stream.@reader;\n" \ 216 217 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-UnguardedBuiltin-Separate.js-result
r221417 r227693 169 169 170 170 const JSC::ConstructAbility s_unguardedBuiltinIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 171 const int s_unguardedBuiltinIsReadableStreamLockedCodeLength = 7 0;171 const int s_unguardedBuiltinIsReadableStreamLockedCodeLength = 71; 172 172 static const JSC::Intrinsic s_unguardedBuiltinIsReadableStreamLockedCodeIntrinsic = JSC::NoIntrinsic; 173 173 const char* s_unguardedBuiltinIsReadableStreamLockedCode = … … 175 175 "{\n" \ 176 176 " \"use strict\";\n" \ 177 "\n" \ 177 178 " return !!stream.@reader;\n" \ 178 179 "})\n" \ -
trunk/Source/JavaScriptCore/Scripts/tests/builtins/expected/WebCore-xmlCasingTest-Separate.js-result
r221417 r227693 221 221 222 222 const JSC::ConstructAbility s_xmlCasingTestXMLCasingTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 223 const int s_xmlCasingTestXMLCasingTestCodeLength = 7 0;223 const int s_xmlCasingTestXMLCasingTestCodeLength = 71; 224 224 static const JSC::Intrinsic s_xmlCasingTestXMLCasingTestCodeIntrinsic = JSC::NoIntrinsic; 225 225 const char* s_xmlCasingTestXMLCasingTestCode = … … 227 227 "{\n" \ 228 228 " \"use strict\";\n" \ 229 "\n" \ 229 230 " return !!stream.@reader;\n" \ 230 231 "})\n" \ … … 232 233 233 234 const JSC::ConstructAbility s_xmlCasingTestCssCasingTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 234 const int s_xmlCasingTestCssCasingTestCodeLength = 40 1;235 const int s_xmlCasingTestCssCasingTestCodeLength = 402; 235 236 static const JSC::Intrinsic s_xmlCasingTestCssCasingTestCodeIntrinsic = JSC::NoIntrinsic; 236 237 const char* s_xmlCasingTestCssCasingTestCode = … … 238 239 "{\n" \ 239 240 " \"use strict\";\n" \ 241 "\n" \ 240 242 " if (stream.@state === @readableStreamClosed)\n" \ 241 243 " return Promise.resolve();\n" \ … … 249 251 250 252 const JSC::ConstructAbility s_xmlCasingTestUrlCasingTestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; 251 const int s_xmlCasingTestUrlCasingTestCodeLength = 33 7;253 const int s_xmlCasingTestUrlCasingTestCodeLength = 338; 252 254 static const JSC::Intrinsic s_xmlCasingTestUrlCasingTestCodeIntrinsic = JSC::NoIntrinsic; 253 255 const char* s_xmlCasingTestUrlCasingTestCode = … … 255 257 "{\n" \ 256 258 " \"use strict\";\n" \ 259 "\n" \ 257 260 " try {\n" \ 258 261 " var method = object[key];\n" \
Note:
See TracChangeset
for help on using the changeset viewer.