v8/src/builtins
Gus Caplan eec10a2fd8 [promisehook] Add before/after hooks to thenable tasks
This will allow Node.js to properly track async context in thenables.

Change-Id: If441423789a78307a57ad7e645daabf551cddb57
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2215624
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Sathya Gunasekaran  <gsathya@chromium.org>
Commit-Queue: Gus Caplan <me@gus.host>
Cr-Commit-Position: refs/heads/master@{#68207}
2020-06-05 12:51:56 +00:00
..
arm [builtins][arm] Reverse JS arguments for arm 2020-04-28 15:05:02 +00:00
arm64 [builtins][arm64] Reverse JS arguments for arm64 2020-05-04 08:21:49 +00:00
ia32 [builtins][ia32] Reverse JS arguments for ia32 2020-04-28 14:56:42 +00:00
mips [mips][interpreter] Make IterationBody StackChecks implicit within JumpLoop 2020-04-01 12:02:04 +00:00
mips64 [mips][interpreter] Make IterationBody StackChecks implicit within JumpLoop 2020-04-01 12:02:04 +00:00
ppc [ptr-compr][ppc] Implement pointer compression 2020-05-06 19:06:32 +00:00
s390 [ptr-compr] Enable pointer compression on s390x 2020-03-31 17:06:17 +00:00
x64 [sandbox][x64] Access external pointer in Foreign via bottlenecks 2020-04-30 08:04:24 +00:00
accessors.cc Fix ArrayLengthSetter for suddenly frozen elements 2020-01-29 10:52:52 +00:00
accessors.h [cleanup] Split out bit-field.h and bounds.h from utils/utils.h 2019-11-15 13:00:08 +00:00
aggregate-error.tq [Promise.any] Make 'errors' non-enumerable 2020-06-04 07:58:24 +00:00
array-copywithin.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-every.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-filter.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-find.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-findindex.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-foreach.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-from.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-isarray.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-join.tq [torque] Clean up some namespacing in conversions.tq 2020-05-27 14:29:12 +00:00
array-lastindexof.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-map.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-of.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-reduce-right.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-reduce.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-reverse.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-shift.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-slice.tq Port SloppyArgumentsElements to Torque 2020-05-25 10:50:03 +00:00
array-some.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-splice.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array-unshift.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
array.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
base.tq [Promise.any] Make 'errors' non-enumerable 2020-06-04 07:58:24 +00:00
bigint.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
boolean.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
builtins-api.cc [runtime] Reverse JS arguments: fix tests and builtin arguments 2020-03-20 13:07:11 +00:00
builtins-array-gen.cc [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
builtins-array-gen.h [CSA][cleanup] Turn {} allocation sites into base::nullopt 2020-05-18 09:22:39 +00:00
builtins-array.cc [builtins] Fix handling of read-only length in Array.prototype.pop 2020-05-06 14:14:47 +00:00
builtins-arraybuffer.cc Refactor construction of [Shared]ArrayBuffers. 2019-10-11 13:04:45 +00:00
builtins-async-function-gen.cc Move helper SFIs from NativeContext to Isolate, part 1 2020-05-06 09:49:49 +00:00
builtins-async-gen.cc Move helper SFIs from NativeContext to Isolate, part 2 2020-05-07 07:05:19 +00:00
builtins-async-gen.h Move helper SFIs from NativeContext to Isolate, part 1 2020-05-06 09:49:49 +00:00
builtins-async-generator-gen.cc Move helper SFIs from NativeContext to Isolate, part 1 2020-05-06 09:49:49 +00:00
builtins-async-iterator-gen.cc [csa] Make more use of CodeStubAssembler::Call 2020-02-19 13:21:24 +00:00
builtins-async-module.cc Reland "[top-level-await] Implement top-level-await in V8" 2019-09-16 15:29:17 +00:00
builtins-bigint-gen.cc [turbofan] Remove unsafe {CodeAssembler::ReturnRaw}. 2019-11-28 09:39:52 +00:00
builtins-bigint-gen.h Port BigInt addition to Torque 2019-06-07 10:49:38 +00:00
builtins-bigint.cc [Intl] Clean up by removing the following flags 2019-09-12 22:25:41 +00:00
builtins-call-gen.cc [torque] Improve field types in template.tq 2020-05-28 15:55:36 +00:00
builtins-call-gen.h [cleanup] Add base::Optional to new_target in CallOrConstruct* 2020-02-14 15:18:29 +00:00
builtins-call.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
builtins-callsite.cc [runtime] Return undefined as CallSite::getFunction for scripts 2020-05-11 13:06:11 +00:00
builtins-collections-gen.cc [csa][cleanup] Remove ParameterMode from UnsafeLoadFixedArrayElement 2020-05-27 12:14:42 +00:00
builtins-collections-gen.h [csa] move TNode to separate header 2019-09-12 14:48:03 +00:00
builtins-collections.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
builtins-console.cc [cleanup] Eliminate non-const references in src/builtins 2019-09-17 14:03:40 +00:00
builtins-constructor-gen.cc [nci] Add remaining Call and Construct builtins with feedback 2020-05-19 09:33:04 +00:00
builtins-constructor-gen.h [ptr-compr][csa] Use TaggedIndex nodes in IC builtins 2020-03-04 15:45:32 +00:00
builtins-constructor.h Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
builtins-conversion-gen.cc [torque] Port builtins-conversion-gen to Torque 2020-05-19 15:26:30 +00:00
builtins-data-view-gen.h [torque] check TNode return types of CSA macros 2019-06-19 15:50:11 +00:00
builtins-dataview.cc [sandbox] Access external pointer in JSDataView via bottlenecks 2020-05-08 08:06:09 +00:00
builtins-date-gen.cc [torque] Port builtins-conversion-gen to Torque 2020-05-19 15:26:30 +00:00
builtins-date.cc [Intl] Fix error message to report the right method. 2019-09-12 19:32:31 +00:00
builtins-debug-gen.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
builtins-definitions.h [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
builtins-descriptors.h [compiler] Add StackOrder to CallInterfaceDescriptor 2020-05-26 14:43:28 +00:00
builtins-error.cc [Promise.any] Add AggregateError 2020-04-20 10:32:27 +00:00
builtins-function.cc Make CreateDynamicFunction switch context before throwing 2020-03-31 08:07:56 +00:00
builtins-generator-gen.cc [compiler] Remove error-prone GotoIfException 2020-02-18 11:45:08 +00:00
builtins-global-gen.cc [cleanup] TNodify builtins-global-gen.cc 2019-10-25 17:13:50 +00:00
builtins-global.cc Allow embedder to block or modify eval arguments. 2019-06-14 14:10:28 +00:00
builtins-handler-gen.cc Port SloppyArgumentsElements to Torque 2020-05-25 10:50:03 +00:00
builtins-ic-gen.cc [ic] Adds a builtin to handle LdaGlobal when there is no feedback 2019-10-31 10:08:37 +00:00
builtins-internal-gen.cc [builtin] Adapt NewArgumentsElements with new arguments stack order 2020-05-27 13:52:36 +00:00
builtins-internal.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
builtins-interpreter-gen.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
builtins-intl-gen.cc [csa] Remove ParameterMode from CSA::AllocateJSArray 2019-11-15 02:13:58 +00:00
builtins-intl.cc [intl] correct Locale (min|max)imize 2020-05-04 18:36:11 +00:00
builtins-iterator-gen.cc Suppress GetMethod errors in IteratorClose 2020-05-07 20:12:56 +00:00
builtins-iterator-gen.h Suppress GetMethod errors in IteratorClose 2020-05-07 20:12:56 +00:00
builtins-json.cc [json] Strings can lie to us about representation, so check what's underneath 2019-05-27 10:56:44 +00:00
builtins-lazy-gen.cc [csa] Add TaggedEqual for comparing tagged values 2019-08-23 14:31:11 +00:00
builtins-lazy-gen.h [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
builtins-microtask-queue-gen.cc [promisehook] Add before/after hooks to thenable tasks 2020-06-05 12:51:56 +00:00
builtins-number-gen.cc [torque] Finish porting builtins-number-gen to Torque 2020-05-27 22:23:18 +00:00
builtins-number.cc [builtins] Port Number.prototype.toString to Torque 2019-11-05 11:00:26 +00:00
builtins-object-gen.cc [CSA][cleanup] Turn {} allocation sites into base::nullopt 2020-05-18 09:22:39 +00:00
builtins-object-gen.h Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
builtins-object.cc [lookup] Refactor LookupIterator "property or element" creation 2020-01-09 18:39:11 +00:00
builtins-promise-gen.cc [torque] make map field const 2020-03-18 10:51:39 +00:00
builtins-promise-gen.h [torque] make map field const 2020-03-18 10:51:39 +00:00
builtins-promise.h [Promise.all] Use FixedArray for "values" 2020-05-20 08:32:44 +00:00
builtins-proxy-gen.cc Move helper SFIs from NativeContext to Isolate, part 5 2020-05-13 07:18:25 +00:00
builtins-proxy-gen.h [torque] Implement Rest/Strict/Sloppy argument stubs in Torque 2019-12-19 11:00:10 +00:00
builtins-reflect.cc [lookup] Refactor LookupIterator "property or element" creation 2020-01-09 18:39:11 +00:00
builtins-regexp-gen.cc [cleanup] Remove ParameterMode from RegExpPrototypeSplitBody 2020-05-27 13:34:34 +00:00
builtins-regexp-gen.h [cleanup] Remove Sloppy-ness from builtins 2020-02-14 15:25:19 +00:00
builtins-regexp.cc [regexp] Further narrow public API and restrict includes to regexp.h 2019-06-18 12:23:16 +00:00
builtins-sharedarraybuffer-gen.cc [sandbox] Access external pointer in JSArrayBuffer via bottlenecks 2020-05-04 11:58:23 +00:00
builtins-sharedarraybuffer.cc [atomics] Make Atomics.isLockFree return true for all sizes 2020-03-03 10:45:04 +00:00
builtins-string-gen.cc [builtins] Fix String.p.split for one-byte-wraps-two-byte string 2020-06-03 04:54:05 +00:00
builtins-string-gen.h [sandbox] Access ExternalString ResourceData via bottlenecks 2020-05-06 16:34:07 +00:00
builtins-string.cc [cleanup] Refactor Smi::kZero to Smi::zero() 2019-11-15 11:26:48 +00:00
builtins-string.tq [torque] Clean up some namespacing in conversions.tq 2020-05-27 14:29:12 +00:00
builtins-symbol.cc Rename and retype Symbol name to description 2019-10-30 10:38:55 +00:00
builtins-trace.cc [tracing] Migrate tracing to Perfetto track events 2020-04-17 21:31:24 +00:00
builtins-typed-array-gen.cc [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
builtins-typed-array-gen.h [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
builtins-typed-array.cc Update elements.cc to use size_t for index/length 2019-11-26 09:51:21 +00:00
builtins-utils-gen.h [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
builtins-utils-inl.h [runtime] Add arguments type: kRuntime and kJS. 2020-02-26 17:52:04 +00:00
builtins-utils.h [runtime] Reverse JS arguments: fix tests and builtin arguments 2020-03-20 13:07:11 +00:00
builtins-wasm-gen.cc [wasm] Torqueify wasm Table.init and Table.copy builtins. 2020-05-19 14:19:00 +00:00
builtins-wasm-gen.h [wasm] Torqueify wasm Table.init and Table.copy builtins. 2020-05-19 14:19:00 +00:00
builtins-weak-refs.cc [weakrefs] Port FinalizationRegistry cleanup loop to Torque 2020-04-16 03:31:04 +00:00
builtins.cc [arm64] Use BTI instructions for forward CFI 2020-03-17 17:52:28 +00:00
builtins.h [wasm] Remove obsolete {Builtins::IsWasmRuntimeStub}. 2019-11-28 14:02:15 +00:00
cast.tq [Promise.any] Make AggregateError.errors a data property 2020-05-28 08:36:02 +00:00
collections.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
console.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
constants-table-builder.cc [diagnostics] Support --turbo-profiling for builtins 2020-05-21 16:31:52 +00:00
constants-table-builder.h [diagnostics] Support --turbo-profiling for builtins 2020-05-21 16:31:52 +00:00
conversion.tq [torque] Clean up some namespacing in conversions.tq 2020-05-27 14:29:12 +00:00
convert.tq [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
data-view.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
finalization-registry.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
frame-arguments.tq [torque] Implement Rest/Strict/Sloppy argument stubs in Torque 2019-12-19 11:00:10 +00:00
frames.tq [torque] weak pointer type Weak<T> + port CreateObjectWithoutProperties 2019-11-11 11:04:46 +00:00
function.tq [torque] Port builtins/builtins-function-gen to Torque 2020-05-15 14:45:27 +00:00
generate-bytecodes-builtins-list.cc [interpreter] Support laziness in combination with embedded handlers 2018-09-21 08:19:01 +00:00
growable-fixed-array-gen.cc [Promise.any] Make JSAggregateError.errors a FixedArray 2020-04-22 18:00:43 +00:00
growable-fixed-array-gen.h [Promise.any] Make JSAggregateError.errors a FixedArray 2020-04-22 18:00:43 +00:00
growable-fixed-array.tq [Promise.any] Initialize the "errors" array lazily 2020-05-15 13:56:12 +00:00
ic-callable.tq [torque] Port CollectConstructFeedback 2020-05-12 15:36:30 +00:00
ic.tq [torque] Port CollectConstructFeedback 2020-05-12 15:36:30 +00:00
internal-coverage.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
iterator.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
math.tq [torque] Finish porting builtins-number-gen to Torque 2020-05-27 22:23:18 +00:00
number.tq [torque] Fix NumberParseFloat regression. 2020-05-29 17:31:27 +00:00
object-fromentries.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
object.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
promise-abstract-operations.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-all-element-closure.tq [Promise.all] Use FixedArray for "values" 2020-05-20 08:32:44 +00:00
promise-all.tq [Promise.all] Use FixedArray for "values" 2020-05-20 08:32:44 +00:00
promise-any.tq [Promise.any] Make 'errors' non-enumerable 2020-06-04 07:58:24 +00:00
promise-constructor.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-finally.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-jobs.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-misc.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-race.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-reaction-job.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-resolve.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
promise-then.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-constructor.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-delete-property.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-get-property.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-get-prototype-of.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-has-property.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-is-extensible.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-prevent-extensions.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-revocable.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-revoke.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-set-property.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy-set-prototype-of.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
proxy.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
reflect.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-exec.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-match-all.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-match.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-replace.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-search.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-source.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-split.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp-test.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
regexp.tq [torque] Move JSRegExp flags definitions to Torque 2020-06-04 15:39:29 +00:00
setup-builtins-internal.cc [heap] Split out memory-allocator.h 2020-05-18 10:08:30 +00:00
string-endswith.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-html.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-iterator.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-pad.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-repeat.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-replaceall.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-slice.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-startswith.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-substr.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
string-substring.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
symbol.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
torque-internal.tq [torque] allow nested namespaces 2020-05-12 14:34:17 +00:00
typed-array-createtypedarray.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-entries.tq [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
typed-array-every.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-filter.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-find.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-findindex.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-foreach.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-from.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-keys.tq [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
typed-array-of.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-reduce.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-reduceright.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-set.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-slice.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-some.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-sort.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-subarray.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
typed-array-values.tq [Torque] Porting TypedArray entries, keys, values 2020-05-28 12:48:27 +00:00
typed-array.tq [torque] format namespaces without indentation 2020-05-12 14:06:17 +00:00
wasm.tq [wasm] Add return value to the tracing of function calls 2020-06-03 13:59:28 +00:00