Combine onions, garlic, fresh herbs, salt, and pepper with olive oil in a 10-inch sauté pan. Cook over high heat until vegetables begin to sizzle. Reduce heat to low, add mirin or sherry, cover, and simmer for 20–30 minutes or until onions are very soft. Stir often to prevent sticking.