Lines Matching refs:rtt
919 const Value& rtt, const Value args[], Value* result) \
921 const Value& rtt, Value* result) \
923 const base::Vector<Value>& elements, const Value& rtt, Value* result) \
926 const Value& length, const Value& rtt, Value* result) \
1029 const Value& length, const Value& initial_value, const Value& rtt, \
1032 const Value& length, const Value& rtt, Value* result) \
1045 F(RefTest, const Value& obj, const Value& rtt, Value* result) \
1046 F(RefCast, const Value& obj, const Value& rtt, Value* result) \
1048 F(BrOnCast, const Value& obj, const Value& rtt, Value* result_on_branch, \
1050 F(BrOnCastFail, const Value& obj, const Value& rtt, \
4027 bool TypeCheckAlwaysFails(Value obj, Value rtt) {
4028 return !IsSubtypeOf(ValueType::Ref(rtt.type.ref_index(), kNonNullable),
4031 ValueType::Ref(rtt.type.ref_index(), kNullable),
4037 bool TypeCheckAlwaysSucceeds(Value obj, Value rtt) {
4041 ValueType::Ref(rtt.type.ref_index(), kNullable),
4059 Value rtt = opcode == kExprStructNew
4063 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4064 Push(rtt);
4068 CALL_INTERFACE_IF_OK_AND_REACHABLE(StructNewWithRtt, imm, rtt,
4070 Drop(rtt);
4092 Value rtt = opcode == kExprStructNewDefault ? CreateValue(rtt_type)
4095 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4096 Push(rtt);
4099 CALL_INTERFACE_IF_OK_AND_REACHABLE(StructNewDefault, imm, rtt, &value);
4100 Drop(rtt);
4176 Value rtt = opcode == kExprArrayNew ? CreateValue(rtt_type)
4179 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4180 Push(rtt);
4187 initial_value, rtt, &value);
4205 Value rtt = opcode == kExprArrayNewDefault ? CreateValue(rtt_type)
4208 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4209 Push(rtt);
4213 CALL_INTERFACE_IF_OK_AND_REACHABLE(ArrayNewDefault, imm, length, rtt,
4247 Value rtt = opcode == kExprArrayInitFromDataStatic
4251 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, array_imm.index, &rtt);
4252 Push(rtt);
4261 data_segment, offset, length, rtt,
4389 Value rtt = opcode == kExprArrayInit
4393 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, array_imm.index, &rtt);
4394 Push(rtt);
4403 CALL_INTERFACE_IF_OK_AND_REACHABLE(ArrayInit, array_imm, elements, rtt,
4449 Value rtt = Peek(0); // This is safe for the ...Static instruction.
4455 rtt = CreateValue(ValueType::Rtt(imm.index));
4456 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4457 Push(rtt);
4460 if (!VALIDATE(rtt.type.is_rtt() || rtt.type.is_bottom())) {
4461 PopTypeError(1, rtt, "rtt");
4478 if (V8_UNLIKELY(TypeCheckAlwaysSucceeds(obj, rtt))) {
4490 } else if (V8_UNLIKELY(TypeCheckAlwaysFails(obj, rtt))) {
4495 CALL_INTERFACE(RefTest, obj, rtt, &value);
4505 Value rtt = Peek(0); // This is safe for the ...Static instruction.
4511 rtt = CreateValue(ValueType::Rtt(imm.index));
4512 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4513 Push(rtt);
4516 if (!VALIDATE(rtt.type.is_rtt() || rtt.type.is_bottom())) {
4517 PopTypeError(1, rtt, "rtt");
4532 CreateValue(rtt.type.is_bottom()
4534 : ValueType::Ref(rtt.type.ref_index(),
4541 if (V8_UNLIKELY(TypeCheckAlwaysSucceeds(obj, rtt))) {
4546 } else if (V8_UNLIKELY(TypeCheckAlwaysFails(obj, rtt))) {
4560 CALL_INTERFACE(RefCast, obj, rtt, &value);
4577 Value rtt = Peek(0); // This is safe for the ...Static instruction.
4583 rtt = CreateValue(ValueType::Rtt(imm.index));
4584 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4585 Push(rtt);
4588 if (!VALIDATE(rtt.type.is_rtt() || rtt.type.is_bottom())) {
4589 PopTypeError(1, rtt, "rtt");
4615 rtt.type.is_bottom()
4617 : ValueType::Ref(rtt.type.ref_index(), kNonNullable));
4627 if (V8_UNLIKELY(TypeCheckAlwaysSucceeds(obj, rtt))) {
4640 } else if (V8_LIKELY(!TypeCheckAlwaysFails(obj, rtt))) {
4641 CALL_INTERFACE(BrOnCast, obj, rtt, value_on_branch,
4662 Value rtt = Peek(0); // This is safe for the ...Static instruction.
4668 rtt = CreateValue(ValueType::Rtt(imm.index));
4669 CALL_INTERFACE_IF_OK_AND_REACHABLE(RttCanon, imm.index, &rtt);
4670 Push(rtt);
4673 if (!VALIDATE(rtt.type.is_rtt() || rtt.type.is_bottom())) {
4674 PopTypeError(1, rtt, "rtt");
4699 Drop(rtt);
4702 rtt.type.is_bottom()
4704 : ValueType::Ref(rtt.type.ref_index(), kNonNullable));
4708 if (V8_UNLIKELY(TypeCheckAlwaysFails(obj, rtt))) {
4717 } else if (V8_UNLIKELY(TypeCheckAlwaysSucceeds(obj, rtt))) {
4730 CALL_INTERFACE(BrOnCastFail, obj, rtt, &result_on_fallthrough,