Lines Matching defs:opcode
138 constexpr LiftoffCondition GetCompareCondition(WasmOpcode opcode) {
139 switch (opcode) {
306 // If --enable-testing-opcode-in-wasm is set, we are expected to bailout with
307 // "testing opcode".
309 strcmp(detail, "testing opcode") == 0) {
1050 V8_NOINLINE void EmitDebuggingInfo(FullDecoder* decoder, WasmOpcode opcode) {
1052 if (!WasmOpcodes::IsBreakable(opcode)) return;
1134 void NextInstruction(FullDecoder* decoder, WasmOpcode opcode) {
1137 if (V8_UNLIKELY(for_debugging_)) EmitDebuggingInfo(decoder, opcode);
1141 WasmOpcodes::IsPrefixOpcode(opcode)
1144 : opcode));
1593 void EmitTypeConversion(FullDecoder* decoder, WasmOpcode opcode,
1605 if (!__ emit_type_conversion(opcode, dst, src, trap)) {
1625 void UnOp(FullDecoder* decoder, WasmOpcode opcode, const Value& value,
1627 #define CASE_I32_UNOP(opcode, fn) \
1628 case kExpr##opcode: \
1630 #define CASE_I64_UNOP(opcode, fn) \
1631 case kExpr##opcode: \
1633 #define CASE_FLOAT_UNOP(opcode, kind, fn) \
1634 case kExpr##opcode: \
1636 #define CASE_FLOAT_UNOP_WITH_CFALLBACK(opcode, kind, fn) \
1637 case kExpr##opcode: \
1640 #define CASE_TYPE_CONVERSION(opcode, dst_kind, src_kind, ext_ref, can_trap) \
1641 case kExpr##opcode: \
1643 decoder, kExpr##opcode, ext_ref);
1644 switch (opcode) {
1761 __ emit_ptrsize_set_cond(opcode == kExprRefIsNull ? kEqual : kUnequal,
1853 template <WasmOpcode opcode>
1855 DCHECK(decoder->lookahead(0, opcode));
1859 outstanding_op_ = opcode;
1863 GetCompareCondition(opcode)));
1866 void BinOp(FullDecoder* decoder, WasmOpcode opcode, const Value& lhs,
1868 #define CASE_I64_SHIFTOP(opcode, fn) \
1869 case kExpr##opcode: \
1877 #define CASE_CCALL_BINOP(opcode, kind, ext_ref_fn) \
1878 case kExpr##opcode: \
1889 switch (opcode) {
2565 unsupported(decoder, kOtherReason, "testing opcode");
3512 void SimdOp(FullDecoder* decoder, WasmOpcode opcode, base::Vector<Value> args,
3517 switch (opcode) {
4061 void SimdLaneOp(FullDecoder* decoder, WasmOpcode opcode,
4067 switch (opcode) {
4068 #define CASE_SIMD_EXTRACT_LANE_OP(opcode, kind, fn) \
4069 case wasm::kExpr##opcode: \
4085 #define CASE_SIMD_REPLACE_LANE_OP(opcode, kind, fn) \
4086 case wasm::kExpr##opcode: \
4785 void AtomicOp(FullDecoder* decoder, WasmOpcode opcode,
4788 switch (opcode) {
6453 bool test_and_reset_outstanding_op(WasmOpcode opcode) {
6454 DCHECK_NE(kNoOutstandingOp, opcode);
6455 if (outstanding_op_ != opcode) return false;
6506 // Set by the first opcode, reset by the second.
6541 // at the first breakable opcode in the function (if compiling for debugging).