reorganize

This commit is contained in:
Volker Berlin 2018-12-03 21:09:22 +01:00
parent c2c872024b
commit ae08d21281
28 changed files with 60 additions and 20 deletions

View File

@ -31,13 +31,13 @@ import javax.annotation.Nullable;
import de.inetsoftware.classparser.Member; import de.inetsoftware.classparser.Member;
import de.inetsoftware.jwebassembly.JWebAssembly; import de.inetsoftware.jwebassembly.JWebAssembly;
import de.inetsoftware.jwebassembly.module.ArrayOperator;
import de.inetsoftware.jwebassembly.module.FunctionName; import de.inetsoftware.jwebassembly.module.FunctionName;
import de.inetsoftware.jwebassembly.module.ModuleWriter; import de.inetsoftware.jwebassembly.module.ModuleWriter;
import de.inetsoftware.jwebassembly.module.NumericOperator;
import de.inetsoftware.jwebassembly.module.ValueType;
import de.inetsoftware.jwebassembly.module.ValueTypeConvertion; import de.inetsoftware.jwebassembly.module.ValueTypeConvertion;
import de.inetsoftware.jwebassembly.module.WasmBlockOperator; import de.inetsoftware.jwebassembly.wasm.ArrayOperator;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* Module Writer for binary format. http://webassembly.org/docs/binary-encoding/ * Module Writer for binary format. http://webassembly.org/docs/binary-encoding/

View File

@ -20,7 +20,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import de.inetsoftware.jwebassembly.module.ValueType; import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* An entry in the type section of the WebAssembly. * An entry in the type section of the WebAssembly.

View File

@ -17,7 +17,7 @@ package de.inetsoftware.jwebassembly.binary;
import java.io.IOException; import java.io.IOException;
import de.inetsoftware.jwebassembly.module.ValueType; import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* An entry in the global section of the WebAssembly. * An entry in the global section of the WebAssembly.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2017 Volker Berlin (i-net software) * Copyright 2017 - 2018 Volker Berlin (i-net software)
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -24,7 +24,7 @@ import java.nio.charset.StandardCharsets;
import javax.annotation.Nonnegative; import javax.annotation.Nonnegative;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import de.inetsoftware.jwebassembly.module.ValueType; import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* @author Volker Berlin * @author Volker Berlin

View File

@ -28,6 +28,9 @@ import javax.annotation.Nonnull;
import de.inetsoftware.classparser.CodeInputStream; import de.inetsoftware.classparser.CodeInputStream;
import de.inetsoftware.classparser.TryCatchFinally; import de.inetsoftware.classparser.TryCatchFinally;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* This calculate the goto offsets from Java back to block operations * This calculate the goto offsets from Java back to block operations

View File

@ -25,6 +25,10 @@ import de.inetsoftware.classparser.CodeInputStream;
import de.inetsoftware.classparser.ConstantPool; import de.inetsoftware.classparser.ConstantPool;
import de.inetsoftware.classparser.ConstantRef; import de.inetsoftware.classparser.ConstantRef;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;
import de.inetsoftware.jwebassembly.wasm.ArrayOperator;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* Convert Java Byte Code to a list of WasmInstruction. * Convert Java Byte Code to a list of WasmInstruction.

View File

@ -21,6 +21,7 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* This manager monitor the locale variables of a method to create a translation from the slot based index in Java to * This manager monitor the locale variables of a method to create a translation from the slot based index in Java to

View File

