Skip to content

Initial work on the new JavaScript port#4677

Draft
shai-almog wants to merge 7 commits intomasterfrom
javascript-port-initial-work
Draft

Initial work on the new JavaScript port#4677
shai-almog wants to merge 7 commits intomasterfrom
javascript-port-initial-work

Conversation

@shai-almog
Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 31, 2026

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented Mar 31, 2026

Compared 33 screenshots: 33 matched.

Native Android coverage

  • 📊 Line coverage: 7.59% (3875/51054 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 5.99% (19213/320928), branch 2.82% (880/31157), complexity 3.55% (1057/29811), method 6.24% (868/13901), class 10.35% (191/1845)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/712 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 7.59% (3875/51054 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 5.99% (19213/320928), branch 2.82% (880/31157), complexity 3.55% (1057/29811), method 6.24% (868/13901), class 10.35% (191/1845)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/712 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

@shai-almog shai-almog force-pushed the javascript-port-initial-work branch from bfdfa3c to 771920d Compare March 31, 2026 04:08
@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented Mar 31, 2026

Compared 33 screenshots: 33 matched.
✅ Native iOS screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 97 seconds

Detailed Performance Metrics

Metric Duration
Simulator Boot 1000 ms
Simulator Boot (Run) 1000 ms
App Install 5000 ms
App Launch 8000 ms
Test Execution 152000 ms

@shai-almog shai-almog force-pushed the javascript-port-initial-work branch from 771920d to 7b7456c Compare March 31, 2026 14:20
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 31, 2026

✅ ByteCodeTranslator Quality Report

Test & Coverage

  • Tests: 397 total, 0 failed, 2 skipped

Benchmark Results

  • Execution Time: 9842 ms

  • Hotspots (Top 20 sampled methods):

    • 22.62% java.lang.String.indexOf (394 samples)
    • 19.52% com.codename1.tools.translator.Parser.isMethodUsed (340 samples)
    • 16.25% java.util.ArrayList.indexOf (283 samples)
    • 5.34% com.codename1.tools.translator.BytecodeMethod.addToConstantPool (93 samples)
    • 4.71% java.lang.Object.hashCode (82 samples)
    • 2.76% java.lang.System.identityHashCode (48 samples)
    • 2.24% com.codename1.tools.translator.ByteCodeClass.markDependent (39 samples)
    • 1.95% com.codename1.tools.translator.BytecodeMethod.appendMethodC (34 samples)
    • 1.66% com.codename1.tools.translator.BytecodeMethod.equals (29 samples)
    • 1.44% com.codename1.tools.translator.BytecodeMethod.optimize (25 samples)
    • 1.44% com.codename1.tools.translator.Parser.generateClassAndMethodIndexHeader (25 samples)
    • 1.21% java.lang.StringBuilder.append (21 samples)
    • 1.09% com.codename1.tools.translator.ByteCodeClass.calcUsedByNative (19 samples)
    • 0.98% com.codename1.tools.translator.Parser.cullMethods (17 samples)
    • 0.98% com.codename1.tools.translator.BytecodeMethod.appendCMethodPrefix (17 samples)
    • 0.69% com.codename1.tools.translator.ByteCodeClass.isDefaultInterfaceMethod (12 samples)
    • 0.69% com.codename1.tools.translator.BytecodeMethod.isMethodUsedByNative (12 samples)
    • 0.63% java.util.Hashtable.get (11 samples)
    • 0.63% sun.nio.fs.UnixNativeDispatcher.open0 (11 samples)
    • 0.63% java.lang.StringCoding.encode (11 samples)
  • ⚠️ Coverage report not generated.

Static Analysis

  • ✅ SpotBugs: no findings (report was not generated by the build).
  • ⚠️ PMD report not generated.
  • ⚠️ Checkstyle report not generated.

Generated automatically by the PR CI workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant