v8/test
Tobias Tebbi e87e3b1fa9 [torque] named arguments for constructors
This changes the syntax for constructing structs and classes to explicitly
mention the fieldnames, similar to JavaScript object literals.
The fields still have to be listed in the same order as in the struct/class
declaration.
As in Javascript, {foo: foo} can be abbreviated as {foo}.

Example:

macro NewJSArray(implicit context: Context)(
    map: Map, elements: FixedArrayBase): JSArray {
  return new JSArray{
    map,
    properties_or_hash: kEmptyFixedArray,
    elements,
    length: elements.length
  };
}

Drive-by cleanup: Make struct and class constructors follow the same pattern
                  in the parser and the AST.

Bug: v8:9018 v8:7793
Change-Id: I22ff7f68270e4f406aa80731a709d41ea52f52bb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1551999
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Daniel Clifford <danno@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60622}
2019-04-04 06:26:51 +00:00
..
benchmarks Reland "Preparing v8 to use with python3 /test" 2019-03-20 09:56:06 +00:00
cctest [Intl] Cutting 43K by removing Unibrow when ICU available 2019-04-03 17:58:51 +00:00
common [wasm] Use engine's allocator consistently 2019-04-03 14:33:30 +00:00
debugger Reland "[debug] Mark toLocaleString and TA#join builtins as side-effect free." 2019-04-02 18:47:12 +00:00
fuzzer [wasm] Use engine's allocator consistently 2019-04-03 14:33:30 +00:00
inspector [cleanup] Replace underscore by minus in d8 flags 2019-04-03 12:32:08 +00:00
intl [Intl] Cutting 43K by removing Unibrow when ICU available 2019-04-03 17:58:51 +00:00
js-perf-test [js-perf-test] Add more WeakMap perf tests 2019-03-25 10:47:29 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [parser] Improve parse error message for missing name in FunctionDeclaration 2019-03-20 16:46:29 +00:00
mjsunit [await] Add async iterator tests for await optimization 2019-04-03 17:42:51 +00:00
mkgrokdump Make mkgrokdump depend on the page size 2019-03-18 17:49:48 +00:00
mozilla [torque]: Allow const-qualified struct and class fields 2019-04-03 10:55:33 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 Update test262. 2019-04-03 17:37:41 +00:00
torque [torque] named arguments for constructors 2019-04-04 06:26:51 +00:00
unittests [wasm-hints] Merged Tier Enum 2019-04-03 16:13:21 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm] Update core spec tests 2019-03-28 15:25:12 +00:00
webkit [parser] Improve parse error message for missing name in FunctionDeclaration 2019-03-20 16:46:29 +00:00
BUILD.gn Add target for common test headers 2019-02-12 09:30:01 +00:00
OWNERS Make tmrts an infra OWNER 2019-02-15 09:02:24 +00:00