v8/src/wasm
Clemens Backes f235120c5e [liftoff] Fix i64.sub special case
In the case that {dst}, {lhs} and {rhs} all point to the same register,
we would emit wrong code (negating the register and adding it to
itself). This CL fixes this by checking if {lhs == rhs}, and just
clearing the {dst} register in that case.

R=thibaudm@chromium.org

Bug: chromium:1247659
Change-Id: I7913617850adb34a5ad812369f16a7422358454d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3151955
Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76765}
2021-09-10 11:03:58 +00:00
..
baseline [liftoff] Fix i64.sub special case 2021-09-10 11:03:58 +00:00
branch-hint-map.h Implementation of the branch hinting proposal for WebAssembly. 2021-05-14 13:40:57 +00:00
c-api.cc [sandbox] Disallow ArrayBuffers outside the VM Cage 2021-08-25 09:52:38 +00:00
c-api.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
code-space-access.cc Reland "Reland: [wasm] Check correctness of thread-local write protection" 2021-08-11 16:48:02 +00:00
code-space-access.h Reland "Reland: [wasm] Check correctness of thread-local write protection" 2021-08-11 16:48:02 +00:00
compilation-environment.h Reland "[wasm] Support partial serialization of modules" 2021-07-30 11:18:38 +00:00
decoder.h [base] Create base/strings.h 2021-06-22 16:55:32 +00:00
DEPS [wasm] Fix include rules of jump-table-assembler.h 2019-09-13 14:05:24 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
function-body-decoder-impl.h [wasm-gc] Drop --experimental-wasm-gc-experiments flag 2021-09-07 19:22:19 +00:00
function-body-decoder.cc [wasm][eh] Remove unwind instruction 2021-06-14 14:36:26 +00:00
function-body-decoder.h [wasm] Remove redundant inline annotations 2021-06-11 11:09:43 +00:00
function-compiler.cc [wasm][turbofan] Set up basic inlining infrastructure 2021-09-07 10:57:30 +00:00
function-compiler.h [wasm] Add CPU time metrics (reland) 2021-07-14 08:01:41 +00:00
graph-builder-interface.cc [wasm][turbofan] Remove stack checks/tracing from inlinee, add tests 2021-09-08 09:05:33 +00:00
graph-builder-interface.h [wasm][turbofan] Remove stack checks/tracing from inlinee, add tests 2021-09-08 09:05:33 +00:00
init-expr-interface.cc Reland "[wasm] Refactor initializer expression handling" 2021-06-30 21:33:46 +00:00
init-expr-interface.h Reland "[wasm] Refactor initializer expression handling" 2021-06-30 21:33:46 +00:00
jump-table-assembler.cc [LOONG64] Add LoongArch64 backend 2021-08-16 13:05:19 +00:00
jump-table-assembler.h [LOONG64] Add LoongArch64 backend 2021-08-16 13:05:19 +00:00
leb-helper.h [wasm] Remove redundant inline annotations 2021-06-11 11:09:43 +00:00
local-decl-encoder.cc Revert to use memcpy instead of base::Memcpy 2021-06-10 10:19:24 +00:00
local-decl-encoder.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
memory-protection-key.cc Reland "[wasm] Fix fallback from PKU to mprotect" 2021-07-13 13:27:56 +00:00
memory-protection-key.h Reland "[wasm] Fix fallback from PKU to mprotect" 2021-07-13 13:27:56 +00:00
memory-tracing.cc [base] Create base/strings.h 2021-06-22 16:55:32 +00:00
memory-tracing.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
module-compiler.cc Reland "[wasm] Move write scope out of NativeModule::AddCode" 2021-09-01 15:32:26 +00:00
module-compiler.h [wasm] Add unit tests for code protection 2021-09-08 14:07:56 +00:00
module-decoder.cc [wasm-gc] Drop --experimental-wasm-gc-experiments flag 2021-09-07 19:22:19 +00:00
module-decoder.h Reland "[wasm] Refactor initializer expression handling" 2021-06-30 21:33:46 +00:00
module-instantiate.cc [csa] Prepare for argument count consistency 2021-09-02 09:11:15 +00:00
module-instantiate.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
object-access.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
OWNERS [wasm] Make manoskouk and thibaudm full wasm owners 2021-05-04 08:11:05 +00:00
signature-map.cc Move code generation related files to src/codegen 2019-05-21 10:33:39 +00:00
signature-map.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
simd-shuffle.cc [wasm-simd] Add missing include for std::all_of 2021-03-23 16:45:16 +00:00
simd-shuffle.h [wasm-simd][x64][ia32] Optimize swizzle with constant indices 2021-03-22 20:33:45 +00:00
streaming-decoder.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
streaming-decoder.h [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
struct-types.h [wasm-gc][ic] Support WasmObjects in LoadIC 2021-05-26 17:49:49 +00:00
sync-streaming-decoder.cc [isolate][cleanup] Remove pointer to WasmEngine 2021-06-21 09:09:25 +00:00
value-type.cc [wasm] Move ValueKind out of ValueType 2021-02-22 10:52:50 +00:00
value-type.h [wasm] Implement EvaluateInitExpression 2021-06-04 13:34:16 +00:00
wasm-arguments.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
wasm-code-manager.cc [wasm] Add unit tests for code protection 2021-09-08 14:07:56 +00:00
wasm-code-manager.h [wasm] Add unit tests for code protection 2021-09-08 14:07:56 +00:00
wasm-constants.h [wasm-gc] Experiment: accept types with explicit inheritance 2021-08-06 13:35:37 +00:00
wasm-debug.cc [liftoff] Refactor options for Liftoff compilation 2021-08-04 16:48:48 +00:00
wasm-debug.h [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
wasm-engine.cc [wasm] Remove NativeModule::engine_ pointer 2021-06-24 14:38:43 +00:00
wasm-engine.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
wasm-external-refs.cc [wasm-gc] Improve performance of array.copy in TF 2021-09-03 16:45:59 +00:00
wasm-external-refs.h [wasm-gc] Improve performance of array.copy in TF 2021-09-03 16:45:59 +00:00
wasm-feature-flags.h Add V8 flag for stack switching 2021-09-08 16:38:19 +00:00
wasm-features.cc [api] Add callback to set up conditional features 2021-03-23 09:03:34 +00:00
wasm-features.h [api] Add callback to set up conditional features 2021-03-23 09:03:34 +00:00
wasm-import-wrapper-cache.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
wasm-import-wrapper-cache.h [wasm-c-api] Cache CapiCallWrappers in the NativeModule 2021-05-19 16:36:41 +00:00
wasm-init-expr.cc [wasm-gc] Add array.init constant expression 2021-06-14 08:23:06 +00:00
wasm-init-expr.h [wasm-gc] Add array.init constant expression 2021-06-14 08:23:06 +00:00
wasm-js.cc [wasm][externref] Support default value for the table constructor 2021-09-03 15:43:59 +00:00
wasm-js.h [api] Add callback to set up conditional features 2021-03-23 09:03:34 +00:00
wasm-limits.h [wasm-gc] Fix max array length 2021-08-16 11:53:02 +00:00
wasm-linkage.h [LOONG64] Add LoongArch64 backend 2021-08-16 13:05:19 +00:00
wasm-module-builder.cc [wasm] Support reftypes tables in WasmModuleBuilder 2021-08-31 10:02:19 +00:00
wasm-module-builder.h [fuzzer] Add table operations to fuzzed module 2021-09-07 15:09:40 +00:00
wasm-module-sourcemap.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
wasm-module-sourcemap.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
wasm-module.cc [wasm][eh] Rename exception to tag 2021-07-29 12:09:02 +00:00
wasm-module.h [wasm][eh] Rename exception to tag 2021-07-29 12:09:02 +00:00
wasm-objects-inl.h [wasm-gc] Store instance/element size directly on Map 2021-08-19 12:57:57 +00:00
wasm-objects.cc Argument Count Consistency 2021-09-07 15:34:40 +00:00
wasm-objects.h [wasm-gc] Store instance/element size directly on Map 2021-08-19 12:57:57 +00:00
wasm-objects.tq [wasm][eh] Rename exception to tag 2021-07-29 12:09:02 +00:00
wasm-opcodes-inl.h [wasm][eh] Remove unwind instruction 2021-06-14 14:36:26 +00:00
wasm-opcodes.cc [wasm] Remove multivalue feature flag 2021-04-13 06:35:34 +00:00
wasm-opcodes.h [wasm][eh] Remove unwind instruction 2021-06-14 14:36:26 +00:00
wasm-result.cc [base] Create base/strings.h 2021-06-22 16:55:32 +00:00
wasm-result.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
wasm-serialization.cc [wasm] Only make needed regions writable 2021-08-09 11:30:01 +00:00
wasm-serialization.h [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
wasm-subtyping.cc [wasm][bug] Remove deleted WasmModule from typing cache 2021-05-05 08:30:56 +00:00
wasm-subtyping.h [wasm][bug] Remove deleted WasmModule from typing cache 2021-05-05 08:30:56 +00:00
wasm-tier.h [no-wasm] Forbid including wasm headers in no-wasm builds 2021-03-16 08:48:55 +00:00
wasm-value.h [wasm] Do not enforce LE for globals and WasmValue 2021-06-10 18:08:38 +00:00