@ -33,6 +33,8 @@ import de.inetsoftware.classparser.LocalVariableTable;
import de.inetsoftware.classparser.MethodInfo; import de.inetsoftware.classparser.MethodInfo;
import de.inetsoftware.jwebassembly.JWebAssembly; import de.inetsoftware.jwebassembly.JWebAssembly;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.ValueTypeParser;
import de.inetsoftware.jwebassembly.watparser.WatParser; import de.inetsoftware.jwebassembly.watparser.WatParser;
/** /**

View File

@ -22,6 +22,10 @@ import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import de.inetsoftware.classparser.Member; import de.inetsoftware.classparser.Member;
import de.inetsoftware.jwebassembly.wasm.ArrayOperator;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* Module Writer base class. * Module Writer base class.

View File

@ -22,6 +22,8 @@ import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;
import de.inetsoftware.jwebassembly.wasm.ArrayOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* WasmInstruction for numeric operation. * WasmInstruction for numeric operation.

View File

@ -21,6 +21,9 @@ import java.io.IOException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* WasmInstruction for block operation. * WasmInstruction for block operation.
* *

View File

@ -21,6 +21,8 @@ import java.io.IOException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import de.inetsoftware.classparser.Member; import de.inetsoftware.classparser.Member;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.ValueTypeParser;
/** /**
* WasmInstruction for a function call. * WasmInstruction for a function call.

View File

@ -23,6 +23,10 @@ import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import de.inetsoftware.classparser.Member; import de.inetsoftware.classparser.Member;
import de.inetsoftware.jwebassembly.wasm.ArrayOperator;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* Base class for Code Building. * Base class for Code Building.

View File

@ -21,6 +21,7 @@ import java.io.IOException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* WasmInstruction for constant values. * WasmInstruction for constant values.

View File

@ -17,6 +17,8 @@ package de.inetsoftware.jwebassembly.module;
import java.io.IOException; import java.io.IOException;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* Cast operations for converting one data type to another * Cast operations for converting one data type to another
* *

View File

@ -21,6 +21,7 @@ import java.io.IOException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import de.inetsoftware.classparser.Member; import de.inetsoftware.classparser.Member;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* WasmInstruction for set and get global variables. * WasmInstruction for set and get global variables.

View File

@ -21,6 +21,8 @@ import java.io.IOException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* Base class of all WasmInstruction. * Base class of all WasmInstruction.
* *

View File

@ -21,6 +21,8 @@ import java.io.IOException;
import javax.annotation.Nonnegative; import javax.annotation.Nonnegative;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* WasmInstruction for load and store local variables. * WasmInstruction for load and store local variables.
* *

View File

@ -21,6 +21,8 @@ import java.io.IOException;
import javax.annotation.Nonnegative; import javax.annotation.Nonnegative;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* WasmInstruction for load and store local variables. * WasmInstruction for load and store local variables.
* *

View File

@ -20,6 +20,8 @@ import java.io.IOException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* WasmInstruction for nop. * WasmInstruction for nop.
* *

View File

@ -21,6 +21,9 @@ import java.io.IOException;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/** /**
* WasmInstruction for numeric operation. * WasmInstruction for numeric operation.
* *

View File

@ -24,13 +24,13 @@ import javax.annotation.Nullable;
import de.inetsoftware.classparser.Member; import de.inetsoftware.classparser.Member;
import de.inetsoftware.jwebassembly.JWebAssembly; import de.inetsoftware.jwebassembly.JWebAssembly;
import de.inetsoftware.jwebassembly.module.ArrayOperator;
import de.inetsoftware.jwebassembly.module.FunctionName; import de.inetsoftware.jwebassembly.module.FunctionName;
import de.inetsoftware.jwebassembly.module.ModuleWriter; import de.inetsoftware.jwebassembly.module.ModuleWriter;
import de.inetsoftware.jwebassembly.module.NumericOperator;
import de.inetsoftware.jwebassembly.module.ValueType;
import de.inetsoftware.jwebassembly.module.ValueTypeConvertion; import de.inetsoftware.jwebassembly.module.ValueTypeConvertion;
import de.inetsoftware.jwebassembly.module.WasmBlockOperator; import de.inetsoftware.jwebassembly.wasm.ArrayOperator;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* Module Writer for text format with S-expressions. * Module Writer for text format with S-expressions.

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package de.inetsoftware.jwebassembly.module; package de.inetsoftware.jwebassembly.wasm;
/** /**
* Operation on Arrays. * Operation on Arrays.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.inetsoftware.jwebassembly.module; package de.inetsoftware.jwebassembly.wasm;
/** /**
* @author Volker Berlin * @author Volker Berlin

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.inetsoftware.jwebassembly.module; package de.inetsoftware.jwebassembly.wasm;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package de.inetsoftware.jwebassembly.module; package de.inetsoftware.jwebassembly.wasm;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;

View File

@ -14,7 +14,7 @@
limitations under the License. limitations under the License.
*/ */
package de.inetsoftware.jwebassembly.module; package de.inetsoftware.jwebassembly.wasm;
/** /**
* Block operators in the WASM byte code. * Block operators in the WASM byte code.

View File

@ -24,11 +24,11 @@ import javax.annotation.Nonnull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import de.inetsoftware.jwebassembly.WasmException; import de.inetsoftware.jwebassembly.WasmException;
import de.inetsoftware.jwebassembly.module.NumericOperator;
import de.inetsoftware.jwebassembly.module.ValueType;
import de.inetsoftware.jwebassembly.module.ValueTypeConvertion; import de.inetsoftware.jwebassembly.module.ValueTypeConvertion;
import de.inetsoftware.jwebassembly.module.WasmBlockOperator;
import de.inetsoftware.jwebassembly.module.WasmCodeBuilder; import de.inetsoftware.jwebassembly.module.WasmCodeBuilder;
import de.inetsoftware.jwebassembly.wasm.NumericOperator;
import de.inetsoftware.jwebassembly.wasm.ValueType;
import de.inetsoftware.jwebassembly.wasm.WasmBlockOperator;
/** /**
* Parser for text format of a function. * Parser for text format of a function.