From 0a66b223e149a841669bfad5598e4254589730cb Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Tue, 1 Aug 2017 11:36:44 -0500 Subject: deps: update V8 to 6.0.286.52 PR-URL: https://github.com/nodejs/node/pull/14004 Reviewed-By: Anna Henningsen Reviewed-By: Anna Henningsen Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig --- deps/v8/src/wasm/wasm-opcodes.cc | 42 ++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) (limited to 'deps/v8/src/wasm/wasm-opcodes.cc') diff --git a/deps/v8/src/wasm/wasm-opcodes.cc b/deps/v8/src/wasm/wasm-opcodes.cc index 10dcfe59a7..355cdf40b5 100644 --- a/deps/v8/src/wasm/wasm-opcodes.cc +++ b/deps/v8/src/wasm/wasm-opcodes.cc @@ -175,16 +175,11 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { CASE_SIMD_OP(Sub, "sub") CASE_SIMD_OP(Mul, "mul") CASE_F32x4_OP(Abs, "abs") - CASE_F32x4_OP(Sqrt, "sqrt") - CASE_F32x4_OP(Div, "div") + CASE_F32x4_OP(AddHoriz, "add_horizontal") CASE_F32x4_OP(RecipApprox, "recip_approx") - CASE_F32x4_OP(RecipRefine, "recip_refine") CASE_F32x4_OP(RecipSqrtApprox, "recip_sqrt_approx") - CASE_F32x4_OP(RecipSqrtRefine, "recip_sqrt_refine") CASE_F32x4_OP(Min, "min") CASE_F32x4_OP(Max, "max") - CASE_F32x4_OP(MinNum, "min_num") - CASE_F32x4_OP(MaxNum, "max_num") CASE_F32x4_OP(Lt, "lt") CASE_F32x4_OP(Le, "le") CASE_F32x4_OP(Gt, "gt") @@ -209,6 +204,8 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { CASE_SIGN_OP(SIMDI, Ge, "ge") CASE_SIGN_OP(SIMDI, Shr, "shr") CASE_SIMDI_OP(Shl, "shl") + CASE_I32x4_OP(AddHoriz, "add_horizontal") + CASE_I16x8_OP(AddHoriz, "add_horizontal") CASE_SIGN_OP(I16x8, AddSaturate, "add_saturate") CASE_SIGN_OP(I8x16, AddSaturate, "add_saturate") CASE_SIGN_OP(I16x8, SubSaturate, "sub_saturate") @@ -217,15 +214,12 @@ const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { CASE_S128_OP(Or, "or") CASE_S128_OP(Xor, "xor") CASE_S128_OP(Not, "not") - CASE_S32x4_OP(Select, "select") - CASE_S32x4_OP(Swizzle, "swizzle") CASE_S32x4_OP(Shuffle, "shuffle") - CASE_S16x8_OP(Select, "select") - CASE_S16x8_OP(Swizzle, "swizzle") + CASE_S32x4_OP(Select, "select") CASE_S16x8_OP(Shuffle, "shuffle") - CASE_S8x16_OP(Select, "select") - CASE_S8x16_OP(Swizzle, "swizzle") + CASE_S16x8_OP(Select, "select") CASE_S8x16_OP(Shuffle, "shuffle") + CASE_S8x16_OP(Select, "select") CASE_S1x4_OP(And, "and") CASE_S1x4_OP(Or, "or") CASE_S1x4_OP(Xor, "xor") @@ -271,6 +265,30 @@ bool WasmOpcodes::IsPrefixOpcode(WasmOpcode opcode) { } } +bool WasmOpcodes::IsControlOpcode(WasmOpcode opcode) { + switch (opcode) { +#define CHECK_OPCODE(name, opcode, _) \ + case kExpr##name: \ + return true; + FOREACH_CONTROL_OPCODE(CHECK_OPCODE) +#undef CHECK_OPCODE + default: + return false; + } +} + +bool WasmOpcodes::IsUnconditionalJump(WasmOpcode opcode) { + switch (opcode) { + case kExprUnreachable: + case kExprBr: + case kExprBrTable: + case kExprReturn: + return true; + default: + return false; + } +} + std::ostream& operator<<(std::ostream& os, const FunctionSig& sig) { if (sig.return_count() == 0) os << "v"; for (auto ret : sig.returns()) { -- cgit v1.2.1