Lines Matching refs:current_function_builder_
290 current_function_builder_->EmitWithU8(kExprBlock, kLocalVoid); in Begin()
296 current_function_builder_->AddAsmWasmOffset(position, position); in Loop()
297 current_function_builder_->EmitWithU8(kExprLoop, kLocalVoid); in Loop()
302 current_function_builder_->Emit(kExprEnd); in End()
740 current_function_builder_ = function_info->function_builder; in ValidateFunction()
744 current_function_builder_->SetAsmFunctionStartPosition(scanner_.Position()); in ValidateFunction()
783 current_function_builder_->SetSignature(sig); in ValidateFunction()
785 current_function_builder_->AddLocal(local); in ValidateFunction()
789 current_function_builder_->AddLocal(kWasmI32); in ValidateFunction()
798 current_function_builder_->Emit(kExprEnd); in ValidateFunction()
906 current_function_builder_->EmitF64Const(-dvalue); in ValidateFunctionLocals()
907 current_function_builder_->EmitSetLocal(info->index); in ValidateFunctionLocals()
917 current_function_builder_->EmitI32Const(value); in ValidateFunctionLocals()
918 current_function_builder_->EmitSetLocal(info->index); in ValidateFunctionLocals()
940 current_function_builder_->EmitWithI32V(kExprGetGlobal, in ValidateFunctionLocals()
942 current_function_builder_->EmitSetLocal(info->index); in ValidateFunctionLocals()
958 current_function_builder_->EmitF32Const(dvalue); in ValidateFunctionLocals()
959 current_function_builder_->EmitSetLocal(info->index); in ValidateFunctionLocals()
973 current_function_builder_->EmitF32Const(fvalue); in ValidateFunctionLocals()
974 current_function_builder_->EmitSetLocal(info->index); in ValidateFunctionLocals()
987 current_function_builder_->EmitF64Const(dvalue); in ValidateFunctionLocals()
988 current_function_builder_->EmitSetLocal(info->index); in ValidateFunctionLocals()
995 current_function_builder_->EmitI32Const(value); in ValidateFunctionLocals()
996 current_function_builder_->EmitSetLocal(info->index); in ValidateFunctionLocals()
1069 current_function_builder_->Emit(kExprDrop); in ExpressionStatement()
1083 current_function_builder_->EmitWithU8(kExprIf, kLocalVoid); in IfStatement()
1087 current_function_builder_->Emit(kExprElse); in IfStatement()
1090 current_function_builder_->Emit(kExprEnd); in IfStatement()
1117 current_function_builder_->Emit(kExprReturn); in ReturnStatement()
1147 current_function_builder_->Emit(kExprI32Eqz); in WhileStatement()
1148 current_function_builder_->EmitWithU8(kExprBrIf, 1); in WhileStatement()
1152 current_function_builder_->EmitWithU8(kExprBr, 0); in WhileStatement()
1167 current_function_builder_->EmitWithU8(kExprBlock, kLocalVoid); in DoStatement()
1178 current_function_builder_->Emit(kExprI32Eqz); in DoStatement()
1179 current_function_builder_->EmitWithU8(kExprBrIf, 1); in DoStatement()
1181 current_function_builder_->EmitWithU8(kExprBr, 0); in DoStatement()
1198 current_function_builder_->Emit(kExprDrop); in ForStatement()
1208 current_function_builder_->EmitWithU8(kExprBlock, kLocalVoid); in ForStatement()
1213 current_function_builder_->Emit(kExprI32Eqz); in ForStatement()
1214 current_function_builder_->EmitWithU8(kExprBrIf, 2); in ForStatement()
1233 current_function_builder_->EmitWithU8(kExprBr, 0); in ForStatement()
1253 current_function_builder_->Emit(kExprBr); in BreakStatement()
1254 current_function_builder_->EmitI32V(depth); in BreakStatement()
1270 current_function_builder_->EmitWithI32V(kExprBr, depth); in ContinueStatement()
1298 current_function_builder_->EmitSetLocal(tmp); in SwitchStatement()
1308 current_function_builder_->EmitWithU8(kExprBlock, kLocalVoid); in SwitchStatement()
1312 current_function_builder_->EmitGetLocal(tmp); in SwitchStatement()
1313 current_function_builder_->EmitI32Const(c); in SwitchStatement()
1314 current_function_builder_->Emit(kExprI32Eq); in SwitchStatement()
1315 current_function_builder_->EmitWithI32V(kExprBrIf, table_pos++); in SwitchStatement()
1317 current_function_builder_->EmitWithI32V(kExprBr, table_pos++); in SwitchStatement()
1319 current_function_builder_->Emit(kExprEnd); in SwitchStatement()
1323 current_function_builder_->Emit(kExprEnd); in SwitchStatement()
1384 current_function_builder_->Emit(kExprDrop); in Expression()
1403 current_function_builder_->EmitF64Const(dvalue); in NumericLiteral()
1407 current_function_builder_->EmitI32Const(static_cast<int32_t>(uvalue)); in NumericLiteral()
1410 current_function_builder_->EmitI32Const(static_cast<int32_t>(uvalue)); in NumericLiteral()
1426 current_function_builder_->EmitGetLocal(info->index); in Identifier()
1433 current_function_builder_->EmitWithI32V(kExprGetGlobal, VarIndex(info)); in Identifier()
1472 current_function_builder_->Emit(kExpr##type##AsmjsLoad##wasmload); \ in MemberExpression()
1503 current_function_builder_->Emit(kExprF32ConvertF64); in AssignmentExpression()
1508 current_function_builder_->Emit(kExpr##type##AsmjsStore##wasmstore); \ in AssignmentExpression()
1537 current_function_builder_->EmitTeeLocal(info->index); in AssignmentExpression()
1539 current_function_builder_->EmitWithU32V(kExprSetGlobal, VarIndex(info)); in AssignmentExpression()
1540 current_function_builder_->EmitWithU32V(kExprGetGlobal, VarIndex(info)); in AssignmentExpression()
1562 current_function_builder_->EmitI32Const(-static_cast<int32_t>(uvalue)); in UnaryExpression()
1571 current_function_builder_->EmitSetLocal(tmp.get()); in UnaryExpression()
1572 current_function_builder_->EmitI32Const(0); in UnaryExpression()
1573 current_function_builder_->EmitGetLocal(tmp.get()); in UnaryExpression()
1574 current_function_builder_->Emit(kExprI32Sub); in UnaryExpression()
1577 current_function_builder_->Emit(kExprF64Neg); in UnaryExpression()
1580 current_function_builder_->Emit(kExprF32Neg); in UnaryExpression()
1593 current_function_builder_->Emit(kExprF64SConvertI32); in UnaryExpression()
1596 current_function_builder_->Emit(kExprF64UConvertI32); in UnaryExpression()
1601 current_function_builder_->Emit(kExprF64ConvertF32); in UnaryExpression()
1611 current_function_builder_->Emit(kExprI32Eqz); in UnaryExpression()
1616 current_function_builder_->Emit(kExprI32AsmjsSConvertF64); in UnaryExpression()
1618 current_function_builder_->Emit(kExprI32AsmjsSConvertF32); in UnaryExpression()
1628 current_function_builder_->EmitI32Const(0xFFFFFFFF); in UnaryExpression()
1629 current_function_builder_->Emit(kExprI32Xor); in UnaryExpression()
1649 current_function_builder_->EmitI32Const(value); in MultiplicativeExpression()
1650 current_function_builder_->Emit(kExprI32Mul); in MultiplicativeExpression()
1657 current_function_builder_->EmitI32Const(value); in MultiplicativeExpression()
1664 current_function_builder_->Emit(kExprI32Mul); in MultiplicativeExpression()
1685 current_function_builder_->EmitI32Const(value); in MultiplicativeExpression()
1686 current_function_builder_->Emit(kExprI32Mul); in MultiplicativeExpression()
1698 current_function_builder_->EmitI32Const(value); in MultiplicativeExpression()
1699 current_function_builder_->Emit(kExprI32Mul); in MultiplicativeExpression()
1705 current_function_builder_->Emit(kExprF64Mul); in MultiplicativeExpression()
1708 current_function_builder_->Emit(kExprF32Mul); in MultiplicativeExpression()
1717 current_function_builder_->Emit(kExprF64Div); in MultiplicativeExpression()
1720 current_function_builder_->Emit(kExprF32Div); in MultiplicativeExpression()
1723 current_function_builder_->Emit(kExprI32AsmjsDivS); in MultiplicativeExpression()
1726 current_function_builder_->Emit(kExprI32AsmjsDivU); in MultiplicativeExpression()
1735 current_function_builder_->Emit(kExprF64Mod); in MultiplicativeExpression()
1738 current_function_builder_->Emit(kExprI32AsmjsRemS); in MultiplicativeExpression()
1741 current_function_builder_->Emit(kExprI32AsmjsRemU); in MultiplicativeExpression()
1763 current_function_builder_->Emit(kExprF64Add); in AdditiveExpression()
1766 current_function_builder_->Emit(kExprF32Add); in AdditiveExpression()
1769 current_function_builder_->Emit(kExprI32Add); in AdditiveExpression()
1779 current_function_builder_->Emit(kExprI32Add); in AdditiveExpression()
1787 current_function_builder_->Emit(kExprF64Sub); in AdditiveExpression()
1790 current_function_builder_->Emit(kExprF32Sub); in AdditiveExpression()
1793 current_function_builder_->Emit(kExprI32Sub); in AdditiveExpression()
1803 current_function_builder_->Emit(kExprI32Sub); in AdditiveExpression()
1834 old_code = current_function_builder_->GetPosition(); in ShiftExpression()
1848 current_function_builder_->Emit(kExprI32ShrS); in ShiftExpression()
1861 current_function_builder_->Emit(kExpr##opcode); \ in ShiftExpression()
1886 current_function_builder_->Emit(kExpr##sop); \ in RelationalExpression()
1888 current_function_builder_->Emit(kExpr##uop); \ in RelationalExpression()
1890 current_function_builder_->Emit(kExpr##dop); \ in RelationalExpression()
1892 current_function_builder_->Emit(kExpr##fop); \ in RelationalExpression()
1923 current_function_builder_->Emit(kExpr##sop); \ in EqualityExpression()
1925 current_function_builder_->Emit(kExpr##uop); \ in EqualityExpression()
1927 current_function_builder_->Emit(kExpr##dop); \ in EqualityExpression()
1929 current_function_builder_->Emit(kExpr##fop); \ in EqualityExpression()
1954 current_function_builder_->Emit(kExprI32And); in BitwiseANDExpression()
1971 current_function_builder_->Emit(kExprI32Xor); in BitwiseXORExpression()
1998 old_code = current_function_builder_->GetPosition(); in BitwiseORExpression()
2005 current_function_builder_->DeleteCodeAfter(old_code); in BitwiseORExpression()
2014 current_function_builder_->Emit(kExprI32Ior); in BitwiseORExpression()
2032 current_function_builder_->EmitWithU8(kExprIf, kLocalI32); in ConditionalExpression()
2033 size_t fixup = current_function_builder_->GetPosition() - in ConditionalExpression()
2037 current_function_builder_->Emit(kExprElse); in ConditionalExpression()
2041 current_function_builder_->Emit(kExprEnd); in ConditionalExpression()
2043 current_function_builder_->FixupByte(fixup, kLocalI32); in ConditionalExpression()
2046 current_function_builder_->FixupByte(fixup, kLocalF64); in ConditionalExpression()
2049 current_function_builder_->FixupByte(fixup, kLocalF32); in ConditionalExpression()
2093 current_function_builder_->EmitI32Const(mask); in ValidateCall()
2094 current_function_builder_->Emit(kExprI32And); in ValidateCall()
2114 current_function_builder_->EmitI32Const(function_info->index); in ValidateCall()
2115 current_function_builder_->Emit(kExprI32Add); in ValidateCall()
2118 current_function_builder_->EmitSetLocal(tmp->get()); in ValidateCall()
2223 current_function_builder_->AddAsmWasmOffset(call_pos, to_number_pos); in ValidateCall()
2224 current_function_builder_->EmitWithU32V(kExprCallFunction, index); in ValidateCall()
2254 current_function_builder_->Emit(op); \ in ValidateCall()
2261 current_function_builder_->Emit(kExprF64##Name); \ in ValidateCall()
2263 current_function_builder_->Emit(kExprF32##Name); \ in ValidateCall()
2275 current_function_builder_->Emit(kExprF64Min); in ValidateCall()
2277 current_function_builder_->Emit(kExprF64Max); in ValidateCall()
2285 current_function_builder_->Emit(kExprF32Min); in ValidateCall()
2287 current_function_builder_->Emit(kExprF32Max); in ValidateCall()
2294 current_function_builder_->EmitSetLocal(tmp_x.get()); in ValidateCall()
2295 current_function_builder_->EmitTeeLocal(tmp_y.get()); in ValidateCall()
2296 current_function_builder_->EmitGetLocal(tmp_x.get()); in ValidateCall()
2298 current_function_builder_->Emit(kExprI32GeS); in ValidateCall()
2300 current_function_builder_->Emit(kExprI32LeS); in ValidateCall()
2302 current_function_builder_->EmitWithU8(kExprIf, kLocalI32); in ValidateCall()
2303 current_function_builder_->EmitGetLocal(tmp_x.get()); in ValidateCall()
2304 current_function_builder_->Emit(kExprElse); in ValidateCall()
2305 current_function_builder_->EmitGetLocal(tmp_y.get()); in ValidateCall()
2306 current_function_builder_->Emit(kExprEnd); in ValidateCall()
2316 current_function_builder_->EmitTeeLocal(tmp.get()); in ValidateCall()
2317 current_function_builder_->EmitGetLocal(tmp.get()); in ValidateCall()
2318 current_function_builder_->EmitI32Const(31); in ValidateCall()
2319 current_function_builder_->Emit(kExprI32ShrS); in ValidateCall()
2320 current_function_builder_->EmitTeeLocal(tmp.get()); in ValidateCall()
2321 current_function_builder_->Emit(kExprI32Xor); in ValidateCall()
2322 current_function_builder_->EmitGetLocal(tmp.get()); in ValidateCall()
2323 current_function_builder_->Emit(kExprI32Sub); in ValidateCall()
2325 current_function_builder_->Emit(kExprF64Abs); in ValidateCall()
2327 current_function_builder_->Emit(kExprF32Abs); in ValidateCall()
2354 current_function_builder_->EmitGetLocal(tmp->get()); in ValidateCall()
2355 current_function_builder_->AddAsmWasmOffset(call_pos, to_number_pos); in ValidateCall()
2356 current_function_builder_->Emit(kExprCallIndirect); in ValidateCall()
2357 current_function_builder_->EmitU32V(signature_index); in ValidateCall()
2358 current_function_builder_->EmitU32V(0); // table index in ValidateCall()
2360 current_function_builder_->AddAsmWasmOffset(call_pos, to_number_pos); in ValidateCall()
2361 current_function_builder_->Emit(kExprCallFunction); in ValidateCall()
2362 current_function_builder_->EmitDirectCallIndex(function_info->index); in ValidateCall()
2408 current_function_builder_->EmitI32Const( in ValidateHeapAccess()
2433 current_function_builder_->DeleteCodeAfter(heap_access_shift_position_); in ValidateHeapAccess()
2435 current_function_builder_->EmitI32Const(~(size - 1)); in ValidateHeapAccess()
2436 current_function_builder_->Emit(kExprI32And); in ValidateHeapAccess()
2463 current_function_builder_->Emit(kExprF32ConvertF64); in ValidateFloatCoercion()
2465 current_function_builder_->Emit(kExprF32SConvertI32); in ValidateFloatCoercion()
2467 current_function_builder_->Emit(kExprF32UConvertI32); in ValidateFloatCoercion()