2018-03-27 20:04:35 +02:00
|
|
|
/*
|
2019-03-02 21:54:27 +01:00
|
|
|
Copyright 2018 - 2019 Volker Berlin (i-net software)
|
2018-03-27 20:04:35 +02:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
*/
|
2018-12-03 21:09:22 +01:00
|
|
|
package de.inetsoftware.jwebassembly.wasm;
|
2018-03-25 12:57:04 +02:00
|
|
|
|
|
|
|
/**
|
2018-05-04 20:52:54 +02:00
|
|
|
* Block operators in the WASM byte code.
|
2018-03-25 12:57:04 +02:00
|
|
|
*
|
|
|
|
* @author Volker Berlin
|
|
|
|
*
|
|
|
|
*/
|
2018-05-04 20:52:54 +02:00
|
|
|
public enum WasmBlockOperator {
|
2018-04-02 11:53:12 +02:00
|
|
|
RETURN,
|
2018-03-25 12:57:04 +02:00
|
|
|
IF,
|
2018-03-27 20:04:35 +02:00
|
|
|
ELSE,
|
2018-03-25 12:57:04 +02:00
|
|
|
END,
|
2018-04-02 11:53:12 +02:00
|
|
|
DROP,
|
2018-05-03 22:57:44 +02:00
|
|
|
BLOCK,
|
2018-05-04 20:52:54 +02:00
|
|
|
BR,
|
2018-05-11 21:10:08 +02:00
|
|
|
BR_IF,
|
2018-05-04 20:52:54 +02:00
|
|
|
BR_TABLE,
|
2018-05-20 11:52:16 +02:00
|
|
|
LOOP,
|
2018-07-27 17:51:36 +02:00
|
|
|
UNREACHABLE,
|
2018-11-03 18:01:42 +01:00
|
|
|
TRY,
|
|
|
|
CATCH,
|
2019-03-02 21:54:27 +01:00
|
|
|
THROW,
|
|
|
|
RETHROW,
|
|
|
|
BR_ON_EXN,
|
2019-03-10 18:32:26 +01:00
|
|
|
MONITOR_ENTER,
|
|
|
|
MONITOR_EXIT,
|
2018-03-25 12:57:04 +02:00
|
|
|
}
|