Lines Matching defs:depth
317 // depth is ignored.
327 uint32_t depth = decoder->read_u32v<validate>(pc + 1, length, "depth");
329 if (!VALIDATE(depth <= kV8MaxRttSubtypingDepth)) {
332 "subtyping depth %u is greater than the maximum depth "
334 depth, kV8MaxRttSubtypingDepth);
571 uint32_t depth;
574 depth = decoder->read_u32v<validate>(pc, &length, "branch depth");
957 F(BrOrRet, uint32_t depth, uint32_t drop_values) \
958 F(BrIf, const Value& cond, uint32_t depth) \
988 F(BrOnNull, const Value& ref_object, uint32_t depth, \
990 F(BrOnNonNull, const Value& ref_object, uint32_t depth) \
1002 F(Delegate, uint32_t depth, Control* block) \
1049 uint32_t depth) \
1051 Value* result_on_fallthrough, uint32_t depth) \
1187 int depth = -1; // We will increment the depth to 0 when we decode the
1190 // index space, we need to track this offset for every depth up to the
1191 // current depth.
1201 depth++;
1202 local_offsets.resize_no_init(depth + 1);
1204 local_offsets[depth] = depth > 0 ? local_offsets[depth - 1] : 0;
1207 depth++;
1208 local_offsets.resize_no_init(depth + 1);
1214 local_offsets[depth] = local_offsets[depth - 1] + new_locals_count;
1221 if (imm.index >= local_offsets[depth] &&
1222 imm.index - local_offsets[depth] < locals_count) {
1223 assigned->Add(imm.index - local_offsets[depth]);
1235 depth--;
1240 if (depth < 0) break;
1359 if (!VALIDATE(imm.depth < control_depth)) {
1360 DecodeError(pc, "invalid branch depth: %u", imm.depth);
2312 Control* control_at(uint32_t depth) {
2313 DCHECK_GT(control_.size(), depth);
2314 return &control_.back() - depth;
2323 Value* stack_value(uint32_t depth) const {
2324 DCHECK_LT(0, depth);
2325 DCHECK_GE(stack_size(), depth);
2326 return stack_end_ - depth;
2596 Control* c = control_at(imm.depth);
2675 uint32_t target_depth = imm.depth + 1;
2717 Control* c = control_at(imm.depth);
2734 CALL_INTERFACE(BrOnNull, ref_object, imm.depth, false, &result);
2760 Control* c = control_at(imm.depth);
2771 CALL_INTERFACE(BrOrRet, imm.depth, 0);
2781 CALL_INTERFACE(BrOnNonNull, ref_object, imm.depth);
2964 Control* c = control_at(imm.depth);
2967 CALL_INTERFACE(BrOrRet, imm.depth, 0);
2978 Control* c = control_at(imm.depth);
2981 CALL_INTERFACE(BrIf, cond, imm.depth);
3006 this->DecodeError(pos, "invalid branch depth: %u", target);
3668 V8_INLINE ArgVector PeekArgs(const FunctionSig* sig, int depth = 0) {
3671 EnsureStackArguments(depth + count);
3672 ArgVector args(stack_value(depth + count), count);
3685 V8_INLINE ArgVector PeekArgs(const StructType* type, int depth = 0) {
3688 EnsureStackArguments(depth + count);
3689 ArgVector args(stack_value(depth + count), count);
3718 // creation of the Control object from setting of its stack depth.
4602 Control* c = control_at(branch_depth.depth);
4632 CALL_INTERFACE(BrOnNonNull, obj, branch_depth.depth);
4634 CALL_INTERFACE(BrOrRet, branch_depth.depth, 0);
4642 branch_depth.depth);
4687 Control* c = control_at(branch_depth.depth);
4712 CALL_INTERFACE(BrOrRet, branch_depth.depth, 0);
4722 CALL_INTERFACE(BrOnNull, obj, branch_depth.depth, true,
4731 branch_depth.depth);
4825 Control* c = control_at(branch_depth.depth);
4856 CALL_INTERFACE(BrOnFunc, obj, value_on_branch, branch_depth.depth);
4858 CALL_INTERFACE(BrOnData, obj, value_on_branch, branch_depth.depth);
4860 CALL_INTERFACE(BrOnArray, obj, value_on_branch, branch_depth.depth);
4862 CALL_INTERFACE(BrOnI31, obj, value_on_branch, branch_depth.depth);
4882 Control* c = control_at(branch_depth.depth);
4904 branch_depth.depth);
4907 branch_depth.depth);
4910 branch_depth.depth);
4913 branch_depth.depth);
5201 V8_INLINE Value Peek(int depth, int index, ValueType expected) {
5202 Value val = Peek(depth);
5210 V8_INLINE Value Peek(int depth) {
5213 if (V8_UNLIKELY(stack_size() <= limit + depth)) {
5217 NotEnoughArgumentsError(depth + 1, stack_size() - limit);
5221 DCHECK_LE(stack_, stack_end_ - depth - 1);
5222 return *(stack_end_ - depth - 1);
5321 for (int i = arity - 1, depth = drop_values; i >= 0; --i, ++depth) {
5322 Peek(depth, i, (*merge)[i].type);