From 3ec23fa3c92a3942f743b563b6b273a5de9ad9f4 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Thu, 25 Jul 2019 23:18:34 +0200 Subject: [PATCH] more predictable function order depending the call dependency --- src/de/inetsoftware/jwebassembly/module/FunctionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/module/FunctionManager.java b/src/de/inetsoftware/jwebassembly/module/FunctionManager.java index 9f40d15..19b0351 100644 --- a/src/de/inetsoftware/jwebassembly/module/FunctionManager.java +++ b/src/de/inetsoftware/jwebassembly/module/FunctionManager.java @@ -16,8 +16,8 @@ package de.inetsoftware.jwebassembly.module; import java.util.Collections; -import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; @@ -33,7 +33,7 @@ import de.inetsoftware.classparser.MethodInfo; */ public class FunctionManager { - private Map states = new HashMap<>(); + private Map states = new LinkedHashMap<>(); /** * Finish the prepare. Now no new function should be added.