-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jvm-sandboxing-transformer'
# Conflicts: # Lang/src/main/java/chipmunk/compiler/codegen/TryCatchVisitor.java # Lang/src/main/java/chipmunk/vm/ChipmunkVM.java
- Loading branch information
Showing
24 changed files
with
1,040 additions
and
40 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
27 changes: 27 additions & 0 deletions
27
Lang/src/main/java/chipmunk/compiler/codegen/FinallyBlock.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,27 @@ | ||
/* | ||
* Copyright (C) 2023 MyWorld, LLC | ||
* All rights reserved. | ||
* | ||
* This file is part of Chipmunk. | ||
* | ||
* Chipmunk is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Chipmunk is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Chipmunk. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package chipmunk.compiler.codegen; | ||
|
||
public class FinallyBlock extends BlockLabels { | ||
public FinallyBlock(String start, String end) { | ||
super(start, end); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
package chipmunk.vm; | ||
|
||
import chipmunk.vm.jvm.MethodIdentifier; | ||
import chipmunk.vm.jvm.TrapSite; | ||
|
||
public interface TrapHandler { | ||
|
||
void trap(TrapType type); | ||
default void runtimeTrap(Object payload){} | ||
|
||
default void backJump(TrapSite site){} | ||
default void methodCall(TrapSite site, MethodIdentifier method){} | ||
default Object postMethodCall(TrapSite site, MethodIdentifier method, Object result){ | ||
return result; | ||
} | ||
|
||
default void arrayAlloc(TrapSite site, Class<?> arrayClass, int dimensions, int capacity){} | ||
default Object postArrayAlloc(TrapSite site, Object array){ | ||
return array; | ||
} | ||
|
||
default void objectAlloc(TrapSite site, Class<?> type){} | ||
|
||
default Object postObjectInit(TrapSite site, Object object){ | ||
return object; | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.