mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
WASM: fix benchmark sample
This commit is contained in:
parent
ae896f3d90
commit
63bbb35cb1
|
@ -165,7 +165,8 @@
|
||||||
<debugInformationGenerated>true</debugInformationGenerated>
|
<debugInformationGenerated>true</debugInformationGenerated>
|
||||||
<targetType>WEBASSEMBLY</targetType>
|
<targetType>WEBASSEMBLY</targetType>
|
||||||
<optimizationLevel>FULL</optimizationLevel>
|
<optimizationLevel>FULL</optimizationLevel>
|
||||||
<heapSize>8</heapSize>
|
<minHeapSize>1</minHeapSize>
|
||||||
|
<maxHeapSize>16</maxHeapSize>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
|
@ -179,7 +180,8 @@
|
||||||
<debugInformationGenerated>true</debugInformationGenerated>
|
<debugInformationGenerated>true</debugInformationGenerated>
|
||||||
<targetType>C</targetType>
|
<targetType>C</targetType>
|
||||||
<optimizationLevel>FULL</optimizationLevel>
|
<optimizationLevel>FULL</optimizationLevel>
|
||||||
<heapSize>8</heapSize>
|
<minHeapSize>1</minHeapSize>
|
||||||
|
<maxHeapSize>16</maxHeapSize>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|
|
@ -93,7 +93,7 @@ var Benchmark = function() {
|
||||||
function tick() {
|
function tick() {
|
||||||
var exports = this.instance.exports;
|
var exports = this.instance.exports;
|
||||||
exports.tick();
|
exports.tick();
|
||||||
var exception = exports.sys_catchException();
|
var exception = exports.teavm_catchException();
|
||||||
if (exception !== 0) {
|
if (exception !== 0) {
|
||||||
console.log("Exception: " + exception);
|
console.log("Exception: " + exception);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user