diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-20 13:40:20 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-22 12:41:23 +0000 |
commit | 7961cea6d1041e3e454dae6a1da660b453efd238 (patch) | |
tree | c0eeb4a9ff9ba32986289c1653d9608e53ccb444 /chromium/v8/src/wasm/wasm-opcodes.cc | |
parent | b7034d0803538058e5c9d904ef03cf5eab34f6ef (diff) | |
download | qtwebengine-chromium-7961cea6d1041e3e454dae6a1da660b453efd238.tar.gz |
BASELINE: Update Chromium to 78.0.3904.130
Change-Id: If185e0c0061b3437531c97c9c8c78f239352a68b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/v8/src/wasm/wasm-opcodes.cc')
-rw-r--r-- | chromium/v8/src/wasm/wasm-opcodes.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/chromium/v8/src/wasm/wasm-opcodes.cc b/chromium/v8/src/wasm/wasm-opcodes.cc index d3fb4c42cf2..879da1445ba 100644 --- a/chromium/v8/src/wasm/wasm-opcodes.cc +++ b/chromium/v8/src/wasm/wasm-opcodes.cc @@ -10,6 +10,7 @@ #include "src/codegen/signature.h" #include "src/execution/messages.h" #include "src/runtime/runtime.h" +#include "src/wasm/wasm-features.h" namespace v8 { namespace internal { @@ -229,11 +230,16 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { CASE_F64x2_OP(Ne, "ne") CASE_I64x2_OP(Ne, "ne") CASE_SIMD_OP(Add, "add") + CASE_F64x2_OP(Add, "add") CASE_I64x2_OP(Add, "add") CASE_SIMD_OP(Sub, "sub") + CASE_F64x2_OP(Sub, "sub") CASE_I64x2_OP(Sub, "sub") CASE_SIMD_OP(Mul, "mul") + CASE_F64x2_OP(Mul, "mul") CASE_I64x2_OP(Mul, "mul") + CASE_F64x2_OP(Div, "div") + CASE_F32x4_OP(Div, "div") CASE_F64x2_OP(Splat, "splat") CASE_F64x2_OP(Lt, "lt") CASE_F64x2_OP(Le, "le") @@ -244,7 +250,9 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { CASE_F32x4_OP(AddHoriz, "add_horizontal") CASE_F32x4_OP(RecipApprox, "recip_approx") CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx") + CASE_F64x2_OP(Min, "min") CASE_F32x4_OP(Min, "min") + CASE_F64x2_OP(Max, "max") CASE_F32x4_OP(Max, "max") CASE_F32x4_OP(Lt, "lt") CASE_F32x4_OP(Le, "le") @@ -267,7 +275,9 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { CASE_SIMDI_OP(ExtractLane, "extract_lane") CASE_SIMDI_OP(ReplaceLane, "replace_lane") CASE_SIGN_OP(SIMDI, Min, "min") + CASE_SIGN_OP(I64x2, Min, "min") CASE_SIGN_OP(SIMDI, Max, "max") + CASE_SIGN_OP(I64x2, Max, "max") CASE_SIGN_OP(SIMDI, Lt, "lt") CASE_SIGN_OP(I64x2, Lt, "lt") CASE_SIGN_OP(SIMDI, Le, "le") @@ -439,12 +449,13 @@ std::ostream& operator<<(std::ostream& os, const FunctionSig& sig) { return os; } -bool IsJSCompatibleSignature(const FunctionSig* sig, bool has_bigint_feature) { - if (sig->return_count() > 1) { +bool IsJSCompatibleSignature(const FunctionSig* sig, + const WasmFeatures& enabled_features) { + if (!enabled_features.mv && sig->return_count() > 1) { return false; } for (auto type : sig->all()) { - if (!has_bigint_feature && type == kWasmI64) { + if (!enabled_features.bigint && type == kWasmI64) { return false; } |