• Home
  • Raw
  • Download

Lines Matching refs:VisitResult

14 VisitResult ImplementationVisitor::Visit(Expression* expr) {  in Visit()
179 VisitResult expression_result = Visit(decl->expression); in Visit()
180 VisitResult return_result = in Visit()
259 VisitResult(result_var->type(), result_var)) in Visit()
318 base::Optional<VisitResult> init_result; in Visit()
333 VisitResult ImplementationVisitor::Visit(ConditionalExpression* expr) { in Visit()
341 VisitResult left, right; in Visit()
379 VisitResult condition_result = Visit(expr->condition); in Visit()
387 VisitResult left_result = {right.type(), f1 + "()"}; in Visit()
393 VisitResult right_result = {right.type(), f2 + "()"}; in Visit()
399 return VisitResult(common_type, result); in Visit()
402 VisitResult ImplementationVisitor::Visit(LogicalOrExpression* expr) { in Visit()
403 VisitResult left_result; in Visit()
418 VisitResult right_result = Visit(expr->right); in Visit()
427 return VisitResult(left_result.type(), in Visit()
435 VisitResult ImplementationVisitor::Visit(LogicalAndExpression* expr) { in Visit()
436 VisitResult left_result; in Visit()
451 VisitResult right_result = Visit(expr->right); in Visit()
460 return VisitResult(left_result.type(), in Visit()
468 VisitResult ImplementationVisitor::Visit(IncrementDecrementExpression* expr) { in Visit()
469 VisitResult value_copy; in Visit()
471 VisitResult current_value = in Visit()
476 VisitResult one = {TypeOracle::GetConstInt31Type(), "1"}; in Visit()
479 VisitResult assignment_value = GenerateCall( in Visit()
485 VisitResult ImplementationVisitor::Visit(AssignmentExpression* expr) { in Visit()
487 VisitResult assignment_value; in Visit()
489 VisitResult location_value = in Visit()
503 VisitResult ImplementationVisitor::Visit(NumberLiteralExpression* expr) { in Visit()
518 return VisitResult{result_type, temp}; in Visit()
521 VisitResult ImplementationVisitor::Visit(AssumeTypeImpossibleExpression* expr) { in Visit()
522 VisitResult result = Visit(expr->expression); in Visit()
528 return VisitResult{result_type, "UncheckedCast<" + in Visit()
533 VisitResult ImplementationVisitor::Visit(StringLiteralExpression* expr) { in Visit()
537 return VisitResult{TypeOracle::GetConstStringType(), temp}; in Visit()
540 VisitResult ImplementationVisitor::GetBuiltinCode(Builtin* builtin) { in GetBuiltinCode()
552 return VisitResult(type, code); in GetBuiltinCode()
555 VisitResult ImplementationVisitor::Visit(IdentifierExpression* expr) { in Visit()
589 VisitResult result = Visit(e); in Visit()
605 VisitResult expression_result = Visit(stmt->condition); in Visit()
776 VisitResult expression_result = Visit(stmt->expression); in Visit()
823 VisitResult expression_result = Visit(*stmt->value); in Visit()
824 VisitResult return_result = GenerateImplicitConvert( in Visit()
860 VisitResult expression_result = Visit(stmt->iterable); in Visit()
861 VisitResult begin = stmt->begin in Visit()
863 : VisitResult(TypeOracle::GetConstInt31Type(), "0"); in Visit()
865 VisitResult end = stmt->end in Visit()
881 VisitResult index_for_read = {index_var->type(), index_var}; in Visit()
893 VisitResult result = GenerateCall("<", {{index_for_read, end}, {}}); in Visit()
897 VisitResult element_result = in Visit()
912 VisitResult increment_result = GenerateCall("+", increment_args); in Visit()
1334 VisitResult ImplementationVisitor::GenerateCopy(const VisitResult& to_copy) { in GenerateCopy()
1339 return VisitResult(to_copy.type(), temp); in GenerateCopy()
1342 VisitResult ImplementationVisitor::Visit(StructExpression* decl) { in Visit()
1357 std::vector<VisitResult> expression_results; in Visit()
1359 VisitResult value = Visit(decl->expressions[expression_results.size()]); in Visit()
1367 [&](const VisitResult& result) { return RValueFlattenStructs(result); }); in Visit()
1369 return VisitResult(struct_type, result_var_name); in Visit()
1390 VisitResult result = Visit(expr->object); in GetLocationReference()
1402 std::string ImplementationVisitor::RValueFlattenStructs(VisitResult result) { in RValueFlattenStructs()
1415 VisitResult(field_variable->type(), field_variable)); in RValueFlattenStructs()
1424 VisitResult ImplementationVisitor::GenerateFetchFromLocation( in GenerateFetchFromLocation()
1441 VisitResult ImplementationVisitor::GenerateFetchFromLocation( in GenerateFetchFromLocation()
1448 return VisitResult(struct_type->GetFieldType(expr->field), in GenerateFetchFromLocation()
1458 VisitResult value) { in GenerateAssignToVariable()
1475 field_variable, VisitResult{source_field->type(), source_field}); in GenerateAssignToVariable()
1478 field_variable, VisitResult{field_variable->type(), in GenerateAssignToVariable()
1483 VisitResult casted_value = GenerateImplicitConvert(var->type(), value); in GenerateAssignToVariable()
1485 VisitResult var_value = {var->type(), var}; in GenerateAssignToVariable()
1494 VisitResult assignment_value) { in GenerateAssignToLocation()
1546 const base::Optional<VisitResult>& initialization) { in GeneratePredeclaredVariableDeclaration()
1558 const base::Optional<VisitResult>& initialization) { in GenerateVariableDeclaration()
1607 VisitResult ImplementationVisitor::GeneratePointerCall( in GeneratePointerCall()
1610 VisitResult callee_result = Visit(callee); in GeneratePointerCall()
1643 VisitResult result = in GeneratePointerCall()
1692 return VisitResult(type->return_type(), result_variable_name); in GeneratePointerCall()
1695 VisitResult ImplementationVisitor::GenerateCall( in GenerateCall()
1718 VisitResult result = in GenerateCall()
1822 return VisitResult(result_type, result_variable_name); in GenerateCall()
1857 VisitResult ImplementationVisitor::Visit(CallExpression* expr, in Visit()
1867 VisitResult result; in Visit()
1904 void ImplementationVisitor::GenerateBranch(const VisitResult& condition, in GenerateBranch()
1919 VisitResult expression_result = Visit(expression); in GenerateExpressionBranch()
1935 VisitResult ImplementationVisitor::GenerateImplicitConvert( in GenerateImplicitConvert()
1936 const Type* destination_type, VisitResult source) { in GenerateImplicitConvert()