Lines Matching refs:builder_

22     Environment env(gate, circuit_, &builder_);
67 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), ret);
72 auto env = builder_.GetCurrentEnvironment();
73 Label entry(&builder_);
76 Label slowPath(&builder_);
77 Label fastPath(&builder_);
78 Label localeCompareGC(&builder_);
79 Label exit(&builder_);
80 DEFVALUE(result, (&builder_), VariableType::JS_ANY(), builder_.Undefined());
82 GateRef isString = builder_.BothAreString(thisObj, thatObj);
83 builder_.Branch(isString, &fastPath, &slowPath);
84 builder_.Bind(&fastPath);
86 result = builder_.CallRuntime(glue, RTSTUB_ID(LocaleCompareCacheable), Gate::InvalidGateRef,
87 { builder_.Undefined(), thisObj, thatObj }, gate);
88 GateRef status = builder_.TaggedIsUndefined(*result);
89 builder_.Branch(status, &localeCompareGC, &exit, BranchWeight::ONE_WEIGHT, BranchWeight::STRONG_WEIGHT,
91 builder_.Bind(&localeCompareGC);
93 result = builder_.CallRuntime(glue, RTSTUB_ID(LocaleCompareWithGc), Gate::InvalidGateRef,
94 { builder_.Undefined(), thisObj, thatObj, builder_.Undefined() }, gate);
95 builder_.Jump(&exit);
98 builder_.Bind(&slowPath);
101 { thisObj, thatObj, builder_.Undefined(), builder_.Undefined()});
102 builder_.Jump(&exit);
104 builder_.Bind(&exit);
112 auto env = builder_.GetCurrentEnvironment();
113 Label entry(&builder_);
116 Label numberBranch(&builder_);
117 Label notNumberBranch(&builder_);
118 Label exit(&builder_);
121 DEFVALUE(result, (&builder_), VariableType::JS_ANY(), builder_.HoleConstant());
123 BRANCH_CIR(builder_.TaggedIsNumber(para1), &numberBranch, &notNumberBranch);
124 builder_.Bind(&numberBranch);
126 GateRef value = builder_.GetDoubleOfTNumber(para1);
127 Label IsNan(&builder_);
128 Label NotNan(&builder_);
129 GateRef condition = builder_.DoubleIsNAN(value);
131 builder_.Bind(&NotNan);
135 GateRef floor = builder_.CallNGCRuntime(glue, index, Gate::InvalidGateRef, {value}, gate);
136 result = builder_.DoubleToTaggedDoublePtr(floor);
137 builder_.Jump(&exit);
139 builder_.Bind(&IsNan);
141 result = builder_.DoubleToTaggedDoublePtr(builder_.Double(base::NAN_VALUE));
142 builder_.Jump(&exit);
145 builder_.Bind(&notNumberBranch);
147 builder_.Jump(&exit);
150 builder_.Bind(&exit);
158 GateRef val = builder_.SExtInt32ToInt64(x);
159 return builder_.ToTaggedIntPtr(val);
167 GateRef result = builder_.CallRuntime(glue, index, Gate::InvalidGateRef, args, gate, name.c_str());
171 GateRef target = builder_.IntPtr(index);
172 GateRef result = builder_.Call(cs, glue, target, builder_.GetDepend(), args, gate, name.c_str());
180 GateRef state = builder_.GetState();
182 GateRef depend = builder_.GetDepend();
184 GateRef exceptionVal = builder_.ExceptionConstant();
186 GateRef equal = builder_.Equal(value, exceptionVal);
187 auto ifBranch = builder_.Branch(state, equal, 1, BranchWeight::DEOPT_WEIGHT, "checkException");
189 GateRef ifTrue = builder_.IfTrue(ifBranch);
190 GateRef ifFalse = builder_.IfFalse(ifBranch);
191 GateRef eDepend = builder_.DependRelay(ifTrue, depend);
192 GateRef sDepend = builder_.DependRelay(ifFalse, depend);
197 acc_.ReplaceHirDirectly(hirGate, builder_.GetStateDepend(), value);
227 args.emplace_back(builder_.Undefined());
245 builder_.SetEnvironment(env);
279 GateRef constantFunction = builder_.GetGlobalConstantValue(GET_TYPED_CONSTANT_INDEX(id));
281 return builder_.Equal(function, constantFunction);
286 GateRef glueGlobalEnv = builder_.GetGlobalEnv();
288 builder_.GetGlobalEnvObj(glueGlobalEnv, GET_TYPED_GLOBAL_ENV_INDEX(id));
290 return builder_.Equal(target, globalFunction);
329 return LogicAndBuilder(builder_.GetCurrentEnvironment())
330 .And(builder_.TaggedIsHeapObjectOp(obj))
331 .And(builder_.IsSpecificObjectType(obj, expectType))
332 .And(builder_.IsMarkerCellValid(builder_.GetGlobalEnvObj(builder_.GetGlobalEnv(), detectorIndex)))
364 return LogicAndBuilder(builder_.GetCurrentEnvironment())
365 .And(builder_.TaggedIsHeapObjectOp(obj))
366 .And(builder_.IsSpecificObjectType(obj, expectType))
424 result = builder_.CallStub(glue, gate, CommonStubCSigns::CreateJSMapIterator, { glue, obj });
428 result = builder_.CallStub(glue, gate, CommonStubCSigns::CreateJSSetIterator, { glue, obj });
464 result = builder_.CallStub(glue, gate, CommonStubCSigns::StringIteratorNext, { glue, thisObj });
495 auto env = builder_.GetCurrentEnvironment();
497 DEFVALUE(result, (&builder_), VariableType::JS_ANY(), IntToTaggedIntPtr(builder_.Int32(0)));
502 BRANCH_CIR(builder_.TaggedIsNumber(param), &isNumber, &notNumber);
503 builder_.Bind(&isNumber);
506 builder_.Jump(&exit);
508 builder_.Bind(&notNumber);
512 BRANCH_CIR(builder_.TaggedIsString(param), &isString, &notString);
513 builder_.Bind(&isString);
516 auto length = builder_.GetLengthFromString(param);
517 BRANCH_CIR(builder_.Equal(length, builder_.Int32(0)), &exit, &nonZeroLength);
518 builder_.Bind(&nonZeroLength);
520 BRANCH_CIR(builder_.IsIntegerString(param), &isInteger, &notString);
521 builder_.Bind(&isInteger);
523 result = IntToTaggedIntPtr(builder_.GetRawHashFromString(param));
524 builder_.Jump(&exit);
527 builder_.Bind(&notString);
531 builder_.Jump(&exit);
534 builder_.Bind(&exit);