-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasm: move common part of wasm expression generator in order to later…
… reuse it with Wasm GC BE
- Loading branch information
1 parent
7efb3c9
commit b096977
Showing
11 changed files
with
4,140 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...c/main/java/org/teavm/backend/wasm/generate/common/methods/BaseWasmGenerationContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2024 Alexey Andreev. | ||
* | ||
* 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. | ||
*/ | ||
package org.teavm.backend.wasm.generate.common.methods; | ||
|
||
import java.util.List; | ||
import org.teavm.backend.wasm.WasmFunctionRepository; | ||
import org.teavm.backend.wasm.WasmFunctionTypes; | ||
import org.teavm.backend.wasm.model.WasmTag; | ||
import org.teavm.model.ClassReaderSource; | ||
import org.teavm.model.ValueType; | ||
import org.teavm.model.lowlevel.CallSiteDescriptor; | ||
import org.teavm.model.lowlevel.Characteristics; | ||
|
||
public interface BaseWasmGenerationContext { | ||
Characteristics characteristics(); | ||
|
||
WasmFunctionRepository functions(); | ||
|
||
WasmFunctionTypes functionTypes(); | ||
|
||
BaseWasmTypeMapper typeMapper(); | ||
|
||
WasmTag getExceptionTag(); | ||
|
||
ClassReaderSource classSource(); | ||
|
||
List<CallSiteDescriptor> callSites(); | ||
} |
Oops, something went wrong.