v8/test/mjsunit/es6
Peter Marshall e855e514d1 [builtins] Add a fast path to construct TypedArrays from holey arrays.
For holey Smi and double source arrays, we would go to the general
case, which is much slower than before. We already check that there
are no prototype chain changes in IterableToListCanBeElided, and
there is no JS-code run between that check and the copying of the
elements, so we can safely check for the hole and convert it to
undefined, which is then converted to 0/NaN appropriately for the
given TypedArray.

Bug: chromium:713570,chromium:711275
Change-Id: I5b21c915907d71eebb73b7b1eea8eb58b4a5436d
Reviewed-on: https://chromium-review.googlesource.com/485520
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44899}
2017-04-26 15:36:36 +00:00
..
debug-promises [debug-wrapper] Adapt tests, breakpoint.actual_location 2016-11-21 09:29:17 +00:00
regress [parser] allow patterns within left/right branches of ConditionalExpr 2017-03-22 21:39:29 +00:00
arguments-iterator.js
array-concat-revoked-proxy-1.js [test] copy revoked proxy tests for array-concat to new files 2016-07-25 15:26:16 +00:00
array-concat-revoked-proxy-2.js [test] copy revoked proxy tests for array-concat to new files 2016-07-25 15:26:16 +00:00
array-concat.js [builtins] take slow path in IsConcatSpreadable if proxy in prototype 2016-07-22 18:43:19 +00:00
array-copywithin.js
array-fill.js
array-find.js
array-findindex.js
array-from.js
array-iterator-detached.js [builtins] throw if TypedArray buffer is detached during iteration 2017-01-03 20:12:19 +00:00
array-iterator-turbo.js [test] Fix fullcode and ignition testing variants 2017-03-14 09:59:04 +00:00
array-iterator.js
array-length.js
array-of.js
array-prototype-values.js Make Array.prototype[Symbol.iterator] non-constructible. 2016-07-28 08:19:55 +00:00
array-reverse-order.js
array-species-constructor-accessor.js
array-species-constructor-delete.js
array-species-constructor.js
array-species-delete.js
array-species-modified.js
array-species-neg-zero.js
array-species-parent-constructor.js
array-species-proto.js
array-species.js
array-tostring.js
arraybuffer-species.js
arrow-functions-lexical-arguments.js
arrow-functions-this.js
arrow-functions.js
arrow-rest-params-lazy-parsing.js Remove FLAG_min_preparse_length. 2016-11-18 14:06:49 +00:00
arrow-rest-params.js
block-conflicts-sloppy.js Reland of Add errors for declarations which conflict with catch parameters. (patchset #1 id:1 of https://codereview.chromium.org/2112223002/ ) 2016-07-13 19:29:11 +00:00
block-conflicts.js Reland of Add errors for declarations which conflict with catch parameters. (patchset #1 id:1 of https://codereview.chromium.org/2112223002/ ) 2016-07-13 19:29:11 +00:00
block-const-assign-sloppy.js
block-const-assign.js
block-eval-var-over-let.js Sloppy eval declarations should not shadow lexical function declarations 2016-08-02 20:27:38 +00:00
block-for-sloppy.js
block-for.js
block-leave-sloppy.js
block-leave.js
block-let-contextual-sloppy.js
block-let-crankshaft-sloppy.js [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). 2017-01-26 17:39:09 +00:00
block-let-crankshaft.js [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). 2017-01-26 17:39:09 +00:00
block-let-declaration-sloppy.js
block-let-declaration.js
block-let-semantics-sloppy.js
block-let-semantics.js
block-scope-class.js
block-scoping-sloppy.js [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). 2017-01-26 17:39:09 +00:00
block-scoping-top-level-sloppy.js Remove FLAG_min_preparse_length. 2016-11-18 14:06:49 +00:00
block-scoping-top-level.js Remove FLAG_min_preparse_length. 2016-11-18 14:06:49 +00:00
block-scoping.js [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). 2017-01-26 17:39:09 +00:00
block-sloppy-function.js Move sloppy block function hoisting logic from Parser to Scope. 2016-09-07 08:48:32 +00:00
built-in-accessor-names.js
call-with-spread-modify-array-iterator.js [turbo] Reduce CallWithSpread where iteration is not observable. 2017-02-08 14:17:59 +00:00
call-with-spread-modify-next.js [turbo] Reduce CallWithSpread where iteration is not observable. 2017-02-08 14:17:59 +00:00
call-with-spread.js [turbo] Reduce CallWithSpread where iteration is not observable. 2017-02-08 14:17:59 +00:00
catch-parameter-redeclaration.js Reland of Add errors for declarations which conflict with catch parameters. (patchset #1 id:1 of https://codereview.chromium.org/2112223002/ ) 2016-07-13 19:29:11 +00:00
class-computed-property-names-super.js
class-property-name-eval-arguments.js
classes-derived-return-type.js
classes-experimental.js
classes-lazy-parsing.js Remove FLAG_min_preparse_length. 2016-11-18 14:06:49 +00:00
classes-maps.js
classes-proxy.js
classes-subclass-arrays.js
classes-subclass-builtins.js [regexp] Remove unused code 2016-10-25 07:19:13 +00:00
classes-super.js
classes.js Fix completion value of class declarations. 2017-02-28 19:36:45 +00:00
classof-proxy.js
collection-iterator.js
collections.js
completion.js Fix completion value of class declarations. 2017-02-28 19:36:45 +00:00
computed-property-names-classes.js Install the 'name' property in classes at runtime 2016-12-07 10:35:00 +00:00
computed-property-names-deopt.js
computed-property-names-object-literals-methods.js
computed-property-names-super.js
computed-property-names.js
default-parameters-destructuring.js
default-parameters.js Destructuring/default tests for generators and async functions 2016-08-10 19:32:29 +00:00
destructuring-assignment-lazy.js Remove FLAG_min_preparse_length. 2016-11-18 14:06:49 +00:00
destructuring-assignment.js [parser] don't treat SuperCall as a valid DestructuringAssignmentTarget 2017-04-24 20:54:36 +00:00
destructuring-parameters-literalcount-nolazy.js
destructuring-parameters-literalcount.js
destructuring.js Update tests which are now failing with FLAG_lazy_inner_functions. 2016-11-22 15:46:17 +00:00
empty-for.js
for-each-in-catch.js Reland of Add errors for declarations which conflict with catch parameters. (patchset #1 id:1 of https://codereview.chromium.org/2112223002/ ) 2016-07-13 19:29:11 +00:00
for-of.js
function-length-configurable.js
function-name-configurable.js
function-name.js [parser] Fix bug with non-static name method/property 2016-12-14 12:12:01 +00:00
function-prototype-name.js
generator-destructuring.js Update tests which are now failing with FLAG_lazy_inner_functions. 2016-11-22 15:46:17 +00:00
generator-let-asi.js [parser] allow ASI when "await" or "yield" follows "let" 2017-04-11 16:32:39 +00:00
generators-iteration.js Remove the --ignition-generators flag. 2016-07-25 12:56:27 +00:00
generators-objects.js Remove the --ignition-generators flag. 2016-07-25 12:56:27 +00:00
generators-parsing.js Remove the --ignition-generators flag. 2016-07-25 12:56:27 +00:00
generators-poisoned-properties.js Remove the --ignition-generators flag. 2016-07-25 12:56:27 +00:00
generators-runtime.js Remove the --ignition-generators flag. 2016-07-25 12:56:27 +00:00
generators-states.js Remove the --ignition-generators flag. 2016-07-25 12:56:27 +00:00
global-proto-proxy.js Allow global prototype to be a Proxy 2017-03-23 18:33:38 +00:00
hasinstance-symbol.js
indexed-integer-exotics.js
instanceof-proxies.js
instanceof.js
iteration-semantics.js
iteration-syntax.js
iterator-close.js [parser] Fix bug in for-of desugaring. 2016-07-07 08:16:13 +00:00
iterator-prototype.js
json.js
map-minus-zero.js
math-cbrt.js
math-clz32.js
math-expm1.js
math-fround.js
math-hyperbolic.js
math-hypot.js
math-log1p.js
math-log2-log10.js
math-sign.js
math-trunc.js
math.js
method-name-eval-arguments.js
microtask-delivery.js
new-target.js
numeric-literals.js
object-assign.js
object-literals-method.js
object-literals-property-shorthand.js
object-literals-super.js
object-tostring.js
pattern-brand-check.js
promise-internal-setter.js Remove --promise-extra flag 2016-08-22 21:35:06 +00:00
promise-lookup-getter-setter.js Align __lookupGetter__/__lookupSetter__ behavior with the spec 2016-12-22 19:24:47 +00:00
promise-species.js
promise-thenable-proxy.js [promises] Move PromiseResolveThenableJob to c++ 2016-09-21 03:49:50 +00:00
promises.js [mjsunit] Exit on hitting unreachable code instead of throwing 2017-02-16 14:46:55 +00:00
prototype-ordinary-objects.js
proxies-accesschecks.js
proxies-apply.js
proxies-bind.js
proxies-construct.js
proxies-cross-realm-exception.js
proxies-define-property.js
proxies-delete-property.js
proxies-example-membrane.js
proxies-for.js
proxies-function.js
proxies-get-own-property-descriptor.js
proxies-get-prototype-of.js
proxies-get.js
proxies-global-reference.js
proxies-has-own-property.js
proxies-has.js
proxies-hash.js
proxies-integrity.js
proxies-is-extensible.js
proxies-json.js
proxies-keys.js [keys] Trigger [[getOwnPropertyDescriptor]] trap on proxies for Object.keys 2016-08-01 10:10:52 +00:00
proxies-object-assign.js
proxies-ownkeys.js
proxies-prevent-extensions.js
proxies-property-is-enumerable.js
proxies-prototype-handler-stackoverflow.js
proxies-prototype-target-stackoverflow.js
proxies-revocable.js
proxies-set-prototype-of.js
proxies-set.js
proxies-with-unscopables.js
proxies-with.js
proxies.js
reflect-apply.js
reflect-construct.js Fix TypeError message for Reflect.construct 2017-02-14 11:21:34 +00:00
reflect-define-property.js [runtime] Fully remove RUNTIME_ASSERT for good. 2016-07-13 08:36:04 +00:00
reflect-get-own-property-descriptor.js
reflect-get-prototype-of.js
reflect-own-keys.js
reflect-prevent-extensions.js
reflect-set-prototype-of.js
reflect.js [runtime] Let native setters have a return value. 2016-10-26 09:00:08 +00:00
regexp-constructor.js
regexp-flags.js [regexp] Use consistent map checks for fast paths 2016-10-21 11:58:50 +00:00
regexp-match-lastindex.js
regexp-prototype.js
regexp-replace-lastindex.js
regexp-sticky.js [regexp] Fix matching of regexps that are both sticky and anchored at end. 2016-11-17 13:59:00 +00:00
regexp-tolength.js
regexp-tostring.js
rest-params-lazy-parsing.js
rest-params.js Remove the 'caller' property from the strict-mode arguments map 2016-11-04 14:30:29 +00:00
set-minus-zero.js
sloppy-restrictive-block-function.js Remove always-true --harmony-restrictive-declarations flag 2016-11-04 18:50:41 +00:00
species.js
spread-array.js
spread-call-new-class.js [Turbofan] Implement super calls with spread bytecode in assembly code. 2017-01-18 10:34:24 +00:00
spread-call-new.js
spread-call-super-property.js
spread-call.js [Builtins] Smi-check the spread and go to runtime in CheckSpreadAndPushToStack. 2017-01-25 13:55:58 +00:00
string-codepointat.js
string-endswith.js [builtins] Move StringEndsWith to a C++ builtin. 2016-10-11 11:28:12 +00:00
string-fromcodepoint.js
string-html.js
string-includes.js [builtins] Move StringIncludes to a builtin. 2016-10-10 15:01:32 +00:00
string-iterator.js Reland "[builtins] migrate C++ String Iterator builtins to baseline TurboFan" 2016-09-29 15:49:19 +00:00
string-match.js
string-raw.js
string-repeat.js
string-replace.js
string-search.js
string-split.js
string-startswith.js [runtime] Add PositiveNumberToUint32 helper to avoid double to uint roundtrip 2016-12-19 12:06:58 +00:00
super-with-spread-modify-array-iterator.js [turbofan] Reduce CallConstructWithSpread where iteration is not observable. 2017-01-30 10:29:05 +00:00
super-with-spread-modify-next.js [turbofan] Reduce CallConstructWithSpread where iteration is not observable. 2017-01-30 10:29:05 +00:00
super-with-spread.js [turbofan] Reduce CallConstructWithSpread where iteration is not observable. 2017-01-30 10:29:05 +00:00
super.js Super property loads and stores should throw if [[Prototype]] is null 2016-09-07 17:14:14 +00:00
symbols.js [runtime] Object.create(null) creates a slow object 2016-10-25 08:30:50 +00:00
tail-call-megatest-shard0.js
tail-call-megatest-shard1.js
tail-call-megatest-shard2.js
tail-call-megatest-shard3.js
tail-call-megatest-shard4.js
tail-call-megatest-shard5.js
tail-call-megatest-shard6.js
tail-call-megatest-shard7.js
tail-call-megatest-shard8.js
tail-call-megatest-shard9.js
tail-call-megatest.js [turbofan] Don't take into account source size for inlining heuristics. 2016-09-23 16:23:34 +00:00
tail-call-proxies.js
tail-call-simple.js
tail-call.js [parser] Fix tail calls in for in/of loops 2016-09-19 09:47:56 +00:00
templates.js
throw-type-error-function-restrictions.js
typed-array-iterator.js
typedarray-construct-by-array-like-prototype-element-added.js [builtins] Add a fast path to construct TypedArrays from holey arrays. 2017-04-26 15:36:36 +00:00
typedarray-construct-by-array-like.js [builtins] Add a fast path to construct TypedArrays from holey arrays. 2017-04-26 15:36:36 +00:00
typedarray-construct-by-buffer-ordering.js [builtins] Port TypedArrayConstructByArrayLike to CodeStubAssembler. 2017-03-24 17:40:22 +00:00
typedarray-construct-offset-not-smi.js [builtins] Port TypedArrayConstructByArrayBuffer to CodeStubAssembler. 2017-03-13 14:04:37 +00:00
typedarray-copywithin.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-every.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-fill.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-find.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-findindex.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-foreach.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-from.js
typedarray-indexing.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-iteration.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-neutered.js [turbofan] Don't check for neutered array buffers eagerly. 2016-11-16 10:36:08 +00:00
typedarray-of.js
typedarray-proto.js
typedarray-reduce.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-reverse.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-set-length-internal.js
typedarray-set-length.js
typedarray-slice.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-sort.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray-species.js
typedarray-tostring.js Reland [typedarrays] Check detached buffer at start of typed array methods 2017-04-26 06:10:17 +00:00
typedarray.js [builtins] Port TypedArrayConstructByArrayBuffer to CodeStubAssembler. 2017-03-13 14:04:37 +00:00
unicode-character-ranges.js
unicode-escapes-in-regexps.js
unicode-escapes.js
unicode-regexp-backrefs.js
unicode-regexp-ignore-case-noi18n.js
unicode-regexp-ignore-case.js
unicode-regexp-last-index.js
unicode-regexp-restricted-syntax.js
unicode-regexp-unanchored-advance.js
unicode-regexp-zero-length.js
unscopables.js