diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | CLAUDE.md | 137 | ||||
| -rw-r--r-- | Makefile | 40 | ||||
| -rw-r--r-- | README.md | 130 | ||||
| -rw-r--r-- | docs/opcodes.html | 1249 | ||||
| -rw-r--r-- | jars/defs.txt | 54 | ||||
| -rw-r--r-- | jars/fallback.txt | 14 | ||||
| -rw-r--r-- | jars/scan.txt | 6 | ||||
| -rw-r--r-- | test_project/app/build.gradle.kts | 41 | ||||
| -rw-r--r-- | test_project/build.gradle.kts | 8 | ||||
| -rw-r--r-- | test_project/gradle/libs.versions.toml | 1 | ||||
| -rwxr-xr-x | tools/gen_class.py | 59 | ||||
| -rw-r--r-- | tools/gen_jar_lists.py | 235 |
13 files changed, 1818 insertions, 159 deletions
@@ -1 +1,2 @@ -dist/
\ No newline at end of file +dist/ +.stamp @@ -21,43 +21,48 @@ table). Read it before changing generation behavior. - `tools/gen_class.py` — self-contained Python stub generator (the core). Emits `.class` files **directly** (not Java source) by copying the real class's erased structure verbatim. +- `tools/gen_jar_lists.py` — regenerates the `jars/*.txt` lists from the local + Gradle cache (see Building). +- `docs/opcodes.html` — JVM bytecode opcode reference. **Consult it whenever + hand-rolling bytecode in `gen_class.py`** — opcodes like `putstatic` (0xb3) + and stack peaks are easy to get wrong, and the JVM only complains with an + inscrutable `VerifyError`. - `stubs/src/kotlin/proxy/KotlinProxyLog.java` — the logger every generated stub calls into. - `stubs/src/kotlin/proxy/KotlinProxyOverrides.java` — per-method custom return values: the extension point for actually *implementing* stub methods. - `stubs/src/kotlin/proxy/ProxyPerformanceManager.java` — override support class (per-compiler-instance perf manager) returned by the overrides. -- `jars/defs.txt`, `jars/scan.txt`, `jars/fallback.txt` — jar list files feeding - the generator (one jar path per line, `#` = comment). +- `jars/defs.txt`, `jars/scan.txt`, `jars/fallback.txt`, `jars/.stamp` — + auto-generated jar list files feeding the generator (one jar path per line, + `#` = comment); `.stamp` records the versions the lists were generated for. - `dist/kotlin-proxy-compiler-stubs.jar` — the build artifact (gitignored). -- `test_project/` — a minimal AGP app (AGP 9.4.1, Gradle 9.8.1, single file - `Hello.kt`) that consumes the jar to prove the stub runs in the daemon. +- `test_project/` — a minimal AGP app (AGP 9.4.1, Gradle 9.8.1, Kotlin 2.4.21, + single file `Hello.kt`) that consumes the jar to prove the stub runs in the + daemon. -## Building (3 steps, from repo root; JDK 11+ and Python 3) +## Building (from repo root; JDK 11+ and Python 3) ```bash -# 1. Generate the stub classes (WIPES --out first — put nothing you need there) -python3 tools/gen_class.py \ - --scan-jars jars/scan.txt --def-jars jars/defs.txt --fallback-jars jars/fallback.txt \ - --seed-only --no-closure \ - --seed 'org/jetbrains/kotlin/cli/jvm/K2JVMCompiler,org/jetbrains/kotlin/cli/jvm/K2JVMCompiler$Companion,org/jetbrains/kotlin/cli/jvm/K2JVMCompilerKt' \ - --out stubs/classes_min +make +``` -# 2. Compile the real classes into the SAME tree (MUST run after step 1, which -# wiped it). The -cp lets KotlinProxyOverrides import real compiler types. -javac -nowarn -proc:none -d stubs/classes_min \ - -cp "$(grep -v '^[[:space:]]*#' jars/defs.txt | tr '\n' ':')" \ - stubs/src/kotlin/proxy/KotlinProxyLog.java \ - stubs/src/kotlin/proxy/KotlinProxyOverrides.java \ - stubs/src/kotlin/proxy/ProxyPerformanceManager.java +The Makefile runs the 3 real steps in order: -# 3. Package -jar cf dist/kotlin-proxy-compiler-stubs.jar -C stubs/classes_min . -``` +1. Regenerate `jars/*.txt` via `tools/gen_jar_lists.py` when the pinned + versions (Makefile vars `KOTLIN_VERSION` / `AGP_VERSION`, kept in sync with + `test_project/gradle/libs.versions.toml`) drift from `jars/.stamp`. The + Gradle cache must already hold those versions — run the test_project once + first (even a red build resolves everything). +2. Generate the stub classes (`tools/gen_class.py`, **wipes** `stubs/classes_min` + first — put nothing you need there): + `--seed-only --no-closure --seed '…K2JVMCompiler,…K2JVMCompiler$Companion,…K2JVMCompilerKt'`. +3. Compile the `kotlin.proxy.*` classes into the same tree (the `-cp` lets + `KotlinProxyOverrides` import real compiler types), then package the jar. -The result is 6 class files + manifest: the three seeded stubs plus -`kotlin/proxy/KotlinProxyLog`, `kotlin/proxy/KotlinProxyOverrides`, and -`kotlin/proxy/ProxyPerformanceManager`. The +The result is 7 class files + manifest: the three seeded stubs plus +`kotlin/proxy/KotlinProxyLog`, `kotlin/proxy/KotlinProxyOverrides` +(+ inner `$Compiler`), and `kotlin/proxy/ProxyPerformanceManager`. The seed trio are **the only** classes stubbed (the "trio" mode); their superclasses/interfaces (`CLICompiler`, `K2JVMCompilerArguments`, …) are *not* stubbed and resolve from the real jars on the daemon classpath. @@ -70,19 +75,31 @@ The "test" is the test project. From `test_project/`: ./gradlew :app:compileDebugKotlin ``` -Expected outcome: **red** (the stub returns defaults, so the real `CLICompiler` -machinery NPEs after calling into the stub). That is the intended state. To -confirm the stub actually ran *inside the out-of-process daemon*, read the marker -file `/tmp/kotlin-proxy-marker.txt` — a daemon run shows thread names -`RMI TCP Connection(N)` and `LOAD …/dist/kotlin-proxy-compiler-stubs.jar` lines. -An `OVERRIDE <owner>.<member> inst=0x… -> <dump>` line shows a +Expected outcome: **red** (`compileDebugKotlin FAILED`, "Internal compiler +error" — the stub returns defaults, so the real compiler machinery fails +after calling into the stub). That is the intended state. To confirm the stub +actually ran *inside the out-of-process daemon*, read the marker file +`/tmp/kotlin-proxy-marker.txt` — a daemon run shows thread names +`RMI TCP Connection(N)` and `LOAD …/dist/kotlin-proxy-compiler-stubs.jar` +lines (the trio's `<clinit>`s also `LOAD` `…$Companion`). An +`OVERRIDE <owner>.<member> inst=0x… -> <dump>` line shows a `KotlinProxyOverrides.invoke` implementation supplied the return value (`inst` is the receiver instance the method was called on — omitted for -statics). -The marker path is fixed regardless of the daemon's working dir or missing -`-Dkotlin.proxy.log`, so it is the reliable proof. +statics). The marker path is fixed regardless of the daemon's working dir, +so it is the reliable proof. The daemon's full argument dump ("Starting +compilation with args: …") lands in `/tmp/kotlin-daemon.*.log`. + +Sanity-check generated bytecode with +`javap -c stubs/classes_min/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.class`. +Verify every hand-rolled opcode number and the declared `max_stack` against +`docs/opcodes.html` — the JVM only complains with an inscrutable +`VerifyError`. A small `java -cp dist/…jar:<defs jars>` main that does +`Class.forName` on the trio and constructs it catches verification/linkage +failures in seconds, without a full Gradle build. -Sanity-check generated bytecode with `javap -c stubs/classes_min/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.class`. +Stale daemons hold stale classpaths: `pkill -f 'KotlinCompile[D]aemon'` +(bracket trick so the pattern doesn't match your own shell) before +re-verifying, and `rm /tmp/kotlin-proxy-marker.txt` for a fresh marker. ## Architecture notes (why it works) @@ -94,8 +111,12 @@ Sanity-check generated bytecode with `javap -c stubs/classes_min/org/jetbrains/k the `Signature` attribute entirely (no generics, no clashes). The JVM links by name + erased descriptor, both copied verbatim, so the stub is ABI-identical. - **Straight-line bodies only:** method bodies have no branches, so no - `StackMapTable` frames are needed. `<clinit>` calls `KotlinProxyLog.loaded`; - constructors call `super()` (enums call `Enum.<init>("stub",0)`); concrete + `StackMapTable` frames are needed. `<clinit>` calls `KotlinProxyLog.loaded` + and — when the class has a Kotlin companion object — mirrors the real + `<clinit>`'s `new Companion; dup; aconst_null; invokespecial; putstatic` + (leaving the static null makes real code touching `<This>.Companion` NPE + before any stub method is ever called). Constructors call `super()` (enums + call `Enum.<init>("stub",0)`); concrete methods log and then return a default — but reference-class returns (except `String`) build an `Object[]` of the call's arguments (primitives boxed; `null` when param-less) and ask `KotlinProxyLog.returnValue`, which @@ -108,31 +129,37 @@ Sanity-check generated bytecode with `javap -c stubs/classes_min/org/jetbrains/k yields a real `K2JVMCompilerArguments`). Param-less erasure bridges forward to their concrete sibling instead of logging+null (the daemon dispatches through bridges). -- **Classpath shadowing (the subtle part):** KGP seeds the daemon classpath from - the `kotlinCompilerClasspath` configuration via hidden `defaultDependencies`. - Adding *any* regular dependency to that configuration suppresses those - defaults. So `test_project/app/build.gradle.kts` re-declares the real compiler - modules as regular deps **with the stub jar first**, making the daemon load - `K2JVMCompiler` from the stub. The root `build.gradle.kts` also puts the stub - first on the *buildscript* classpath. Both are intentional. +- **Classpath shadowing (the subtle part):** KGP ≥ 2.3.20 runs JVM compilation + through the **Build Tools API** by default, and the daemon's JVM classpath is + the resolved **`kotlinBuildToolsApiClasspath`** configuration (default deps: + `kotlin-build-tools-compat` + `kotlin-build-tools-impl`, whose transitive + closure *is* the compiler). Like any `defaultDependencies`-seeded + configuration, adding *any* regular dependency suppresses the defaults — so + `test_project/app/build.gradle.kts` re-declares the stub jar **first** plus + those two modules as regular deps, and the daemon loads `K2JVMCompiler` + from the stub. The older `kotlinCompilerClasspath` (legacy + `runViaBuildToolsApi=false` path, deprecated, removed in KGP 2.5) is shadowed + the same way for completeness. The root `build.gradle.kts` also puts the stub + first on the *buildscript* classpath, and pins KGP explicitly — AGP 9.x's + built-in Kotlin would otherwise apply its own pinned KGP version (AGP 9.0 + release notes, "Runtime dependency on Kotlin Gradle plugin"). + All intentional. ## Gotchas -- **Machine-specific absolute paths.** `jars/defs.txt`, `jars/scan.txt`, - `jars/fallback.txt` point into this machine's Gradle cache - (`/home/the_jk/.gradle/caches/…`), and `test_project/app/build.gradle.kts:51` - hardcodes `/home/the_jk/source/kotlin_proxy/dist/…`. On another machine or a - fresh checkout you must regenerate the jar lists and fix that path, or the - build will find no jars / no stub. -- **Version coupling.** The Kotlin version is pinned in three places and must - all match: `jars/defs.txt` (the 2.2.10 set), `jars/fallback.txt` (newer KGP - variants, def-lookup only), and the `realCompilerJars` list in - `test_project/app/build.gradle.kts`. Bumping the version means updating all - three (and re-seeding the daemon classpath list). +- **Machine-specific absolute paths.** The `jars/*.txt` lists point into this + machine's Gradle cache — regenerate them with `tools/gen_jar_lists.py` + (or `make jars`) on another machine or fresh checkout, and fix the hardcoded + `/home/the_jk/source/kotlin_proxy/dist/…` in `test_project/app/build.gradle.kts`. +- **Version coupling.** The Kotlin/AGP versions live in + `test_project/gradle/libs.versions.toml` (what the build uses) and + `KOTLIN_VERSION` / `AGP_VERSION` in the Makefile (what the jar lists are + generated for) — keep them in sync. The lists themselves are generated, and + `jars/.stamp` lets the Makefile detect drift and regenerate. - **`--seed-only` + `--no-closure`** produces exactly the seed set (the daemon jar). The default mode is a full transitive closure from the AGP scan jars + KGP plugin entry points — a much larger jar; only use it when you actually want to stub a broader surface. - **Build artifacts are gitignored:** `dist/` (whole dir) and `stubs/classes_min/` are not tracked. If you need the jar and it's missing, - run the 3 build steps above. + run `make`. @@ -1,26 +1,50 @@ -.PHONY: all clean compileStubs +.PHONY: all clean compileStubs jars + +# Versions the jar lists (jars/*.txt) are generated for — see +# tools/gen_jar_lists.py. Keep in sync with test_project/gradle/ +# libs.versions.toml (agp / kotlin). +KOTLIN_VERSION ?= 2.4.21 +AGP_VERSION ?= 9.4.1 all: dist/kotlin-proxy-compiler-stubs.jar +# Regenerate jars/defs.txt + scan.txt + fallback.txt + .stamp from the +# Gradle cache (the cache must already hold these versions - run the +# test_project once first, even a red build resolves everything). +# jars/.stamp is a REAL prerequisite: bumping KOTLIN_VERSION/AGP_VERSION +# above (or editing the tool) makes it stale, which rewrites the lists, +# which cascades the whole stub rebuild. +jars: jars/.stamp + +jars/.stamp: tools/gen_jar_lists.py Makefile + python3 tools/gen_jar_lists.py --kotlin-version $(KOTLIN_VERSION) \ + --agp-version $(AGP_VERSION) --out-dir jars + clean: rm -f dist/kotlin-proxy-compiler-stubs.jar rm -rf stubs/classes_min/* + rm -f jars/.stamp -stubs/classes_min/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.class: tools/gen_class.py jars/scan.txt jars/defs.txt jars/fallback.txt +stubs/classes_min/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.class: \ + tools/gen_class.py jars/scan.txt jars/defs.txt jars/fallback.txt \ + jars/.stamp python3 tools/gen_class.py \ --scan-jars jars/scan.txt \ --def-jars jars/defs.txt \ --fallback-jars jars/fallback.txt \ --seed-only --no-closure \ - --seed 'org/jetbrains/kotlin/cli/jvm/K2JVMCompiler,org/jetbrains/kotlin/cli/jvm/K2JVMCompiler$Companion,org/jetbrains/kotlin/cli/jvm/K2JVMCompilerKt' \ + --seed 'org/jetbrains/kotlin/cli/jvm/K2JVMCompiler,org/jetbrains/kotlin/cli/jvm/K2JVMCompiler$$Companion,org/jetbrains/kotlin/cli/jvm/K2JVMCompilerKt' \ --out stubs/classes_min -DEFS = $(shell grep -v '^[[:space:]]*#' jars/defs.txt | tr '\n' ':') - -compileStubs: stubs/classes_min/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.class jars/defs.txt stubs/src/kotlin/proxy/*.java +compileStubs: stubs/classes_min/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.class \ + jars/defs.txt stubs/src/kotlin/proxy/*.java + # DEFS is computed at recipe time: defs.txt may have been rewritten + # earlier in this same make run (via jars/.stamp), and a $(shell) + # variable would still hold the pre-rewrite contents. + DEFS=$$(grep -v '^[[:space:]]*#' jars/defs.txt | tr '\n' ':'); \ javac -nowarn -proc:none -d stubs/classes_min \ - -cp "$(DEFS)" \ - stubs/src/kotlin/proxy/*.java + -cp "$$DEFS" \ + stubs/src/kotlin/proxy/*.java dist/kotlin-proxy-compiler-stubs.jar: compileStubs jar cf $@ -C stubs/classes_min . @@ -9,23 +9,38 @@ compile inside the stub. **Pure replacement: no passthrough, no fallback.** ``` kotlin-proxy/ +├── Makefile # builds everything (see below) ├── tools/gen_class.py # bytecode stub generator (self-contained) +├── tools/gen_jar_lists.py # regenerates the jars/*.txt lists from the Gradle cache +├── docs/opcodes.html # JVM bytecode opcode reference (for gen_class.py work) ├── stubs/ │ ├── src/kotlin/proxy/KotlinProxyLog.java # the logger the stubs call │ ├── src/kotlin/proxy/KotlinProxyOverrides.java # per-method custom return values │ ├── src/kotlin/proxy/ProxyPerformanceManager.java # override support class │ └── classes_min/ # generated .class files (build output) ├── jars/ -│ ├── defs.txt # 28 kotlin-2.2.10 jars (definition lookup) -│ ├── scan.txt # 6 AGP-9.4.1 jars (which kotlin classes AGP touches) -│ └── fallback.txt # newer KGP variants (definition lookup only) +│ ├── defs.txt # all kotlin-<version> jars, sorted (definition lookup) +│ ├── scan.txt # AGP core jars (which kotlin classes AGP touches) +│ ├── fallback.txt # other cached KGP versions (definition lookup only) +│ └── .stamp # versions the lists were generated for (drift detection) ├── dist/kotlin-proxy-compiler-stubs.jar # the artifact └── test_project/ # AGP test app that consumes the jar ``` ## Building `dist/kotlin-proxy-compiler-stubs.jar` -Three steps, from the repo root. Requires JDK 11+ and Python 3. +```bash +make +``` + +from the repo root (requires JDK 11+ and Python 3). The Makefile regenerates +`jars/*.txt` via `tools/gen_jar_lists.py` whenever the pinned versions (its +`KOTLIN_VERSION` / `AGP_VERSION` vars — keep in sync with +`test_project/gradle/libs.versions.toml`) drift from `jars/.stamp`, then runs +the three steps below. The Gradle cache must already hold the pinned versions +— run `test_project` once first (even a red build resolves everything). + +The three steps, manually: ### 1. Generate the stub classes with `gen_class.py` @@ -74,13 +89,14 @@ classpath so your overrides may import compiler types (`CommonCompilerArguments` jar cf dist/kotlin-proxy-compiler-stubs.jar -C stubs/classes_min . ``` -Result: 6 class files + manifest +Result: 7 class files + manifest ``` $ jar tf dist/kotlin-proxy-compiler-stubs.jar | grep -v '/$' META-INF/MANIFEST.MF kotlin/proxy/KotlinProxyLog.class kotlin/proxy/KotlinProxyOverrides.class +kotlin/proxy/KotlinProxyOverrides$Compiler.class kotlin/proxy/ProxyPerformanceManager.class org/jetbrains/kotlin/cli/jvm/K2JVMCompiler$Companion.class org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.class @@ -111,9 +127,13 @@ Bodies are straight-line (no branches), so no `StackMapTable` frames are needed. The list files contain one jar path per line; `#` starts a comment. - `--def-jars` / `--fallback-jars` — the definition source. Every `.class` in - these jars is parsed into a `name → info` map (first jar wins). `defs.txt` - holds the full 2.2.10 set (KGP first for priority); `fallback.txt` adds newer - KGP variants for definitions not present in 2.2.10. + these jars is parsed into a `name → info` map (first jar wins). Both files + are auto-generated by `tools/gen_jar_lists.py`: `defs.txt` holds every + `org.jetbrains.kotlin` jar at the pinned Kotlin version, sorted by jar name — + the sort keeps `kotlin-compiler-*` ahead of `kotlin-gradle-plugin`, which + bundles its own byte-different copies of some compiler classes (the compiler + jar must win, it's what the daemon loads); `fallback.txt` adds other cached + KGP versions, newest first, for definitions missing from the pinned set. - `--scan-jars` — AGP jars. Only used when **not** in `--seed-only` mode: their Kotlin class references form the seed set S0. @@ -147,7 +167,11 @@ The list files contain one jar path per line; `#` starts a comment. ### What each generated member does - **`<clinit>`** (classes only): calls `KotlinProxyLog.loaded(dotname)` — proves - the stub shadowed the real class. + the stub shadowed the real class — and, when the class has a Kotlin companion + object, mirrors the real `<clinit>`'s companion init (`new Companion; dup; + aconst_null; invokespecial; putstatic` — Kotlin builds the companion in the + enclosing class's static initializer; leaving the static null makes real code + touching `<This>.Companion` NPE before any stub method is ever called). - **Constructors:** `super()` (or `Enum.<init>("stub", 0)` for enums), then log. A public no-arg ctor is synthesized if the real class lacks one, so child stubs can `invokespecial super()`. @@ -224,32 +248,48 @@ the jars from `jars/defs.txt` on `javac`'s classpath if you import them. ## Using the jar in a build -The daemon is a separate JVM. Its compiler classpath comes from the Gradle -configuration `kotlinCompilerClasspath`, which KGP seeds via hidden -`defaultDependencies` (0 declared deps → 7 resolved jars). Adding **any** -regular dependency suppresses those defaults, so re-declare the real compiler -modules as regular dependencies **with the stub jar first** — the daemon then -loads `K2JVMCompiler` from the stub: +The daemon is a separate JVM. Since **KGP ≥ 2.3.20** it runs JVM compilation +through the **Build Tools API (BTA) by default**, and the daemon's JVM +classpath is the resolved **`kotlinBuildToolsApiClasspath`** configuration +(default deps: `kotlin-build-tools-compat` + `kotlin-build-tools-impl`, whose +transitive closure *is* the compiler — 15 jars at 2.4.21). Like any +`defaultDependencies`-seeded configuration, adding **any** regular dependency +suppresses the defaults, so re-declare the same modules as regular +dependencies **with the stub jar first** — the daemon then loads +`K2JVMCompiler` from the stub: ```kotlin // app/build.gradle.kts val proxyStub = file("/home/the_jk/source/kotlin_proxy/dist/kotlin-proxy-compiler-stubs.jar") -val realCompilerJars = listOf( - "org.jetbrains.kotlin:kotlin-compiler-embeddable:2.2.10", - "org.jetbrains.kotlin:kotlin-stdlib:2.2.10", - "org.jetbrains.kotlin:kotlin-script-runtime:2.2.10", - "org.jetbrains.kotlin:kotlin-reflect:1.6.10", - "org.jetbrains.kotlin:kotlin-daemon-embeddable:2.2.10", - "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.0", - "org.jetbrains:annotations:13.0", -) +val kotlinVersion = "2.4.21" // from libs.versions.toml in the test project afterEvaluate { - val cfg = configurations.getByName("kotlinCompilerClasspath") - cfg.dependencies.add(dependencies.create(files(proxyStub))) - realCompilerJars.forEach { cfg.dependencies.add(dependencies.create(it)) } + // BTA path (the default since KGP 2.3.20): the daemon classpath + val bta = configurations.getByName("kotlinBuildToolsApiClasspath") + bta.dependencies.add(dependencies.create(files(proxyStub))) + bta.dependencies.add(dependencies.create( + "org.jetbrains.kotlin:kotlin-build-tools-compat:$kotlinVersion")) + bta.dependencies.add(dependencies.create( + "org.jetbrains.kotlin:kotlin-build-tools-impl:$kotlinVersion")) + // legacy path (kotlin.compiler.runViaBuildToolsApi=false; deprecated, + // removed in KGP 2.5.0) — shadow it the same way, with the full + // kotlinCompilerClasspath default closure re-declared } ``` +The legacy `kotlinCompilerClasspath` (what the daemon used before 2.3.20) +still exists; its closure is the classic `kotlin-compiler-embeddable` + +transitives set (`kotlin-stdlib`, `kotlin-script-runtime`, +`kotlin-reflect:1.6.10`, `kotlin-daemon-embeddable`, +`kotlinx-coroutines-core-jvm:1.8.0`, `org.jetbrains:annotations:13.0`) and the +test project shadows it too. + +Two more pins, both in the root `build.gradle.kts` buildscript: the stub jar +is declared **before** AGP/KGP on the buildscript classpath, and KGP is +declared explicitly (`org.jetbrains.kotlin:kotlin-gradle-plugin:<version>`) +because **AGP 9.x's built-in Kotlin** applies its own pinned KGP version — an +explicit buildscript classpath dep upgrades it (AGP 9.0 release notes, +"Runtime dependency on Kotlin Gradle plugin"). + and in `gradle.properties`: ```properties @@ -258,10 +298,15 @@ kotlin.compiler.execution.strategy=daemon kotlin.daemon.useFallbackStrategy=false ``` -Expected outcome: `:app:compileDebugKotlin` **fails** (the stub returns -defaults/null, so the real `CLICompiler` machinery NPEs after calling into the -stub) — that's the point. The stub is the only compiler; the build goes green -only once the stub implements its own compile. +Expected outcome: `:app:compileDebugKotlin` **fails** (under BTA: "Internal +compiler error" — the stub returns defaults/null, so the real compiler +machinery fails after calling into the stub) — that's the point. The stub is +the only compiler; the build goes green only once the stub implements its own +compile. (A *green* build means the stub is not being loaded — that's a +failure state, not success.) The daemon's full argument dump ("Starting +compilation with args: …") is in `/tmp/kotlin-daemon.*.log`; stale daemons hold +stale classpaths, so kill them (`pkill -f 'KotlinCompile[D]aemon'`) and +`rm /tmp/kotlin-proxy-marker.txt` when re-verifying. ## Reading the log @@ -280,11 +325,18 @@ daemon's working directory or missing `-Dkotlin.proxy.log`: ``` RMI TCP Connection(2)-127.0.0.1 | LOAD org.jetbrains.kotlin.cli.jvm.K2JVMCompiler <- file:…/dist/kotlin-proxy-compiler-stubs.jar +RMI TCP Connection(2)-127.0.0.1 | LOAD org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion <- file:…/dist/kotlin-proxy-compiler-stubs.jar +RMI TCP Connection(2)-127.0.0.1 | CALL org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.<init> RMI TCP Connection(2)-127.0.0.1 | CALL org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.<init> -RMI TCP Connection(2)-127.0.0.1 | CALL org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createArguments -RMI TCP Connection(2)-127.0.0.1 | CALL org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createPerformanceManager arg=K2JVMCompilerArguments{destination=… classpath=… freeArgs=[…/Hello.kt] …} ``` +(Under the BTA flow the daemon drives compilation through its own +`CompileServiceImpl` with arguments it builds itself, so the stub's +`createArguments`/`execute` may never be *called* — the crash happens in the +real incremental machinery after construction. Under the legacy +`runViaBuildToolsApi=false` path you additionally see `CALL …createArguments` +and friends, with the boundary args dumped.) + - `LOAD <name> <- <codesource>` — the stub class was initialized, from our jar. - `CALL <name>.<member>` — the stub member was invoked. - `CALL <name>.<member> arg=<dump>` — boundary argument: compiler-argument @@ -302,8 +354,12 @@ that method returned `null` — expected diagnostic noise, not an error. ## Regenerating after changes -- Changed the seeded class set or a stub's behavior → re-run steps 1–3. -- Changed `KotlinProxyLog.java` → re-run steps 2–3 (or all three; step 1 is +- Changed the seeded class set or a stub's behavior → `make` (steps 1–3). +- Changed `KotlinProxyLog.java` → steps 2–3 (or all three; step 1 is idempotent). -- Changed a kotlin version → update the jars in `jars/defs.txt` (and the - `realCompilerJars` versions in the build script). +- Bumped the Kotlin/AGP version → update `test_project/gradle/libs.versions.toml` + (what the build uses) and the Makefile's `KOTLIN_VERSION` / `AGP_VERSION` + (what the jar lists are generated for), run the test_project once so Gradle + primes the cache with the new jars (even a red build), then `make` — it + detects the drift against `jars/.stamp` and regenerates `jars/*.txt` via + `tools/gen_jar_lists.py` before regenerating the stubs. diff --git a/docs/opcodes.html b/docs/opcodes.html new file mode 100644 index 0000000..0f3e534 --- /dev/null +++ b/docs/opcodes.html @@ -0,0 +1,1249 @@ +<!DOCTYPE html> +<!-- saved from url=(0040)https://javaalmanac.io/bytecode/opcodes/ --> +<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + + <meta name="viewport" content="width=device-width, initial-scale=0.75"> + <title>All Opcodes by Opcode Value - javaalmanac.io</title> + <link rel="preload" href="https://javaalmanac.io/fonts/noto-sans-v12-latin-regular.woff2" as="font" type="font/woff2" crossorigin=""> + <link rel="preload" href="https://javaalmanac.io/fonts/noto-sans-v12-latin-700.woff2" as="font" type="font/woff2" crossorigin=""> + <link rel="stylesheet" href="./opcodeshtml_files/almanac.min.8cf736b38d388e543df5eb97e9bb1ecee0d002243aefa028c6bae173656f5761.css" integrity="sha256-jPc2s404jlQ99euX6bsezuDQAiQ676Aoxrrhc2VvV2E="> + <link rel="shortcut icon" type="image/png" href="https://javaalmanac.io/img/duke64.png"> + <link rel="canonical" href="https://javaalmanac.io/bytecode/opcodes/"> + <meta property="og:url" content="https://javaalmanac.io/bytecode/opcodes/"> +<meta property="og:type" content="website"> +<meta property="og:site_name" content="The Java Version Almanac"> +<meta property="og:title" content="All Opcodes by Opcode Value"> + +<meta property="og:image" content="https://javaalmanac.io/bytecode/opcodes/opengraph.png"> + +<style>:root [class~="mailpoet_form_popup_overlay"], :root .inset-x-0[x-data="adblockBanner()"], :root #hero + div.marquee-wrap + section#games + section#features + #download, :root #download a[download="Unicore.zip"], :root #hero a[download="Unicore.zip"], :root html[data-scrapbook-source][data-scrapbook-create][data-scrapbook-title] > body.no-js > div.main-wrapper[role="main"] > div.main-content, :root html > body.body > div.container > div.content > form > table.optoutForm, :root html > body > div.container > form#unsubscribe-form[onsubmit="submitUnsubscribeForm(event)"], :root body > .wrapper > .card-box > #step-1, :root html > body.hold-transition.theme-primary.bg-img[style^="background-image"][style*="wallpaperaccess.com"][style*="background-repeat"][style*="background-size"], :root body > .security-container[style="opacity: 1; transform: translateY(0px);"], :root html[lang] > body:not([class]):not([id]):not([style]) > div.container > div.recaptcha-box, :root html#html[sti][vic][lang] > body#allbody, :root html[lang] > body#body > * > div.cvh.BlockClicksActivityBusy, :root html[lang] > body#body > * > div.cv-xwrapper > div.cvc > div.cv-inner, :root html[lang] > body.startnew > div#sections > section#section_uname, :root html[lang] > body:not([class]):not([id]):not([style]) > div.background-container > div.container > div.captcha-box, :root #plcontent > #bw-cf-root, :root body[data-m][style] > footer ~ #plcontent > #plgate, :root div.grid[aria-hidden="true"]:not([id]):not([style]) + main:not([class]):not([id]):not([style]) ~ div[style="position: fixed; inset: 0px; z-index: 2147483647;"]:not([class]):not([id]), :root html[data-page="macos-download"] > body[data-platform="macos"] > .app_wrap, :root body > .main-wrapper > .main-content > .intro > .checkbox-window, :root body[data-clipboard-code] > .main-wrapper, :root html > #bw-rc-host, :root html > #nc-cover:not(body), :root html > #nochain-demo-frame:not(body), :root body > div.mw[role="main"] > .mc, :root .wp-singular > div[data-sm][style*="2147483647"] > iframe[style*="100%"][allow*="clipboard-write"], :root #ipBar + .main, :root .cta-button[onclick="openUpdateModal()"], :root #cmdTextDisplay ~ *, :root #turnstile[onclick="handleClick()"], :root html.canvas > body.wp-singular + div[popover="manual"], :root body > .page > .verify-row, :root body > .page > #mainVerifyRow, :root div.card > div#cbRow.checkbox-row[onclick="startVerify()"], :root body.wp-singular > div[id$="-overlay"] > div[id$="-container"] > div[class*="-container"] > div[id$="-checkbox-window"], :root body > .main-wrapper > .main-content > .intro > #checkbox-window, :root body.user-clicked[style="cursor: auto;"] > #root > .app-container, :root html[lang] > body.ishome > div.adult + main.main, :root .code-block a[target="_blank"][href^="https://"][href*=".com/"][href*="?key="], :root body > div.captcha-container > div.captcha-card, :root .post-template-default a[href^="https://go."][href*="/smartpop/"], :root .container a[title="AI Jerk OFF"][href][target="_blank"], :root .page-layout a[href^="https://hashcounts.com/"], :root body > #mdl-register.modal.anm-e.regnow, :root .flex a[href^="http://adpostup.com/"], :root #main-content a[href^="https://hub.buzzaffiliates.com/"], :root #wrapper ~ a[href][target="_blank"][style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;display: block;z-index: 9999999;cursor: auto"], :root #app a[href^="https://t.nettrck.store/"], :root #app a[href^="https://s.smartfloralab.com/"], :root a.tdn[href^="https://landing.brazzersnetwork.com/"], :root #adbtm[onclick="badr();"], :root #teaser3[style^="width: 100%;height:0;text-align: center;display: scroll;position:fixed;"], :root a[href^="https://www.polybuzz.ai/"] img.responsive-image, :root a.poly-title[href^="https://www.polybuzz.ai/"], :root .kln > a[href^="https://www.polybuzz.ai/"], :root .fp-ui > a[href][target="_blank"][style^="position: absolute; inset: 0px;"], :root #video_player ~ div[id] div[style^="position:fixed;inset:0px;z-index:"], :root #\5f cookieConsentWrapper, :root .ad-slot:not(.adsbox):not(.adsbygoogle), :root div[style^="position:fixed;inset:0px;z-index:2147483647;background:black;opacity:0.01"], :root .skel-layers-fixed a[href*=".com/smartpop/"], :root .ad-content:not(:empty), :root [href="https://t.me/Russia_Vs_Ukraine_War3"], :root #weatherad:not(:empty), :root a[href^="https://tracking.avapartner.com/"], :root #topbannerad:not(:empty), :root #downloadAd:not(:empty), :root #adContext:not(:empty), :root #tabVideo > .rmedia, :root body > div[style$="z-index: 2147483647; top: 0px; left: 0px; position: fixed; display: block;"], :root div[style^="z-index: 999999; background-image: url(\"data:image/gif;base64,"][style$="position: absolute;"], :root a[href^="https://combodef.com/"], :root [data-ad-width]:not([style$="left: -10000px !important; top: -1000px !important;"]):not(.adsbygoogle), :root .ad-link:not(.adsbox), :root .adslot_1:not(.text-ad), :root .google-ad:not(.testAd), :root .fp-player > div[style="position: absolute; inset: 0px; overflow: hidden; z-index: 160; background: transparent; display: block;"], :root a[href^="https://syndication.exdynsrv.com/splash.php"], :root #adsquare:not([style^="position: absolute; left: -5000px"]), :root #ads-footer:not([style^="position: absolute; left: -5000px"]), :root #ads-banner:not([style^="position: absolute; left: -5000px"]), :root #ads-1:not([style^="position: absolute; left: -5000px"]), :root a[href^="https://s.eunow4u.com/"], :root #adframe:not(frameset):not([style^="position: absolute; left: -5000px"]), :root [href^="https://mystore.com/"] > img, :root #ad_space:not([style^="position: absolute; left: -5000px"]), :root #cookie-law-info-bar[style*="top: 0px"], :root .ad_unit:not(.text-ad, .adsbox), :root .legal-acknowledgement:not(body):not(html), :root div.comment-ad_wrapper, :root #ad_footer:not([style^="position: absolute; left: -5000px"]), :root #ad_big:not([style^="position: absolute; left: -5000px"]), :root a[dontfo=""][style$="position: absolute; z-index: 2147483647;"], :root [href^="https://exi8ef83z9.com/"], :root #vplayer ~ img[id][onclick], :root [href^="https://www.safestcontentgate.com/"], :root [href^="https://go.rdrjmp.com/"], :root div[style="position: fixed; inset: 0px; z-index: 2147483647; pointer-events: auto;"], :root [href^="https://wap4dollar.com/ad/nonadult/serve.php"], :root [href^="https://fireads.online/"], :root html[lang="vi"] .sspp-area, :root #vstr ~ #overlay, :root body > div[style="position: fixed; inset: 0px; z-index: 2147483647; background: transparent; cursor: pointer;"], :root div.CookieWrapper, :root #vidcloud-player > #overlay-container, :root div.AcceptCookies, :root a[href^="mailto:support@netu.tv"], :root .close-btn3[onclick="closeAd3()"], :root .close-btn2[onclick="closeAd2()"], :root a[id][href="https://hamrocsit.com"][rel^="noopener noreferrer"], :root div#consentComponentContainer, :root #midadd:not(:empty), :root guj-ad, :root #adzerk:not(:empty), :root #adSpecial:not(:empty), :root #kt_player ~ #sp-player, :root .nav-item[href^="https://candyai.gg/"], :root a[href*="/go.php?a_aid="], :root a[href^="https://best-experience-cool.com/"], :root [href^="//producebreed.com/"], :root [href="//xxxrevpushclcdu.com/app.webp"], :root [href^="//look.utndln.com/offer"], :root [data-lnguri*="vipbox"], :root a[href^="https://join.sexworld3d.com/track/"], :root [href^="https://www.onclickperformance.com/"], :root div.sch-datacontroller--footer, :root .reklama:not(.ads), :root div.mod_cookies, :root #ad_slot:not([style^="position: absolute; left: -5000px"]), :root .widget_ic_ad_widget:not(body):not(html), :root .t-rec > .t657, :root .widget_adonnews:not(body):not(html), :root a[href^="https://helmethomicidal.com/"], :root .toppannonser:not(body):not(html), :root .thb_ad_header:not(body):not(html), :root .tag-sponsrat-inlagg:not(body):not(html), :root .sw-tag-sponsored_post:not(body):not(html), :root a[href^="https://natour.naughtyamerica.com/track/"], :root div > #cnsh[style="display: block;"], :root .sponsrad-artikel:not(body):not(html), :root div.panorama-ad, :root .rmss_main-ad:not(body):not(html), :root #donate > a[href][style][onclick="thank_you()"][target="_blank"][rel="nofollow"], :root .revive-ad-container:not(body):not(html), :root .penci-infeed-fullwidth-ads:not(body):not(html), :root div.feed_ad, :root .nyhet_wrapper_annons:not(body):not(html), :root .node-sponsored-article:not(body):not(html), :root a[href^="https://click.candyoffers.com/"], :root #buy-sell-ads:not(:empty), :root .loop-mobile-leeads:not(body):not(html), :root .widget_ev_ad_widget:not(body):not(html), :root .footer-ad-wrap:not(body):not(html), :root a[href^="https://www.get-express-vpn.com/offer/"], :root .favethemes-content-ad-top:not(body):not(html), :root .sidebar-ad:not(.adsbygoogle), :root .favethemes-content-ad-inline:not(body):not(html), :root .category-sponsrat:not(body):not(html), :root .dj-ad-size:not(body):not(html), :root [data-ui-test="cookieAlert"], :root .c-ad__floating:not(body):not(html), :root .category-sponsrat-innehall:not(body):not(html), :root .category-sponsrat-inlagg:not(body):not(html), :root app-cookies-agreement, :root html[lang="tr"] > body.has-footer-ad.has-pageskin-desktop a.pageskin-click-right, :root .category-sponsrat-content:not(body):not(html), :root .category-sponsradnyhet:not(body):not(html), :root .category-om-samarbeten:not(body):not(html), :root .category-annonssamarbete:not(body):not(html), :root #\5f CookieText, :root .sticky-footer > div > div > .c-cell, :root .casino-ad:not(body):not(html), :root div.blog-cookie, :root .b-ad__wrapper:not(body):not(html), :root .ad_container_bottom:not(body):not(html), :root .ad-rotator:not(body):not(html), :root .adtrue-holder:not(body):not(html), :root .adtoma_container:not(body):not(html), :root .adContainer:not(body):not(html), :root .Teaser--nativeAd:not(body):not(html), :root #ad-mega-container:not(body):not(html), :root a[href^="https://go.xtbaffiliates.com/"], :root div.link-ads, :root #ad-fullscreen:not(body):not(html), :root AD-SLOT, :root td#reklam, :root div#reklam, :root img[src*="/track.adtraction"], :root .adunit:not(.text-ad), :root section.cookie-popup, :root img[alt="Spela på Betsson"], :root img[alt="Leovegas"], :root iframe#compricer_iframe, :root footer .sponsors-area, :root cook-disclaimer, :root div[id^="matchads-"], :root div[id^="borka-panorama"], :root div[id^="ad_insider"], :root div[id^="advads-"], :root cookie-alert, :root .plista_widget_outstream:not(body):not(html), :root div[data-losjs^="borka-panorama"], :root div[data-ad-unit-id], :root div[data-adk-container], :root div[class^="borka-insider"], :root div[class*="bsaProContainer"], :root div#facebook-popup, :root div[class*="ai-viewport"][data-insertion-position], :root div.consent-bg, :root .teaser--native-ad:not(body):not(html), :root div[class$="popup-and-layer-ads"], :root .disclaimer-cookies:not(body):not(html), :root div.xandr-ad, :root div.wp-block-ad, :root div[id^="ad-position-"], :root a[href^="https://engine.phn.doublepimp.com/"], :root div.top-annons, :root div.topmost-banner, :root .o-grid__ad-column:not(body):not(html), :root div.sidebar-item .banner-box, :root div.sidebar-annons, :root a[id][href="https://chpadblock.com/"][rel^="noopener noreferrer"], :root app-cookies-box, :root div.sgm-ad, :root div.sch-datacontroller--subheader, :root figure.movie-detail-banner div[style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 999; cursor: pointer;"], :root div.postcard-ad, :root div.phpbb-ads-center, :root .sw-popular__article--ad:not(body):not(html), :root div.panorama-ad-standard, :root div.o-indenter--ad, :root div.outsider-ads, :root #tongkatlol ~ script[src^="/shrinke/js/"] ~ .main-content-box > div[style="width:100%;height:110px"], :root div.mgp-ads, :root div.medium-ad, :root div#banner_right, :root div[style^="position: fixed; inset: 0px; z-index: 2147483647; background: black; opacity: 0.01"], :root div.maaw-ad-slots, :root div.l-hero-banner--ad-section, :root div.l-footer__adtext, :root div[id^="apn_native_ad_slot_"], :root .category-sponsrade-reklaminlagg:not(body):not(html), :root .lp-code > #cookie, :root div.jeg_ad, :root a[href^="https://track.aftrk3.com/"], :root a[href^="https://s.zlinkd.com/"], :root div.in-feed-ad, :root div.infeed-ad-card, :root div.mosaico-ad, :root a[href^="https://track.cam4tracking.com/"], :root div.holid-slot, :root div.fs-holid-live-widescreen, :root cookie-notice, :root div.elementor-widget-wp-widget-adrotate_widgets, :root div.dfp-ads-container, :root div.content-center-ad, :root a[href^="https://landing.brazzersnetwork.com/"], :root app-ad, :root [href="https://clickaine.com"], :root a[href^="https://italarizege.xyz/"], :root div.column-article.tag-annons, :root div.bsa_pro_ajax_load, :root aside.ad-container, :root div.before-article-ad, :root div.artikelflode-annonser, :root div.article-ad-container, :root a[href^="https://track.ultravpn.com/"], :root div.alert-cook, :root a[href*="www.reservdelar24.se"][target="_blank"]:not(.language-tooltip__link), :root div.annons-yta, :root a[href*="media.snabbare.com/tracking.php"], :root div.ad-panorama_dynamic-wrapper, :root div[id][style^="position: fixed; inset: 0px; z-index: 2147483647; background: black"][style*="opacity: 0.01"], :root div.ad-component, :root div.js-top-banner-container, :root .player-holder > div.vcover2, :root div.ad-after-header, :root div.ads-sticky-container, :root div.ads-above-post, :root div.adsense-responsive-ad, :root div.wcc-classic-bottom, :root div.adnuntius-ad, :root gwd-google-ad, :root div.Takeover-ad, :root div.Container--ad, :root div.CMACG_AdChangerWidget, :root div#zox-lead-bot, :root div#toppannons, :root .layerAdContainer:not(body):not(html), :root .ads_container:not(.text-ad), :root zeus-ad, :root div#snow-container[style*="z-index: 999999"], :root div.cookies-parent, :root div#panorama_ad, :root [id^="adace_ads"], :root div.js-cookie-note, :root div#panoramaad, :root div#outside-ads, :root .adhesion:not(body), :root div#block-adreviveheader, :root div#ad_top_page, :root div.alert-cookie, :root [href^="https://join.enjoyx.com/track/"], :root div.cookie_agree_wrap, :root div#adv_rightColumn, :root div#ads_column, :root div#ads-panorama, :root a[href^="https://ad.doubleclick.net/"], :root .annonseArticle:not(body):not(html), :root div.panoramaAd, :root div.outsideAdsWrapper, :root div.annonsbox, :root div.ad.container, :root c-osf-cookie-consent-banner, :root div.cookies__first, :root div.adLinkInner, :root div.adDivLeft, :root div.NativeAd, :root a[href^="https://www.mrskin.com/account/"], :root a[onclick*="artikelbanner"], :root a[onclick*="AdRotatePro"], :root a[href*="/delivery.adnuntius.com"], :root div.adform-device-aware, :root a[href*="/cvasino.se/"] img, :root [data-key="cookies-warning"], :root div.askcook, :root a[href*="/banner/klick/"] img, :root a[href*="tradedoubler.com/click?"], :root div.uder-tags-ad, :root a[href^="https://twinrdsyte.com/"], :root a[href*="cyberbetpromo.net/click"][target="_blank"], :root [href^="//taghaugh.com/"], :root #adheader:not([style^="position: absolute; left: -5000px"]), :root div.cookie-eu, :root a.Teaser[data-content-item-category="Annons"], :root a#top-banner.banner-holder, :root article[data-section="annons"], :root div[data-role="cookie-policy-banner"], :root .headerannons:not(body):not(html), :root article.type-partnerartikel, :root div.landscape-ad-space, :root article.tag-adtraction, :root article.category-samarbete-sponsrat-inlagg, :root iframe[width="728"][height="90"], :root div.adSidebar, :root article.category-reklam, :root article.category-promotion, :root .header-container a[href^="https://candyai.gg/"], :root cbn-cookies, :root a[href^="https://123-stream.org/"], :root article.category-partnerartikel, :root article.article--sponsored, :root #go-to-top + div[id][class], :root .sticky-cookie-container:not(html):not(body), :root article.sponsrad, :root div.cookieswindow, :root article.annons, :root a[href*=".click/?z="][href*="&n"], :root html > div[class][style^="pointer-events: none; position: absolute; top: 0px; left: 0px; width:"], :root a[href^="http://click.dtiserv2.com/"], :root aside.cookie-banner, :root div.after-article-ad, :root .adcen > div.adb, :root article.category-samarbete-sponsrat, :root a[href^="https://l.tapdb.net/"], :root iframe[src^="https://av.ageverify.co/"], :root body > .cf-page-wrap, :root iframe[src^="https://vidsservices.space/"], :root body > div#fixedban, :root a[href*="casinopro.se"][target="_blank"], :root div[style="position: fixed; display: block; width: 100%; height: 100%; inset: 0px; background-color: rgba(0, 0, 0, 0); z-index: 300000;"], :root iframe[src^="https://mmmdn.net/"], :root div[data-clickadilla-banner], :root [href^="https://track.wg-aff.com/click"], :root a[href^="https://z.cdn.secured-ad.com/"], :root div[class^="TaboolaHomepageFeed_taboolaWrapper"], :root html[data-lt-installed="true"] > body[style=""] img[style="width: 100%;max-width: 728px;"], :root body > div[style^="position:fixed;inset:0px;z-index:2147483647;background:black;opacity:0.01"][style*=";cursor:pointer"]:empty, :root iframe[src^="//ad.a-ads.com/"], :root body > div[style^="position: fixed; inset: 0px; z-index: 2147483647; background-color: transparent; pointer-events: auto; cursor: auto; margin: 0px; padding: 0px;"], :root body > div[style="position: fixed; display: block; width: 100%; height: 100%; inset: 0px; background-color: rgba(0, 0, 0, 0); z-index: 300000;"], :root #advert-header:not(:empty), :root body ~ div[style^="z-index: 2147483647 !important; position: fixed !important; width:"], :root iframe[style="position: absolute; top: -1000px; left: -1000px; visibility: hidden; border: medium none; background-color: transparent;"], :root body[onbeforeunload="return myFunction()"], :root .cjs-container > #checkbox-window, :root div[style="text-align:center;margin:0 0 8px 0;"] > div[class^="ad-"][class$="-wrapper"], :root #ad_728:not([style^="position: absolute; left: -5000px"]), :root div[style="margin: 10px 0; position: relative;"] > div[id="overlay"][style="position: absolute; width: 100%; height: 100%; z-index: 99999;"], :root div.cookiescreen, :root body[data-publication] div[class*="BoxStyles_commercial"][class*="BoxStyles_taboola"][data-testid^="commercial-"], :root body[data-publication] aside[class^="RHRBlock_right-aside-wrapper"], :root .header ~ div[style^="position:fixed;inset:0;z-index:2147483647;background:black;opacity:0.01;height:"], :root section[data-e2e="advertisement"], :root html[lang="vi"] > body > #_preload-ads-2, :root html[lang="vi"] > body > #_preload-ads-1, :root div#ccpaCookieBanner, :root .right-menu > div.adhl, :root div.bam-ad-wrapper, :root .container a[href^="https://seduced.com"][href*="ref="], :root button.btn[data-openuri*="/4/"], :root .adcen > div.adt, :root [href^="https://go.mavrtracktor.com/"], :root .annons_mitten:not(body):not(html), :root .adlf > div.adt, :root article > center.adcen, :root .ad-container > button.close-ad, :root img[width="600"][height="90"], :root img[width="240"][height="400"], :root aside.cookie-bar, :root article.article-list-item--sponsored-post, :root iframe[width="780"][height="120"], :root iframe[width="210"][height="237"], :root iframe[width="200"][height="300"], :root app-cookies-banner, :root iframe[width="200"][height="240"], :root iframe[width="104"][height="464"], :root .p-post-ad:not(html):not(body), :root iframe[width="100%"][height="120"]:not([src*="bandcamp.com"], [src*="player-widget.mixcloud.com"]), :root [href^="https://turtlebids.irauctions.com/"] img, :root iframe[width="100%"][height="90"], :root embed[width="160"][height="600"], :root html > body > div.container.m-p > #checkbox-window.checkbox-window, :root a[href^="https://s.zlink3.com/"], :root a[href^="http://revolvemockerycopper.com/"], :root embed[width="120"][height="240"], :root .ad-top-728:not([style="width: 10px; height: 10px;"]), :root a[id][href="https://chpadblock.com/"][rel="noopener noreferrer"], :root app-cookie-footer, :root .ad-unit:not(.textads), :root div[style*="box-shadow: rgb(136, 136, 136) 0px 0px 12px; color: "], :root .cookie[data-cookie-notice], :root .wrap > .consent-widget, :root GDPR-NOTICE, :root #playerOverlay[style="position:absolute; z-index:3"], :root bottomadblock, :root #newprivacy > .alert-box, :root a[href^="https://ads.leovegas.com/"], :root [data-dynamic-ads], :root div[style="min-width: 750px;"] > .gb_wb, :root div#annons_topp, :root a[href^="https://claring-loccelkin.com/"], :root #gb[style="min-width: 980px;"] > .gb_wb, :root header > #notify-bar, :root div#prebid-ad, :root #cookies > form, :root a[href^="http://www.h4trck.com/"], :root #app-root.c > .z, :root [class^="cookieBox-"], :root div.External-ad, :root .stripper > a[href*="istripper"] > img, :root .footer > #cookie-law-info-bar, :root .container > #cookie-law-info-bar, :root app-cookies-toast, :root #footercontent > #cookie-law-info-bar, :root #footer > #cookie-law-info-bar, :root div#custom_ads_wrapper, :root a[href^="//startgaming.net/tienda/" i], :root #cookie-law-info-bar[style*="top:0px"], :root #cookie-law-info-bar[style*="bottom:"], :root .ad_slot:not(.text-ad), :root #cookie-law-info-bar[style*="border-box; padding:"], :root #cookie-law-info-bar[style*="border-box; display:"], :root .ad-placeholder:not(#detect, #detect_ad_empire, #filter_ads_by_classname, .adsbox), :root article.tag-annons, :root div#ACClayerBackground, :root #cookie-law-info-bar ~ .cli-modal-backdrop, :root section.cookie-consent--visible, :root #domCookieWarning:not(html):not(body), :root .alert[data-ng-if="showCookieDisclaimer"], :root .wrapper-player div.before-player, :root a[href^="https://Click.ggpickaff.com/"], :root div.cookie-consent--visible, :root div.ammodals-overlay, :root div.amgdprcookie-modal-container, :root div.l-advertisment-block-container, :root img[width="468"][height="60"], :root .t-rec > .t972, :root .t-rec > .t887, :root [class^="s2nPlayer"], :root .t-rec > .t886, :root div.wcc-box-bottom-left, :root div.accepted-cookies, :root section.cookies_banner, :root section.cookie-bar, :root [class^="div-gpt-ad"]:not([style^="width: 1px; height: 1px;"], .div-gpt-ad_adblock_test), :root [data-testid="cookie_banner_v2_container"], :root section.cookie-alert, :root section.c-cookies, :root section.Cookie-notice, :root section.cookie-consent, :root form.cookieBanner, :root div#cookiesApproval, :root div.popUpCookies, :root div[data-cookie-disclaimer], :root div.w-cookie, :root iframe[src^="//tsyndicate.com/"], :root div.v-cookie, :root div.sqs-cookie-banner-v2, :root body > div#dontfoid, :root div[data-cookiebar], :root .demo-wrapper[style="display:none;"] + div.fadeInDown[id], :root div.section-gdpr, :root body > div[style^="position: fixed; inset: 0px; z-index: 2147483647; background: black; opacity: 0.01;"], :root div.section--cookie, :root div[data-ad-placeholder], :root .bb ~ main#container .containerAds, :root div[class^="borka-widescreen"], :root a[href^="https://a.candyai.love/"], :root [data-asg-ins], :root div.popupcookies, :root [class^="adDisplay-module"], :root div.pagecookies, :root .leeads-advert:not(body):not(html), :root div#cookie_banner, :root a[href*="/click.linksynergy"] img, :root div#cmp-app-container, :root div.nwm-cookies, :root div.msgCookie, :root div[class^="index-module_openwebAd_"], :root div.lgpd-popup, :root div.js-cookie-note--overlay, :root .c-ad-wrapper:not(body):not(html), :root div.cookie__layer, :root .content > aside.ad, :root div.tower-annonser, :root div.js-cookie-consent-overlay, :root a[href$=".se/go/betsafe"], :root body[data-publication] div[data-testid^="ncu-within-group-"], :root section#tracking-consent-dialog, :root div.is-cookie, :root .annons_col:not(body):not(html), :root div.i-cookie, :root div.grid-cookie, :root .alert[data-cookie="banner-cookie"], :root iframe[width="980"][height="90"], :root div.gdpr-confirm, :root div.ezmob-footer, :root div.euconsent, :root div.eu_cookie, :root div.prebid-ad-slot, :root div.eu-cookie, :root div.edu-modal-cookie, :root div.dp--cookie-consent, :root div.dev-cookie, :root a[href^="https://www.highcpmrevenuenetwork.com/"], :root .c-dfp_ads:not(body):not(html), :root div.cookiesplace, :root div.cookies_open, :root a[href^="https://ad.22betpartners.com/redirect.aspx?"], :root div.portrait-ad, :root div.cookiesBanner, :root div.cookies-splash, :root .category-samarbeten:not(body):not(html), :root div.cookies-pop, :root cookiebox, :root div.cookies-message, :root div[id^="borka-insider"], :root div.cookies-fixed, :root div.notice--cookie, :root div.cookie_visible, :root .ad-inside-single-article:not(body):not(html), :root div.cookies-cont, :root div.cookiesAcceptance, :root div.alert-cookies, :root div.cookies-body, :root a[href^="https://gml-grp.com/"], :root div.cookies-banner, :root div.cookieprompt, :root body > div.demo-wrapper[style="display:none;"] + div[id][class], :root div.cookienotice, :root div.cookieholder, :root div.strossle-widget, :root div.cookieconfirm, :root div.cookiebanner, :root section#accept-cookie-container, :root div.cookiebackground, :root div#cookie-banner_container, :root div[data-losjs^="borka-widescreen"], :root div.cookie_popup, :root div.cookie_msg, :root body > div[style^="position:fixed;inset:0;z-index:2147483647;background:black;opacity:0.01"][style*=";cursor:pointer"]:empty, :root .section-subheader > .section-hotel-prices-header, :root div.cookie_head, :root tui-cookie-consent, :root .dfp-ad-widget-class:not(body):not(html), :root #app > #cookies, :root div.cookie_alarm, :root div.cookie__popup, :root div.allow-cookie, :root div.cookie__notice, :root div.cookie__disclaimer, :root div.cookieTextsWrapper, :root div.cookiePrompt, :root div.cookieMsg, :root [href*="uselnk.com/"], :root div.cookieHolder, :root .as-oil[data-qa="oil-Layer"], :root div.cookieDisclaimer, :root div.cookieBanner, :root div.cookieBackgaround, :root div.cookie-show, :root div[data-id="cookie_dialog"], :root [data-ad-module]:not([style$="left: -10000px !important; top: -1000px !important;"]):not(.adsbygoogle), :root div.cookie-policy-info--center, :root .banner[data-banner="cookies"], :root iframe[width="468"][height="60"], :root .ad > div.adrg, :root div.cookie-policy-head, :root [href^="//mellowads.com/"], :root div.cookie-policy-banner, :root div.cookie-parent, :root div.cookie-notice-open, :root div.cookie-notice-big, :root div.sgm-header-start-ad, :root div.cookieNav, :root div.cookie-hold, :root a[href^="https://prf.hn/click/"][href*="/creativeref:"] > img, :root div.cookie-hint, :root div.cookie-gdpr, :root .annons_panorama:not(body):not(html), :root div.cookie-div, :root div.cookie-disclosure, :root div.cookie-directive, :root div.cookie-consent-show, :root div.cookie-compliance, :root iframe[src^="https://creative."][src*="/widgets/v4/Universal?"], :root #app > .cookies, :root div.cookie-choices, :root .esmg-hb-slot:not(body):not(html), :root div.cookie-black, :root .category-sponsrad-artikel:not(body):not(html), :root div.cookie-bloc, :root .fixed[data-cookiebar], :root div.cookie-accept-container, :root div.cookie--bar, :root div.coockiesdiv, :root a[href^="https://black77854.com/"], :root [href^="https://www.mypatriotsupply.com/"] > img, :root div.consentbanner, :root div.consent-tracking, :root div.consent-show, :root div.consent-banner-container, :root div.confirm-cookie, :root div.cnil-popup, :root div.civic_cookie__overlay, :root div.sgm-large-ad, :root div.ccpa-message, :root div#whCookieManager, :root div.c-cookieconsent, :root div.box_lgpd, :root div.cookies_panel, :root div.block-cookie-warning, :root div.block-cnil, :root div.b-cookie, :root .kt-player ~ div.spot-box, :root div.b--cookie, :root a[href^="https://www.infowarsstore.com/"] > img, :root div.aw-cookie-banner, :root div.ask-cookie, :root #kt_player .fp-brand, :root body div#notificationPopup.notificationPopupBlock, :root .wrapper a[rel~="sponsored"][href^="https://"][href*=".com/"][href*="?key="], :root div.cookie-reminder, :root img[width="460"][height="60"], :root a[href^="http://tc.tradetracker.net/"] > img, :root div.app-cookies, :root div.alert__cookies, :root img[width="240px"][height="400px"], :root form.cookie-bar--fluid, :root div.alertCookie, :root div#rich-media-ads, :root div.alert-gdpr, :root .container a[href^="https://insensitiveshoweraudible.com/"], :root div.consent-summary-shown, :root div.allowcookie, :root .main_container > .consent_window, :root div.acceptcookies, :root div.acceptcookie, :root #tongkatlol ~ script[src^="/shrinke/js/"] ~ .main-content-box + .content-box > div[id][style^="position: fixed; display: block; width: 100%;"], :root div.banner-size.proad, :root div.accept__cookies, :root a[href^="/banner/click/"] img, :root a.is-native-ad, :root .q-notification[class*="gdpr"], :root .top-message[data-vcv-top-banner], :root div.acceptCookies, :root div.accept-rgpd, :root div.PrivacyBanner, :root div.novashare-buttons, :root div.EUCookie, :root #ad_topScroller:not(body):not(html), :root div.cookie-consent-open, :root div.CookieMessage__cookieMessage, :root div.CookieInfo, :root .c-post--native-ad:not(body):not(html), :root div.cookie--wrapper, :root a[href^="https://paid.outbrain.com/network/redir?"], :root div.CookieAlert, :root .vo-adform:not(body):not(html), :root div.ConsentCookie, :root #rs_cookie_manager_popup:not(.modal), :root a[href^=" https://www.friendlyduck.com/AF_"], :root div.BoxCookie, :root .has-cookie-message:not(body), :root div.-cookies__alert, :root a[href^="https://click.linksynergy.com/fs-bin/"] > img, :root div.box--squareAd, :root div#lgpd-warning-container, :root div.partnership-ads, :root iframe[src^="//tempest.services.disqus.com/ads-iframe/"], :root .AdBody:not(body), :root [data-module="CookieBanner"], :root div#gdprpatronInfoleiste, :root div#gdpr-cookie-accept, :root a[href^="https://gamingadlt.com/?offer="], :root div.cookiePop, :root a[href^="https://go.skinstrip.net"][href*="?campaignId="], :root div#cookiesdirective, :root div#cookiesLightbox, :root html[lang="tr"] > body.has-footer-ad.has-pageskin-desktop a.pageskin-click-left, :root div.cookies-notice, :root div#cookies-pop, :root div#cookies-background, :root div.ap-cookie-consent, :root div[id^="mrec-leaderboard-"], :root b2c-cookies-notification, :root div#cookie-alert-container, :root gdpr-cookies, :root .popup[data-popup="popup-cookie"], :root [href^="http://www.mypillow.com/"] > img, :root div#cookie-accept-container, :root div#consent-manager-container, :root .cjs-container > #verify-window, :root [data-testid="adBanner-wrapper"], :root [class^="div-gpt-ad"]:not([style^="width: 1px; height: 1px; position: absolute; left: -10000px; top: -"]), :root consent-notification, :root [href^="https://mypillow.com/"] > img, :root aside.bottom-cookies, :root div.eu-overlay, :root html > #__cf_challenge_host__, :root veiss-cookies, :root div.cookie__compliance, :root thor-cookies, :root [href^="https://rpwmct.com/"], :root a[href^="https://www.dating-finder.com/?ai_d="], :root son-cookie-consent, :root AMP-AD, :root of-cookies-notice, :root div[id^="borka-widescreen"], :root div.bbPrisjakt, :root lgpd-cookie, :root a[href^="https://go.xlivrdr.com"], :root iframe[name="googlefcPresent"], :root div.cookies_banner, :root div#cc-consent-container, :root div[data-react-class="CookieNotice"], :root #modern-player-root ~ div[id^="custom-invisible-overlay-"][class^="custom-popup-overlay-"], :root div.c-cookies, :root div[data-module="cookie_banner"], :root div[data-is-cookieinfo], :root a[href^="https://loboclick.com/"], :root a[href^="https://go.dmzjmp.com"], :root .ad-300x250:not(.ads), :root div.notificationpopup, :root div.Cookie__Popup, :root div[data-cookiebanner], :root #bottom_dialog > #bottom_dialog_inner, :root div[data-cookie-notification], :root div[data-borlabs-cookie-wrap], :root ytd-mealbar-promo-renderer, :root [data-lnguri^="https://s3.amazonaws.com"], :root [href^="https://join.playboyplus.com/track/"], :root cookies-requirement, :root div.adtech_slot, :root .mainholder + div[id][class*=" "] > div[id][class*=" "], :root cookies-popup, :root cookies-overlay, :root cookies-notification, :root a[href^="https://a.medfoodsafety.com/"], :root div[id^="ezoic-pub-ad-"], :root a[href^="https://jaxofuna.com/"], :root cookies-hint, :root cookie_notice, :root a[href^="https://go.xxxjmp.com"], :root div#cookieBotHide1, :root div.cookie-notice-wrapper, :root cookie-policy-popin, :root [data-testid^="taboola-"], :root cookie-notification, :root article.cookie-container, :root a[href^="https://juicyads.in/"], :root cookies-policy, :root cookie-law-banner, :root ul.adsmodern, :root .row[data-test-selector*="cookie-banner"], :root .sui-CmpUi > .sui-MoleculeNotification, :root .ads-iframe:not([style="position: absolute; left: -10px; top: -10px;"]), :root div#gdprpatronInfoleisteOverlay, :root cookie-confirmation, :root div.Cookie-wrapper, :root cookie-bar, :root a[href^="https://rixofa.com/"], :root con-cookie-popup, :root [href^="https://glersakr.com/"], :root cn-cookie-agreement, :root cg-cookies-banner, :root avis-cookies, :root a[href^="https://mediaserver.entainpartners.com/renderBanner.do?"], :root app-rodo, :root a[href^="https://tm-offers.gamingadult.com/"], :root div.c-gdpr, :root amp-user-notification, :root div.helsida-ad, :root a[href^="https://go.cmtaffiliates.com/"], :root div#aceptar_container, :root div.egmont-ads-ad, :root .mobile_ad:not(body):not(html), :root app-footer-modal-cookie, :root a[href^="https://join.dreamsexworld.com/"], :root app-cookies-popup, :root div.in-post-ad-wrap, :root body > div[data-captcha-enable="true"] > div.cleanslate[id^="google-captcha-"] > div.captcha-box, :root app-cookies-notice, :root section.cookie__privacy, :root .carrie-ad-block:not(body):not(html), :root app-cookies-modal, :root app-cookies-consent, :root div[data-id-advertdfpconf], :root app-cookies-confirm, :root a[href^="https://fastestvpn.com/lifetime-special-deal?a_aid="], :root a[href^="https://www.goldenfrog.com/vyprvpn?offer_id="][href*="&aff_id="], :root app-cookie-warning, :root app-cookie-prompt, :root cookie-drawer-policy, :root cookie-policy, :root app-cookie-notification, :root app-cookie-consent-feature, :root app-cookie-consent-banner, :root [href^="https://www.brighteonstore.com/products/"] img, :root div.-cookie-notice, :root #ad-wallpaper:not(body):not(html), :root app-cookie-banner, :root app-cookie-consent-modal, :root app-cookie, :root app-banner[arialabel*="Cookies"], :root a[href^="https://join.virtuallust3d.com/"], :root .reveal-modal[id*="cookie"], :root app-aviso-cookies, :root app-aviso-cookie, :root div[id^="taboola-stream-"], :root div.I-artiklar-annonser, :root amp-consent, :root amedia-privacybox, :root [data-veci="cookies-policy"], :root .category-sponsrade-inlagg:not(body):not(html), :root a[href^="https://aj1070.online/"], :root dynamic-ad, :root a[href^="https://tatrck.com/"], :root [data-unique-cookie-name], :root div[id*="ScriptRoot"], :root cookie-warning, :root a[href^="https://billing.purevpn.com/aff.php"] > img, :root .cookie > .box, :root [data-testid="cookies-module"], :root .advertisement_above_footer:not(body):not(html), :root div[class^="holid_desktop"], :root a[href*="//jjgirls.com/sex/Chaturbate"], :root [data-testid="cookienotice-container"], :root div.PrivacyCookie, :root a[href^="https://track.afcpatrk.com/"], :root .component-matchAds__content:not(body):not(html), :root div#shadCookie, :root [data-testid="cookieConsentBanner"], :root section.panorama-ad, :root a[href^="https://service.bv-aff-trx.com/"], :root nl-cookie-notice, :root div[id^="div-ads-"], :root display-ads, :root [data-testid="cookie-banner-app-standalone"], :root div#lgpd-banner, :root div.borka-ad, :root .jwplayer ~ div[style="position:absolute;top:0;left:0;width: 100%;height: 100%;z-index:2147483647"], :root [data-test="cookie-banner"], :root a[href^="http://partners.etoro.com/"], :root div.panorama-annonser, :root [id^="ad_sky"], :root div[data-ad-targeting], :root div.ad-container-lg, :root [data-test-id="cookie-policy-banner"], :root [data-test-id="check-cookie-consent"], :root [data-target="coockie"], :root [data-selector="cookie-policy"], :root [data-role="cookie-notice"], :root div.cookie-policy-open, :root div.show-cookie-consent, :root [data-qa="CookieBar"], :root a[href*="/annonsartiklar/"], :root [data-dmscookie], :root [data-cy="cookiebar"], :root html[lang="tr"] #aa-wp .container-ads-adjustment, :root div.better-ads-listitemad, :root .video-info > div.video-link:has(> b > a[href][target="_blank"][rel="sponsored"]), :root [data-cy="cookie-banner"], :root [data-ccpa], :root [data-testid="cookie-bar"], :root #js-message[data-id="cookie-policy"], :root [data-behaviour="cookie-popup"], :root [data-automation="cookies-banner"], :root COOKIE-HEADER, :root div.cookie-warn, :root article.c-cookies, :root a[href^="https://tracker.loropartners.com/"], :root .cookieVisible:not(body), :root a[href^="https://go.xlirdr.com"], :root .truste_cm_outerdiv:not(body):not(html), :root a[href^="https://snowdayonline.xyz/"], :root .tracking-widget[data-tracking-widget], :root .kt-player > div.spot, :root div.civic_cookie__banner, :root a[href^="https://dl-protect.net/"], :root .top-row[data-container="cookiebox"], :root html[lang="tr"] #aa-wp + .fixed-footer .footer-ad-container, :root edn-cookie, :root div.wppasrotate, :root div.cookie--notice, :root div[data-ad-wrapper], :root .show-cookie-popup:not(body):not(html), :root ark-cookiebar, :root .react-reveal[class*="cookie-banner"], :root .privacywall-banner[data-is-visible], :root #js-message[data-qa="cookie-message"], :root div#cookie-choice-container, :root .popup-cookie:not(body), :root .notification__wrapper[data-id="cookies"], :root cookies-consent, :root a[href^="https://www.toprevenuegate.com/"], :root .notification[data-notification="accept-cookies"], :root .notificationBar[data-notification-cookiepolicy], :root .cookieLaw:not(body):not(html), :root html > body > div.content > dl > dd.dd1 > div.min_sider > form#form1[action="unsubscribe.php"], :root .scroller > .cookie, :root div.leeads-wrapper-desktop, :root div[data-alias="300x250 Ad 1"], :root .mod-cookies:not(body):not(html), :root a[href^="https://join.virtualtaboo.com/track/"], :root .mm-page > .cookie-settings, :root iframe[src^="https://tsyndicate.com/"], :root a[style="width:100%;height:100%;z-index:10000000000000000;position:absolute;top:0;left:0;"], :root #videojs ~ div[style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 2147483646;"], :root .mm-page > #cookie, :root .home a[href^="https://s.zline0.com/"], :root .message[data-cc-modal], :root a[href^="https://go.xlvirdr.com"], :root a[href^="https://ads.betfair.com/redirect.aspx?"], :root amp-fx-flying-carpet, :root a[href^="https://syndication.exoclick.com/"], :root .layoutFloating[is="basis-cookie"], :root .layer--fixed-bottom[cookiebar], :root .js-cookie-compliance:not(html):not(body), :root .visible-cookies:not(body), :root body > .cf-root, :root body > .content-wrapper > .cf-wrap, :root [href^="https://ad.admitad.com/"], :root .header-declaration[data-customer-popup="cookie"], :root ._ning_outer._ning_jss_zone:not(body):not(html), :root div.Cookie-banner, :root a[href^="https://bngprm.com/"], :root a[href^="https://go.hpyjmp.com"], :root .gdpr[data-gdpr-popup], :root a[href*=".adsrv.eacdn.com/"], :root .footer-bottom > #cookies, :root div.cookiehtml, :root .floating-bar[data-cookie-name="cookie_notice"], :root c-cookie-consent, :root [href^="https://track.aftrk1.com/"], :root app-root app-cookie-acceptance, :root .flash[data-cookie="eu_cookie"], :root a[href^="https://activate-game.com/"], :root div[style="top: 0px; left: 0px; width: 1287px; height: 500px; position: fixed; z-index: 2147483647;"], :root .cookiesManagement:not(body):not(html), :root #ad_img:not(:empty), :root div.CookiePrompt, :root .cookies-open:not(body), :root .cookielaw:not(body):not(html), :root .cookiebg:not(body):not(html), :root .ad-single-news:not(body):not(html), :root ofi-cookie-box-widget, :root .cookie[data-selector="cookies-bar"], :root #teaser3[style="width: 100%;text-align: center;display: scroll;position:fixed;bottom: 0;margin: 0 auto;z-index: 103;"], :root .cookie[data-privacy-policy], :root div.-cookies-notice, :root #modal[doskip][prclck], :root cmm-cookie-banner, :root div.gdpr-bottom, :root div.conten-cookies, :root body ~ iframe[id][style^="width: 100% !important; height:"][style*="inset:"], :root .cookie[data-cookie] { display: none !important; } +:root #pushdown > .gb_wb, :root html[lang][style^="--main-bg-color"] > body:not([class]):not([id]) > div#container[style="visibility: visible;"] > div#banner[style="opacity:0"] ~ main:not([class]):not([id]) > div#message, :root div.cookies_design, :root .cookiePopup:not(body), :root .alert[data-name="eu_biscuits"], :root .cookie-consent[data-controller], :root [href^="https://affiliate.fastcomet.com/"] > img, :root div.td-a-rec-id-custom-spot, :root div.cookie-notice-body, :root [href^="https://charmingdatings.life/"], :root div#ad_global_below_navbar, :root .mm-page > #cookiehinweis, :root .swp-ad-strossle:not(body):not(html), :root .cookie-consent[data-closable], :root .cookie > .rgpd, :root [href*="/afu.php"], :root .consent[ng-controller="cookieConsentCtrl"], :root .alert[ng-if="cookieAlert"], :root [href^="https://klsdee.com/"], :root [href^="https://www.profitablegatecpm.com/"], :root .notification-layout[ng-class="cookie-bar"], :root ._floating-banner[floating-banner-id="cookies"], :root app-advertisement, :root .Important[msgid="cookie-info"], :root .adlf > div.adhl, :root .Cookiepolicy[data-id="cookie-policy"], :root a[href^="https://serve.awmdelivery.com/"], :root .CInfo[data-cookie-info], :root a[href^="https://slkmis.com/"], :root div#accept-cookie, :root a[href^="https://go.etoro.com/"] > img, :root [data-block-type="ad"], :root cookies-gdpr, :root div.c-cookie, :root a[href^="//go.eabids.com/"], :root .cookie[ng-hide="cookiesAccepted"], :root a[href^="https://explore-site.com/"], :root #toasts > #toastsWrapper, :root a[href^="https://go.awdeliverynet.com/"], :root div.ad-toppbanner, :root a[href^="https://trk.softonixs.xyz/"], :root [data-rgpd-inc], :root a[href^="http://sarcasmadvisor.com/"], :root #seccao1 > #cookie, :root #ot-sdk-btn:not(button), :root [href="//sexcams.plus/"], :root a[href^="https://traffdaq.com/"], :root sd-cookies-widget, :root [href^="https://www.hostg.xyz/"] > img, :root #klaro .cook-modal, :root div.cookiestatement, :root [data-cookie-name="cookiesDirective"], :root a[href*="ads.leovegas.com"], :root #gpdr:not(body):not(html), :root a[href^="https://s.gentlefieldpattern.com/"], :root #gdpr[data-cookies-policy-url], :root a[href^="https://lijavaxa.com/"], :root div.cookie__backdrop, :root [data-inc="cookies"], :root #cookiehinweis > .zentriert, :root div#cookie-acceptance, :root #app > .cookie, :root #\5f _ic-notice, :root #\5f iph_cp_popup, :root a[href^="https://go.admjmp.com"], :root ytg-notification-footer, :root #\5f _accept_cookie, :root .div-gpt-ad:not([style^="width: 1px; height: 1px;"]), :root div.block-bean-header-banner, :root span[id^="ezoic-pub-ad-placeholder-"], :root app-ccpa-banner, :root ins.adsbygoogle[data-ad-slot], :root div.Cookie, :root ins.adsbygoogle[data-ad-client], :root a[href*="/fdh/wth.php?"], :root .wp-singular > iframe[srcdoc][allowfullscreen][allow*="clipboard-write"][style*="2147483647"], :root a[href^="https://ad.zanox.com/ppc/"] > img, :root a[href^="https://go.xlviirdr.com"], :root img[src^="https://s-img.adskeeper.com/"], :root .favethemes-content-ad-bottom:not(body):not(html), :root gpt-ad, :root div[ow-ad-unit-wrapper], :root [data-dialog-id="accept-cookies"], :root div[id^="zergnet-widget"], :root div[id^="vuukle-ad-"], :root a[href^="https://www.highperformancecpmgate.com/"], :root [data-test-id="CookiePopup"], :root [href^="https://go.xlrdr.com"], :root div[id^="sticky_ad_"], :root div[id^="st"][style^="z-index: 999999999;"], :root .component-matchAds:not(body):not(html), :root img[width="720"][height="90"], :root div[id^="rc-widget-"], :root a[href^="https://www.googleadservices.com/pagead/aclk?"] > img, :root .annonssegmenthead:not(body):not(html), :root [data-cookie-popup], :root #kt_player > a[target="_blank"], :root a[href^="https://camfapr.com/landing/click/"], :root a[href^="http://bongacams.com/track?"], :root cookie-info, :root [data-token="gdpr_cookie_notice"], :root div.wcc-banner-bottom, :root .eu-cookies-bar:not(body), :root div.big-desktop-ads, :root div[id^="gpt_ad_"], :root div.Cookie-notice, :root div[id^="dfp-ad-"], :root div.brix-ads-by-posttype, :root div.ad-after-post, :root a[href^="http://sneakyadministration.com/"], :root div[id^="crt-"][style], :root #infobar[data-settings="bottom"], :root div[id^="adspot-"], :root div#topreklam, :root div#accept-cookie-container, :root div.cookieBar, :root cookie-agreement-block, :root ps-connatix-module, :root div[id^="ad_position_"], :root [data-testid="cookie-popover"], :root div.cookie-policy-info, :root div[id^="ad-div-"], :root #privacyAnnouncement:not(body), :root a[href^="https://www.adsettings.com/scripts/reg_click."], :root div.gdpr-popup-border, :root div[id*="MarketGid"], :root #ntcc[data-cookie-bar], :root a[href^="https://www8.smartadserver.com/"], :root a[href^="https://t.ajump1.com/"], :root div#outerAd, :root div[data-dfp-id], :root hl-adsense, :root div[data-contentexchange-widget], :root div[data-alias="300x250 Ad 2"], :root div.cookies-btm, :root div[data-adzone], :root section.bgcolor-ad, :root div[data-adunit], :root #mainBtn[onclick="startVerify()"], :root div[data-adunit-path], :root .notification_wrap[data-cookie-notification], :root div[data-adname], :root .alert[data-behaviour="cookie-banner"], :root div.agreecookie, :root div[data-ad-region], :root div[aria-label="Ads"], :root display-ad-component, :root div.cookies--visible, :root comply-consent-manager, :root onl-cookie, :root div#cookie-banner-container, :root .bannerclick:not(body):not(html), :root .notify-banner[ir-notify], :root eo-cookie-bar, :root div.CookieAccept, :root atf-ad-slot, :root div#lgpd, :root app-large-ad, :root aside[id^="adrotate_widgets-"], :root aside[aria-label="retailmedia.complimentarySponsored"], :root amp-embed[type="taboola"], :root amp-connatix-player, :root div[id^="google_dfp_"], :root a[href*="media.comeon.com/tracking.php"], :root a[onclick*="openAuc();"], :root div[data-losjs^="borka-insider"], :root ad-slot, :root a[href^="https://www.purevpn.com/"][href*="&utm_source=aff-"], :root a[id][href="https://toolkitspro.com"][rel^="noopener noreferrer"], :root a[href^="https://www.onlineusershielder.com/"], :root a[href^="https://financeads.net/tc.php?"], :root a[href^="https://www.mrskin.com/tour"], :root [href^="https://track.fiverr.com/visit/"] > img, :root a[onclick^="window.location.replace('https://random-affiliate.atimaze.com/"], :root .message-panel[data-notice-id="cookieNotice"], :root amp-ad, :root a[href^="https://lnkxt.bannerator.com/"], :root div[class$="player-promo-col"], :root a[href^="https://www.geekbuying.com/dynamic-ads/"], :root div.wcc-box-bottom-right, :root img[src^="https://images.purevpnaffiliates.com"], :root [data-testid="cookies_footer"], :root [href^="https://groorsoa.net/"], :root [href^="https://go.smljmp.com/"], :root a[href*="/click.adrecord"] img, :root a[href*=".sadbaguette.com/"], :root div.messagecookies, :root a[href^="http://www.friendlyduck.com/AF_"], :root a[href^="https://www.financeads.net/tc.php?"], :root [style^="position: fixed; inset: 0px; z-index: 2147483647; background-color: transparent; pointer-events: auto; cursor: auto; margin: 0px; padding: 0px; display: block;"], :root a[href^="http://com-1.pro/"], :root a[href^="https://www.effectiveratecpm.com/"], :root [data-s-type="cookie-message"], :root a[href^="https://adultfriendfinder.com/go/"], :root [href^="https://www.herbanomic.com/"] > img, :root a[href^="https://pb-front.com/"], :root a[href^="https://www.dql2clk.com/"], :root p.alert-cookie, :root article.NativeTeaser, :root o-cookie-law, :root [data-template-type="nativead"], :root a[href*=".g2afse.com/"], :root a[href^="https://www.adultempire.com/"][href*="?partner_id="], :root .app-root > .cookies, :root a[href^="https://www.nutaku.net/signup/landing/"], :root a[href^="https://go.grinsbest.com/"], :root [href^="https://optimizedelite.com/"] > img, :root a[href^="https://cam4com.go2cloud.org/"], :root a[href^="https://www.dating-finder.com/signup/?ai_d="], :root a[href^="https://wolf-327b.com/"], :root a[href^="https://voluum.prom-xcams.com/"], :root iframe.lazyloaded[data-src^="https://rcm-fe.amazon-adsystem.com/"], :root [href*="passtechusa.com"], :root div.cookiespace, :root adsaga-banner, :root .category-ads:not(html):not(body):not(.post), :root div.holidAds, :root a[href^="https://twinrdsrv.com/"], :root .cookieTooltip:not(html), :root [href="https://snvhost.com/"], :root a[href^="https://trk.nfl-online-streams.club/"], :root .privacySettings:not(html):not(body), :root a[href^="https://track.wg-aff.com"], :root div.ad.panorama, :root a[href^="https://in.rabbtrk.com/"], :root amp-ad-custom, :root a[href^="https://track.adform.net/"], :root a[href^="https://torguard.net/aff.php"] > img, :root [data-identity="adhesive-ad"], :root a[href^="https://tc.tradetracker.net/"] > img, :root [href^="https://adult.xyz/"], :root a[href^="https://t.ajrkm3.com/"], :root a[href^="https://t.adating.link/"], :root [href^="https://zstacklife.com/"] img, :root a[href^="https://t.aslnk.link/"], :root a[onmousedown^="this.href='https://paid.outbrain.com/network/redir?"], :root a[href^="https://www.privateinternetaccess.com/"] > img, :root a[href^="https://go.trackitalltheway.com/"], :root [data-ad-manager-id]:not([style$="left: -10000px !important; top: -1000px !important;"]):not(.adsbygoogle), :root a[href^="https://syndication.dynsrvtbg.com/"], :root .notification[data-notification="coockieConsent"], :root [href^="https://t.mobtyb.com/"], :root a[href^="https://syndicate.contentsserved.com/"], :root a[href^="https://a.bestcontentoperation.top/"], :root a[href^="https://svb-analytics.trackerrr.com/"], :root div[data-type="_mgwidget"], :root a[href*="&maxads="], :root a[onmousedown^="this.href='https://paid.outbrain.com/network/redir?"] + .ob_source, :root body[data-publication] div[data-tmdatatrack-type="commercial"], :root a[href^="http://www.iyalc.com/"], :root a[href^="https://stardomcoit.com/"], :root img[width="728"][height="90"], :root a[href^="https://track.aftrk5.com/"], :root embed[width="600"][height="160"], :root .cookiebar[aria-live="polite"], :root a[href^="https://t.ajrkm1.com/"], :root div.accept-cookies, :root body .top-advert, :root .acris-cookie-consent:not(.is--modal), :root a[href^="https://myclick-2.com/"], :root div.dfp-ads-container-middle, :root article.sponsrat-inlagg, :root a[href^="https://sexynearme.com/"], :root div#contenedor-cookies, :root a[href^="https://s.zlinkt.com/"], :root .cc-dialog[aria-label="cookie-consent"], :root a[href^="https://osfultrbriolenai.info/"], :root s72-cookie-consent, :root a[href^="https://s.zlinkr.com/"], :root div.is-cookies, :root a[href^="https://static.fleshlight.com/images/banners/"], :root a[href^="https://s.zlink7.com/"], :root a[href^="https://s.ma3ion.com/"], :root embed[width="100%"][height="100"], :root div.mobile-ad-format, :root div.cookie--blur, :root a[href^="https://random-affiliate.atimaze.com/"], :root body > a.visible[id][href][target="_blank"], :root div.-cookie, :root #kt_player > div[style$="display: block;"][style*="inset: 0px;"], :root a[href^="https://www.friendlyduck.com/AF_"], :root a[href^="https://quotationfirearmrevision.com/"], :root iframe[width="240"][height="400"], :root a[href^="https://pubads.g.doubleclick.net/"], :root div.vue-ad-wrapper, :root a[href^="https://prf.hn/click/"][href*="/camref:"] > img, :root a[href^="https://prf.hn/click/"][href*="/adref:"] > img, :root a[href^="http://www.poweredbyliquidfire.mobi/"], :root a[href^="https://go.bbrdbr.com"], :root cloudflare-app[app="cookiless"], :root .mittenannons:not(body):not(html), :root [href^="https://ap.octopuspop.com/click/"] > img, :root #leader_ad:not(:empty), :root div#tracking-consent-dialog, :root a[href^="https://postback1win.com/"], :root .truste_overlay:not(body):not(html), :root a[href^="https://a.adtng.com/"], :root div#ACCsmallCookieLayer, :root div.cookie-hinweis, :root a[href^="https://playnano.online/offerwalls/?ref="], :root div.panorama-banner, :root div[id^="M"][id*="Composite"], :root a[href^="https://mmwebhandler.aff-online.com/"], :root [src^="//dombnrs.com/"], :root iframe[width="600"][height="90"], :root #mgb-container > #mgb, :root a[href^="https://www.bet365.com/"][href*="affiliate="], :root a[href*="www.bildelaronline24.se"][target="_blank"]:not(.footer-bottom__country), :root section.c-cookieconsent, :root a[href^="https://pb-track.com/"], :root a[href^="https://go.hpyrdr.com/"], :root #\5f _ndcc_cookieImpliedConsent, :root .cookie[data-cookie-info], :root div.alertCookies, :root a[href^="https://streamate.com/landing/click/"], :root a[href^="https://www.brazzersnetwork.com/landing/"], :root div[class^="DisplayAdvert"], :root app-cookie-bar, :root div[class^="Adstyled__AdWrapper-"], :root .show-gdpr:not(body), :root a[href^="https://upsups.click/"], :root [href^="https://join.girlsoutwest.com/"], :root div#ccpa-consent, :root a[href^="https://ndt5.net/"], :root app-cookie-widget, :root div.cc-CookieWarning, :root .container a[href^="https://go.mavrtracktor.com/"], :root [data-ad-name], :root div.toppannons, :root #topBannerAd:not(:empty), :root a[href^="https://go.xxxijmp.com"], :root a[href^="https://lead1.pl/"], :root .toast[data-dismissable-id="cookieinfo"], :root .footerannons:not(body):not(html), :root a[href^="https://join.bannedsextapes.com/track/"], :root a[href^="https://stellarcashflow.net/trck/"], :root a[href^="http://adultfriendfinder.com/go/"], :root div.top-advert-wrapper, :root .stickyads:not([style^="width: 32px"], [style^="width: 33px"], [style*="left: -43px"], [style*="-3"][style*="important"][style*="display: block;"], [style*="position: fixed"][style*="-188"], [style*="!important;"][style*="width:"][style*="height:"][style*="position"][style*="left:"][style*="top:"][style*="display"], [data-freestar-ad="123"]):not(:empty), :root div.cookie_header, :root .is-cookie-banner:not(body), :root a[href^="http://trk.globwo.online/"], :root div.inner_advertisement, :root a[href^="https://t.acam.link/"], :root .category-ad:not(html):not(body):not(.post), :root a[href^="https://s.happyleafmotion.com/"], :root #banner728x90:not([style^="position: absolute; left: -5000px"]), :root a[href^="https://identicaldrench.com/"], :root a[href^="https://golinks.work/"], :root a[href^="https://zirdough.net/"], :root [class^="tile-picker__CitrusBannerContainer-sc-"], :root html[lang="tr"] > body.has-footer-ad.has-pageskin-desktop a.pageskin-desktop-wrapper, :root a[href^="https://go.xxxiijmp.com"], :root div#schibsted-data-controller-sticky, :root app-accept-cookie, :root div[class$="-adlabel"], :root [data-css-class="dfp-inarticle"], :root a[href^="https://go.xlviiirdr.com"], :root a[href^="https://ismlks.com/"], :root a[href^="https://clickadilla.com/"], :root [href^="https://www.mypillow.com/"] > img, :root div.CookiesWrap, :root div.CookieConfirmation, :root app-cookies-alert, :root div.navbar-ad-section, :root a[href^="https://6-partner.com/"], :root a[href^="https://getmatchedlocally.com/"], :root cookie-permission, :root div[data-t="bannerAd"], :root div.cookie-notice-visible, :root div.cookie-consent-window, :root [id^="ad-wrap-"], :root a[href^="https://go.tmrjmp.com"], :root a[href^="https://go.markets.com/visit/?bta="], :root div.cookie-notice-consent, :root div[data-id="cookieBar"], :root div.fadeInDown[id$="____equal"][class$="____equal"], :root #kt_player #ads_iframe, :root div.containerCookies, :root embed[width="728"][height="90"], :root a[href^="https://go.goaserv.com/"], :root article[data-section="sponsrad"], :root epaas-consent-drawer-shell, :root a[href^="https://www.bang.com/?aff="], :root div.widget_widget_dfp, :root .close-btn[onclick="closeAd()"], :root article.article-sponsored, :root a[href^="https://get.surfshark.net/aff_c?"][href*="&aff_id="] > img, :root a[href^="https://datewhisper.life/"], :root .Ad-Container:not(.adsbygoogle), :root a[href^="https://get-link.xyz/"], :root a[href^="https://www.adskeeper.com"], :root a[data-redirect^="https://paid.outbrain.com/network/redir?"], :root [href^="https://clicks.affstrack.com/"] > img, :root #ad_300:not([style^="position: absolute; left: -5000px"]), :root aside.annonser-widget, :root a[href*=".foxqck.com/"], :root a[href^="//hoodingluster.com/"], :root a[href^="https://ctosrd.com/"], :root [onclick*="content.ad/"], :root .wpcnt > .wpa, :root a[href^="https://clixtrac.com/"], :root a[href^="https://clicks.pipaffiliates.com/"], :root div.adDivRight, :root a[href^="https://clickins.slixa.com/"], :root [data-gaoop_hide_after_close], :root a[href^="https://click.hoolig.app/"], :root a[href^="https://ads.planetwin365affiliate.com/"], :root a[href^="https://track.totalav.com/"], :root a[href^="https://ctrdwm.com/"], :root div.js-cookie-template, :root a[href^="https://porntubemate.com/"], :root [href^="https://mypatriotsupply.com/"] > img, :root .ob_container .item-container-obpd, :root #SiteInfoBanner[data-cookie-checker], :root embed[width="468"][height="60"], :root div.view-annons-banner, :root div.c-cookieConsent, :root a[href^="https://click.dtiserv2.com/"], :root [data-uri^="https://s3.amazonaws.com"], :root [href^="https://www.targetingpartner.com/"], :root a[href^="https://www.adxsrve.com/"], :root a[href^="https://click.Ggpickaff.com/"], :root div.cookie-preferences-banner, :root a[href^="https://bongacams2.com/track?"], :root a[href^="https://bongacams10.com/track?"], :root .main_container > .consent_site_cover, :root div.cookies__outer, :root [data-taboola-options], :root app-cookie-policy, :root a[href^="https://believessway.com/"], :root c-ecp-cookies-banner, :root [href="https://chaturbate.jjgirls.com/"] > img, :root a[href^="https://banners.livepartners.com/"], :root cookie-wrap, :root div.schibsted-info-sticky, :root a[href^="https://awptjmp.com/"], :root a[href^="https://aweptjmp.com/"], :root div.cookie__alert, :root body[data-publication] div.commercial-label-style, :root div.cookie-disclamer, :root a[href^="https://ausoafab.net/"], :root div#consent-cookie-container, :root .gaoop[data-gaoop_ua], :root a[href*=".ufinkln.com/"], :root div[class^="borka-panorama"], :root iframe[scrolling="no"][sandbox*="allow-popups allow-modals"][style^="width: 100%; height: 100%; border: none;"], :root a[href^="https://a.medfoodhome.com/"], :root .nya-slot[style], :root html[lang] > body:not([style]) > div.captchaBody, :root a[href^="https://a.bestcontentweb.top/"], :root div[data-cookie-path], :root a[href^="https://a2.adform.net/"], :root div#cookie-law-banner, :root .banner-img > .pbl, :root [data-name="cookieNotice"], :root a[href^="https://adclick.g.doubleclick.net/"], :root sj-cookie-banner, :root embed[width="240"][height="400"], :root div.lgpd-warning, :root [data-m-ad-id], :root a[href^="https://a-ads.com/"], :root [data-testid^="section-AdRowBillboard"], :root .ad-placeholder:not(#filter_ads_by_classname):not(#detect_ad_empire):not(#detect):not(.adsbox), :root [data-testid="consent-banner"], :root aside[data-aqa="widget-breaking-banner"], :root .alert[ng-if="showCookieDisclaimer"], :root broadstreet-zone-container, :root div.flow_ad, :root [href^="https://mylead.global/stl/"] > img, :root a[href^="https://ak.psaltauw.net/"], :root a[href^="https://1winpb.com/"], :root a[href^="http://www.adultempire.com/unlimited/promo?"][href*="&partner_id="], :root div[id^="optidigital-adslot"], :root [href^="https://wsup.ai/"], :root html > #bw-cf-root, :root ytd-consent-bump-renderer, :root [href^="https://a.acebet.com/api/click?"], :root a[href^="http://cam4com.go2cloud.org/aff_c?"], :root .cookies-accepted:not(body):not(.page), :root [href^="https://antiagingbed.com/discount/"] > img, :root a[id^="adBanner"][target="_blank"], :root #app-root ~ a[href][target="_blank"][style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;display: block;z-index: 9999999;cursor: auto"], :root a[href^="https://1betandgonow.com/"], :root .sidebarannonsseg:not(body):not(html), :root a-ad, :root .cookieinfo:not(body), :root .site-content > #cookie-law-info-bar, :root a[href^="https://offhandpump.com/"], :root .s--message[class*="cookie-notice"], :root div.content_ad_top, :root a[href^="http://stickingrepute.com/"], :root [class*="advads_ad_widget"]:not(body):not(html), :root [data-testid="commercial-label-taboola"], :root #slashboxes > .deals-rail, :root [href^="http://mypillow.com/"] > img, :root div.cookiesection, :root div.adform-container, :root div.pageCookie, :root #page > .privacy-optin, :root kuma-cookie-bar, :root [data-cl-spot-id], :root a[href*="/jump/next.php?r="], :root .close-btn4[onclick="closeAd4()"], :root div.-cookies, :root div.sb-egmont-plugin, :root .ad-space:not(.textads), :root div.block-cookie, :root a[href^="https://chaturbate.com/in/?"], :root div[id^="lazyad-"], :root [data-cookie-validity-days], :root div.bottom-cookies, :root in-page-message[doskip], :root a[href*=".cfm?domain="][href*="&fp="], :root div.advads-background, :root cmpviews-cookies-accept, :root [id^="section-ad-banner"], :root div.cookieMessage, :root a[href^="https://go.bushheel.com/"], :root a[href^="https://ctjdwm.com/"], :root div.panelCookies, :root .gnt_em_vp_c[data-g-s="vp_dk"], :root [id^="google_ads_iframe_"], :root div.cookies-pan, :root [id^="ad_slider"], :root a[href^="https://wmctjd.com/"], :root dk-cookie-warning, :root [href^="https://join3.bannedsextapes.com"], :root [href^="https://www.restoro.com/"], :root a[href^="https://bngpt.com/"], :root cloudflare-app[app="tibrr-cookie-consent"], :root #st-ami + div[id][class*=" "], :root a[href^="https://tour.mrskin.com/"], :root div#mega-ad-content, :root #player div[style$="cursor: pointer; position: absolute; width: 100%; height: 100%; padding: 1rem; z-index: 2147483647;"], :root citrus-ad-wrapper, :root [href^="https://www.avantlink.com/click.php"] img, :root .layer-cookies-wrapper:not(html):not(body), :root a[href^="https://go.strpjmp.com/"], :root [href^="https://url.totaladblock.com/"], :root a[href^="https://iqbroker.com/"][href*="?aff="], :root a[href^="https://bc.game/"], :root .sw-sponsored_post:not(body):not(html), :root [href^="https://shiftnetwork.infusionsoft.com/go/"] > img, :root [href^="https://wct.link/click?"], :root .mm-page > .cookies, :root [data-test-id="cookie-consent-banner"], :root [data-alert-cookie], :root .adrotate-group:not(body):not(html), :root a[href^="https://go.rmishe.com/"], :root .react-ad:not(body):not(html), :root div.cookie-compilance, :root [href^="https://ilovemyfreedoms.com/landing-"], :root div.td-banner-bg, :root [href^="https://istlnkcl.com/"], :root a[title="LeoVegas"], :root app-pop-up-cookies, :root [data-ref="cookies"], :root a[href^="https://go.nordvpn.net/aff"] > img, :root .\[\&_\.gdprAdTransparencyCogWheelButton\]\:\!pjra-z-\[5\], :root [href^="http://clicks.totemcash.com/"], :root [aria-describedby="cookie-box-message"], :root .topbanner-desktop:not(body):not(html), :root div#consentframe, :root [data-id^="div-gpt-ad"], :root [href^="https://awbbjmp.com/"], :root div.cPolicy, :root [name^="google_ads_iframe"], :root .ads_banner:not([style^="width: 32px"], [style^="width: 33px"], [style*="left: -43px"], [style*="-3"][style*="important"][style*="display: block;"], [style*="position: fixed"][style*="-188"], [style*="!important;"][style*="width:"][style*="height:"][style*="position"][style*="left:"][style*="top:"][style*="display"]):not(:empty), :root a[href^="https://s.cant3am.com/"], :root iframe[width="240"][height="350"], :root .alertbar[data-alert="cookie"], :root [href^="//cadsecs.com/"], :root a[href*=".adglare.net/"], :root div.ashe-preloader-wrap, :root .menu-item a[href^="https://go.rmhfrtnd.com"], :root a[href^="https://track.1234sd123.com/"], :root article.category-samarbete, :root div.ccpa-notice, :root [data-testid="prism-ad-wrapper"], :root #teaser1[style^="width:autopx;"], :root [href^="https://www.cloudways.com/en/?id"], :root a[href^="https://bodelen.com/"], :root cookies-warning, :root .btn-primary[onclick="showVerification()"], :root .category-annons:not(body):not(html), :root .puFloatLine > #puFloatDiv, :root div.cookie-consent-bar, :root span[data-ez-ph-id], :root div[data-target="ad"], :root atlas-logon-cookie-policy, :root .contentmovie > div[class^="ad"], :root div[id^="adngin-"], :root [data-rc-widget], :root [data-mobile-ad-id], :root article.cookie-banner, :root a.card.-sponsored, :root a[href^="https://fc.lc/ref/"], :root html > .cfmd-shadow-host, :root a[href^="https://pb-imc.com/"], :root .ad_box:not(.text-ad), :root topadblock, :root a[href^="//s.zlinkd.com/"], :root [data-testid="accept-cookies-banner"], :root [data-freestar-ad][id], :root loop-cookie, :root div[data-e2e="advertisement"], :root [data-cy="cookie-notice"], :root [data-desktop-ad-id], :root a[onclick="openAuc();"], :root div.cookie_agree, :root div[data-component="cookie-policy"], :root .post-template-default a[href^="https://www.ourdreamersai13.com/"], :root [data-d-ad-id], :root a[href^="https://go.rmhfrtnd.com"], :root col-cookie-info-banner, :root div[data-banner="cookies"], :root .cookies-allowed[role="dialog"], :root a[href^="https://go.mnaspm.com/"], :root a[href^="http://join.brokestraightboys.com/track/"], :root [href^="http://referrer.website/"], :root [href^="https://rapidgator.net/article/premium/ref/"], :root a[data-bid="1"][href*="/linkout"], :root #notify-bar[data-cookie-name="notify-cookies"], :root #pushdown > .gb_ib, :root [data-ad-cls], :root #teaser3[style^="width:autopx;"], :root app-cb-cookies, :root div#spot-holder.spot-holder[style="display: block;"], :root div.cookieconsent, :root .ad-box:not(#ad-banner):not(:empty), :root [data-ez-name], :root .mvic-btn > a.btn-successful, :root #ads_top:not(a), :root div.cookies_pop, :root #ad_area:not([style^="position: absolute; left: -5000px"]), :root [data-testid="ad_testID"], :root [class^="amp-ad-"], :root a[href^="https://www.liquidfire.mobi/"], :root .grid > .container > #aside-promotion, :root a[href^="https://a.bestcontentfood.top/"], :root cookie-popup, :root .mod-overlay[data-topic="consent"], :root DFP-AD, :root [href^="https://zone.gotrackier.com/"], :root .ad-area:not(.text-ad), :root a[href^="https://ab.advertiserurl.com/aff/"], :root a[data-oburl^="https://paid.outbrain.com/network/redir?"], :root a[href^="https://s.zlinkn.com/"], :root .sponsorBanner:not(body):not(html), :root a[href^="https://go.xxxvjmp.com/"], :root [href^="https://aads.com/campaigns/"], :root ad-shield-ads, :root html[lang="tr"] #aa-wp .rnd-ads-adjustment, :root #banner468:not([style^="position: absolute; left: -5000px"]), :root a[href^="https://srv.clickfuse.com/"], :root a[href^="https://hot-growngames.life/"], :root [href^="https://popcash.net/"], :root [href="https://jdrucker.com/gold"] > img, :root .ad-wrap:not(#google_ads_iframe_checktag), :root [href^="https://ad1.adfarm1.adition.com/"], :root a[href*="doktor-se.onelink.me"], :root .ob_dual_right > .ob_ads_header ~ .odb_div, :root div.acceptCookie, :root a[href^="https://wittered-mainging.com/"], :root [data-revive-zoneid], :root button[data-openuri="|BTN_URL|"], :root #teaser2[style^="width:autopx;"], :root a[href^="https://losingoldfry.com/"], :root div.layer_cookies, :root .scroll-fixable.rail-right > .deals-rail, :root div[id^="adrotate_widgets-"] { display: none !important; }</style><style></style></head> +<body> +<div class="header-bar"> +<div class="header"> + <span class="almanaclogo"></span> + <a href="https://github.com/marchof/java-almanac" class="githublink">GitHub</a><search class="findbox"> +<form action="https://javaalmanac.io/find/"> +<input type="search" name="q" placeholder="Find Java Resources"><button type="submit"> </button> +</form> +</search> + <span class="siteheader1">The Java Version Almanac</span><br> + <a class="siteheader2" href="https://javaalmanac.io/">javaalmanac.io</a> +</div> +</div> +<div class="content" id="content"><div class="feedback"> +<a href="https://github.com/marchof/java-almanac/issues/new?title=Feedback%20on%20page%20%22All%20Opcodes%20by%20Opcode%20Value%22&body=Hello,%20I%20would%20like%20to%20propose%20the%20following%20improvement%20on%20[this%20page]%28https://javaalmanac.io/bytecode/opcodes/%29:">Feedback on this page?</a> +</div><ul class="breadcrump"> + <li><a href="https://javaalmanac.io/">The Java Version Almanac</a></li> + <li><a href="https://javaalmanac.io/bytecode/">Java Bytecode</a></li> +</ul> +<h1>All Opcodes by Opcode Value</h1><table> + <thead> + <tr> + <th>Opcode</th> + <th>Mnemonic</th> + <th>Description</th> + </tr> + </thead> + <tbody> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/nop/"><code>0</code></a></td> + <td>nop</td> + <td>Do nothing</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aconst_null/"><code>1</code></a></td> + <td>aconst_null</td> + <td>Push <code>null</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iconst_m1/"><code>2</code></a></td> + <td>iconst_m1</td> + <td>Push <code>int</code> constant <code>-1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iconst_0/"><code>3</code></a></td> + <td>iconst_0</td> + <td>Push <code>int</code> constant <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iconst_1/"><code>4</code></a></td> + <td>iconst_1</td> + <td>Push <code>int</code> constant <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iconst_2/"><code>5</code></a></td> + <td>iconst_2</td> + <td>Push <code>int</code> constant <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iconst_3/"><code>6</code></a></td> + <td>iconst_3</td> + <td>Push <code>int</code> constant <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iconst_4/"><code>7</code></a></td> + <td>iconst_4</td> + <td>Push <code>int</code> constant <code>4</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iconst_5/"><code>8</code></a></td> + <td>iconst_5</td> + <td>Push <code>int</code> constant <code>5</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lconst_0/"><code>9</code></a></td> + <td>lconst_0</td> + <td>Push <code>long</code> constant</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lconst_1/"><code>10</code></a></td> + <td>lconst_1</td> + <td>Push <code>long</code> constant</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fconst_0/"><code>11</code></a></td> + <td>fconst_0</td> + <td>Push <code>float</code> value <code>0.0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fconst_1/"><code>12</code></a></td> + <td>fconst_1</td> + <td>Push <code>float</code> value <code>1.0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fconst_2/"><code>13</code></a></td> + <td>fconst_2</td> + <td>Push <code>float</code> value <code>2.0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dconst_0/"><code>14</code></a></td> + <td>dconst_0</td> + <td>Push <code>double</code> value <code>0.0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dconst_1/"><code>15</code></a></td> + <td>dconst_1</td> + <td>Push <code>double</code> value <code>1.0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/bipush/"><code>16</code></a></td> + <td>bipush</td> + <td>Push <code>byte</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/sipush/"><code>17</code></a></td> + <td>sipush</td> + <td>Push <code>short</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ldc/"><code>18</code></a></td> + <td>ldc</td> + <td>Push item from constant pool</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ldc_w/"><code>19</code></a></td> + <td>ldc_w</td> + <td>Push item from constant pool (wide index)</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ldc2_w/"><code>20</code></a></td> + <td>ldc2_w</td> + <td>Push <code>long</code> or <code>double</code> from constant pool (wide index)</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iload/"><code>21</code></a></td> + <td>iload</td> + <td>Load <code>int</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lload/"><code>22</code></a></td> + <td>lload</td> + <td>Load <code>long</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fload/"><code>23</code></a></td> + <td>fload</td> + <td>Load <code>float</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dload/"><code>24</code></a></td> + <td>dload</td> + <td>Load <code>double</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aload/"><code>25</code></a></td> + <td>aload</td> + <td>Load reference from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iload_0/"><code>26</code></a></td> + <td>iload_0</td> + <td>Load <code>int</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iload_1/"><code>27</code></a></td> + <td>iload_1</td> + <td>Load <code>int</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iload_2/"><code>28</code></a></td> + <td>iload_2</td> + <td>Load <code>int</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iload_3/"><code>29</code></a></td> + <td>iload_3</td> + <td>Load <code>int</code> from local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lload_0/"><code>30</code></a></td> + <td>lload_0</td> + <td>Load <code>long</code> from local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lload_1/"><code>31</code></a></td> + <td>lload_1</td> + <td>Load <code>long</code> from local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lload_2/"><code>32</code></a></td> + <td>lload_2</td> + <td>Load <code>long</code> from local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lload_3/"><code>33</code></a></td> + <td>lload_3</td> + <td>Load <code>long</code> from local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fload_0/"><code>34</code></a></td> + <td>fload_0</td> + <td>Load <code>float</code> from local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fload_1/"><code>35</code></a></td> + <td>fload_1</td> + <td>Load <code>float</code> from local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fload_2/"><code>36</code></a></td> + <td>fload_2</td> + <td>Load <code>float</code> from local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fload_3/"><code>37</code></a></td> + <td>fload_3</td> + <td>Load <code>float</code> from local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dload_0/"><code>38</code></a></td> + <td>dload_0</td> + <td>Load <code>double</code> from local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dload_1/"><code>39</code></a></td> + <td>dload_1</td> + <td>Load <code>double</code> from local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dload_2/"><code>40</code></a></td> + <td>dload_2</td> + <td>Load <code>double</code> from local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dload_3/"><code>41</code></a></td> + <td>dload_3</td> + <td>Load <code>double</code> from local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aload_0/"><code>42</code></a></td> + <td>aload_0</td> + <td>Load reference from local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aload_1/"><code>43</code></a></td> + <td>aload_1</td> + <td>Load reference from local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aload_2/"><code>44</code></a></td> + <td>aload_2</td> + <td>Load reference from local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aload_3/"><code>45</code></a></td> + <td>aload_3</td> + <td>Load reference from local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iaload/"><code>46</code></a></td> + <td>iaload</td> + <td>Load <code>int</code> from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/laload/"><code>47</code></a></td> + <td>laload</td> + <td>Load <code>long</code> from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/faload/"><code>48</code></a></td> + <td>faload</td> + <td>Load <code>float</code> from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/daload/"><code>49</code></a></td> + <td>daload</td> + <td>Load <code>double</code> from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aaload/"><code>50</code></a></td> + <td>aaload</td> + <td>Load reference from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/baload/"><code>51</code></a></td> + <td>baload</td> + <td>Load <code>byte</code> or <code>boolean</code> from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/caload/"><code>52</code></a></td> + <td>caload</td> + <td>Load <code>char</code> from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/saload/"><code>53</code></a></td> + <td>saload</td> + <td>Load <code>short</code> from array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/istore/"><code>54</code></a></td> + <td>istore</td> + <td>Store <code>int</code> into local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lstore/"><code>55</code></a></td> + <td>lstore</td> + <td>Store <code>long</code> into local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fstore/"><code>56</code></a></td> + <td>fstore</td> + <td>Store <code>float</code> into local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dstore/"><code>57</code></a></td> + <td>dstore</td> + <td>Store <code>double</code> into local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/astore/"><code>58</code></a></td> + <td>astore</td> + <td>Store reference into local variable</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/istore_0/"><code>59</code></a></td> + <td>istore_0</td> + <td>Store <code>int</code> into local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/istore_1/"><code>60</code></a></td> + <td>istore_1</td> + <td>Store <code>int</code> into local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/istore_2/"><code>61</code></a></td> + <td>istore_2</td> + <td>Store <code>int</code> into local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/istore_3/"><code>62</code></a></td> + <td>istore_3</td> + <td>Store <code>int</code> into local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lstore_0/"><code>63</code></a></td> + <td>lstore_0</td> + <td>Store <code>long</code> into local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lstore_1/"><code>64</code></a></td> + <td>lstore_1</td> + <td>Store <code>long</code> into local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lstore_2/"><code>65</code></a></td> + <td>lstore_2</td> + <td>Store <code>long</code> into local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lstore_3/"><code>66</code></a></td> + <td>lstore_3</td> + <td>Store <code>long</code> into local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fstore_0/"><code>67</code></a></td> + <td>fstore_0</td> + <td>Store <code>float</code> into local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fstore_1/"><code>68</code></a></td> + <td>fstore_1</td> + <td>Store <code>float</code> into local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fstore_2/"><code>69</code></a></td> + <td>fstore_2</td> + <td>Store <code>float</code> into local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fstore_3/"><code>70</code></a></td> + <td>fstore_3</td> + <td>Store <code>float</code> into local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dstore_0/"><code>71</code></a></td> + <td>dstore_0</td> + <td>Store <code>double</code> into local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dstore_1/"><code>72</code></a></td> + <td>dstore_1</td> + <td>Store <code>double</code> into local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dstore_2/"><code>73</code></a></td> + <td>dstore_2</td> + <td>Store <code>double</code> into local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dstore_3/"><code>74</code></a></td> + <td>dstore_3</td> + <td>Store <code>double</code> into local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/astore_0/"><code>75</code></a></td> + <td>astore_0</td> + <td>Store reference into local variable <code>0</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/astore_1/"><code>76</code></a></td> + <td>astore_1</td> + <td>Store reference into local variable <code>1</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/astore_2/"><code>77</code></a></td> + <td>astore_2</td> + <td>Store reference into local variable <code>2</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/astore_3/"><code>78</code></a></td> + <td>astore_3</td> + <td>Store reference into local variable <code>3</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iastore/"><code>79</code></a></td> + <td>iastore</td> + <td>Store into <code>int</code> array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lastore/"><code>80</code></a></td> + <td>lastore</td> + <td>Store into <code>long</code> array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fastore/"><code>81</code></a></td> + <td>fastore</td> + <td>Store into <code>float</code> array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dastore/"><code>82</code></a></td> + <td>dastore</td> + <td>Store into <code>double</code> array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/aastore/"><code>83</code></a></td> + <td>aastore</td> + <td>Store into reference array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/bastore/"><code>84</code></a></td> + <td>bastore</td> + <td>Store into <code>byte</code> or <code>boolean</code> array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/castore/"><code>85</code></a></td> + <td>castore</td> + <td>Store into <code>char</code> array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/sastore/"><code>86</code></a></td> + <td>sastore</td> + <td>Store into <code>short</code> array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/pop/"><code>87</code></a></td> + <td>pop</td> + <td>Pop the top operand stack value</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/pop2/"><code>88</code></a></td> + <td>pop2</td> + <td>Pop the top one or two operand stack values</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dup/"><code>89</code></a></td> + <td>dup</td> + <td>Duplicate the top operand stack value</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dup_x1/"><code>90</code></a></td> + <td>dup_x1</td> + <td>Duplicate the top operand stack value and insert two values down</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dup_x2/"><code>91</code></a></td> + <td>dup_x2</td> + <td>Duplicate the top operand stack value and insert two or three values down</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dup2/"><code>92</code></a></td> + <td>dup2</td> + <td>Duplicate the top one or two operand stack values</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dup2_x1/"><code>93</code></a></td> + <td>dup2_x1</td> + <td>Duplicate the top one or two operand stack values and insert two or three values down</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dup2_x2/"><code>94</code></a></td> + <td>dup2_x2</td> + <td>Duplicate the top one or two operand stack values and insert two, three, or four values down</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/swap/"><code>95</code></a></td> + <td>swap</td> + <td>Swap the top two operand stack values</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iadd/"><code>96</code></a></td> + <td>iadd</td> + <td>Add <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ladd/"><code>97</code></a></td> + <td>ladd</td> + <td>Add <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fadd/"><code>98</code></a></td> + <td>fadd</td> + <td>Add <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dadd/"><code>99</code></a></td> + <td>dadd</td> + <td>Add <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/isub/"><code>100</code></a></td> + <td>isub</td> + <td>Subtract <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lsub/"><code>101</code></a></td> + <td>lsub</td> + <td>Subtract <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fsub/"><code>102</code></a></td> + <td>fsub</td> + <td>Subtract <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dsub/"><code>103</code></a></td> + <td>dsub</td> + <td>Subtract <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/imul/"><code>104</code></a></td> + <td>imul</td> + <td>Multiply <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lmul/"><code>105</code></a></td> + <td>lmul</td> + <td>Multiply <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fmul/"><code>106</code></a></td> + <td>fmul</td> + <td>Multiply <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dmul/"><code>107</code></a></td> + <td>dmul</td> + <td>Multiply <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/idiv/"><code>108</code></a></td> + <td>idiv</td> + <td>Divide <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ldiv/"><code>109</code></a></td> + <td>ldiv</td> + <td>Divide <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fdiv/"><code>110</code></a></td> + <td>fdiv</td> + <td>Divide <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ddiv/"><code>111</code></a></td> + <td>ddiv</td> + <td>Divide <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/irem/"><code>112</code></a></td> + <td>irem</td> + <td>Remainder <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lrem/"><code>113</code></a></td> + <td>lrem</td> + <td>Remainder <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/frem/"><code>114</code></a></td> + <td>frem</td> + <td>Remainder <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/drem/"><code>115</code></a></td> + <td>drem</td> + <td>Remainder <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ineg/"><code>116</code></a></td> + <td>ineg</td> + <td>Negate <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lneg/"><code>117</code></a></td> + <td>lneg</td> + <td>Negate <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fneg/"><code>118</code></a></td> + <td>fneg</td> + <td>Negate <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dneg/"><code>119</code></a></td> + <td>dneg</td> + <td>Negate <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ishl/"><code>120</code></a></td> + <td>ishl</td> + <td>Shift left <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lshl/"><code>121</code></a></td> + <td>lshl</td> + <td>Shift left <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ishr/"><code>122</code></a></td> + <td>ishr</td> + <td>Arithmetic shift right <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lshr/"><code>123</code></a></td> + <td>lshr</td> + <td>Arithmetic shift right <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iushr/"><code>124</code></a></td> + <td>iushr</td> + <td>Logical shift right <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lushr/"><code>125</code></a></td> + <td>lushr</td> + <td>Logical shift right <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iand/"><code>126</code></a></td> + <td>iand</td> + <td>Boolean AND <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/land/"><code>127</code></a></td> + <td>land</td> + <td>Boolean AND <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ior/"><code>128</code></a></td> + <td>ior</td> + <td>Boolean OR <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lor/"><code>129</code></a></td> + <td>lor</td> + <td>Boolean OR <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ixor/"><code>130</code></a></td> + <td>ixor</td> + <td>Boolean XOR <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lxor/"><code>131</code></a></td> + <td>lxor</td> + <td>Boolean XOR <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iinc/"><code>132</code></a></td> + <td>iinc</td> + <td>Increment local variable by constant</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/i2l/"><code>133</code></a></td> + <td>i2l</td> + <td>Convert <code>int</code> to <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/i2f/"><code>134</code></a></td> + <td>i2f</td> + <td>Convert <code>int</code> to <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/i2d/"><code>135</code></a></td> + <td>i2d</td> + <td>Convert <code>int</code> to <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/l2i/"><code>136</code></a></td> + <td>l2i</td> + <td>Convert <code>long</code> to <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/l2f/"><code>137</code></a></td> + <td>l2f</td> + <td>Convert <code>long</code> to <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/l2d/"><code>138</code></a></td> + <td>l2d</td> + <td>Convert <code>long</code> to <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/f2i/"><code>139</code></a></td> + <td>f2i</td> + <td>Convert <code>float</code> to <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/f2l/"><code>140</code></a></td> + <td>f2l</td> + <td>Convert <code>float</code> to <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/f2d/"><code>141</code></a></td> + <td>f2d</td> + <td>Convert <code>float</code> to <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/d2i/"><code>142</code></a></td> + <td>d2i</td> + <td>Convert <code>double</code> to <code>int</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/d2l/"><code>143</code></a></td> + <td>d2l</td> + <td>Convert <code>double</code> to <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/d2f/"><code>144</code></a></td> + <td>d2f</td> + <td>Convert <code>double</code> to <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/i2b/"><code>145</code></a></td> + <td>i2b</td> + <td>Convert <code>int</code> to <code>byte</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/i2c/"><code>146</code></a></td> + <td>i2c</td> + <td>Convert <code>int</code> to <code>char</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/i2s/"><code>147</code></a></td> + <td>i2s</td> + <td>Convert <code>int</code> to <code>short</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lcmp/"><code>148</code></a></td> + <td>lcmp</td> + <td>Compare <code>long</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fcmpl/"><code>149</code></a></td> + <td>fcmpl</td> + <td>Compare <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/fcmpg/"><code>150</code></a></td> + <td>fcmpg</td> + <td>Compare <code>float</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dcmpl/"><code>151</code></a></td> + <td>dcmpl</td> + <td>Compare <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dcmpg/"><code>152</code></a></td> + <td>dcmpg</td> + <td>Compare <code>double</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ifeq/"><code>153</code></a></td> + <td>ifeq</td> + <td>Jump if <code>int</code> comparison with zero succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ifne/"><code>154</code></a></td> + <td>ifne</td> + <td>Jump if <code>int</code> comparison with zero succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/iflt/"><code>155</code></a></td> + <td>iflt</td> + <td>Jump if <code>int</code> comparison with zero succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ifge/"><code>156</code></a></td> + <td>ifge</td> + <td>Jump if <code>int</code> comparison with zero succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ifgt/"><code>157</code></a></td> + <td>ifgt</td> + <td>Jump if <code>int</code> comparison with zero succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ifle/"><code>158</code></a></td> + <td>ifle</td> + <td>Jump if <code>int</code> comparison with zero succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_icmpeq/"><code>159</code></a></td> + <td>if_icmpeq</td> + <td>Jump if <code>int</code> comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_icmpne/"><code>160</code></a></td> + <td>if_icmpne</td> + <td>Jump if <code>int</code> comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_icmplt/"><code>161</code></a></td> + <td>if_icmplt</td> + <td>Jump if <code>int</code> comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_icmpge/"><code>162</code></a></td> + <td>if_icmpge</td> + <td>Jump if <code>int</code> comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_icmpgt/"><code>163</code></a></td> + <td>if_icmpgt</td> + <td>Jump if <code>int</code> comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_icmple/"><code>164</code></a></td> + <td>if_icmple</td> + <td>Jump if <code>int</code> comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_acmpeq/"><code>165</code></a></td> + <td>if_acmpeq</td> + <td>Jump if reference comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/if_acmpne/"><code>166</code></a></td> + <td>if_acmpne</td> + <td>Jump if reference comparison succeeds</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/goto/"><code>167</code></a></td> + <td>goto</td> + <td>Unconditional jump</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/jsr/"><code>168</code></a></td> + <td>jsr</td> + <td>Jump subroutine</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ret/"><code>169</code></a></td> + <td>ret</td> + <td>Return from subroutine</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/tableswitch/"><code>170</code></a></td> + <td>tableswitch</td> + <td>Access jump table by index and jump</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lookupswitch/"><code>171</code></a></td> + <td>lookupswitch</td> + <td>Access jump table by key match and jump</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ireturn/"><code>172</code></a></td> + <td>ireturn</td> + <td>Return <code>int</code> from method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/lreturn/"><code>173</code></a></td> + <td>lreturn</td> + <td>Return <code>long</code> from method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/freturn/"><code>174</code></a></td> + <td>freturn</td> + <td>Return <code>float</code> from method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/dreturn/"><code>175</code></a></td> + <td>dreturn</td> + <td>Return <code>double</code> from method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/areturn/"><code>176</code></a></td> + <td>areturn</td> + <td>Return reference from method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/return/"><code>177</code></a></td> + <td>return</td> + <td>Return <code>void</code> from method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/getstatic/"><code>178</code></a></td> + <td>getstatic</td> + <td>Get <code>static</code> field from class</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/putstatic/"><code>179</code></a></td> + <td>putstatic</td> + <td>Set static field in class</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/getfield/"><code>180</code></a></td> + <td>getfield</td> + <td>Fetch field from object</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/putfield/"><code>181</code></a></td> + <td>putfield</td> + <td>Set field in object</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/invokevirtual/"><code>182</code></a></td> + <td>invokevirtual</td> + <td>Invoke instance method, dispatch based on class</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/invokespecial/"><code>183</code></a></td> + <td>invokespecial</td> + <td>Directly invoke instance (initialization) method of the current class or its supertypes</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/invokestatic/"><code>184</code></a></td> + <td>invokestatic</td> + <td>Invoke <code>static</code> method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/invokeinterface/"><code>185</code></a></td> + <td>invokeinterface</td> + <td>Invoke interface method</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/invokedynamic/"><code>186</code></a></td> + <td>invokedynamic</td> + <td>Invoke a dynamically-computed call site</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/new/"><code>187</code></a></td> + <td>new</td> + <td>Create new object</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/newarray/"><code>188</code></a></td> + <td>newarray</td> + <td>Create new array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/anewarray/"><code>189</code></a></td> + <td>anewarray</td> + <td>Create new array of reference</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/arraylength/"><code>190</code></a></td> + <td>arraylength</td> + <td>Get length of array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/athrow/"><code>191</code></a></td> + <td>athrow</td> + <td>Throw <code>Throwable</code> reference</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/checkcast/"><code>192</code></a></td> + <td>checkcast</td> + <td>Check whether reference is of given type</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/instanceof/"><code>193</code></a></td> + <td>instanceof</td> + <td>Determine if reference is of given type</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/monitorenter/"><code>194</code></a></td> + <td>monitorenter</td> + <td>Enter monitor for object</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/monitorexit/"><code>195</code></a></td> + <td>monitorexit</td> + <td>Exit monitor for object</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/wide/"><code>196</code></a></td> + <td>wide</td> + <td>Extend local variable index by additional bytes</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/multianewarray/"><code>197</code></a></td> + <td>multianewarray</td> + <td>Create new multidimensional array</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ifnull/"><code>198</code></a></td> + <td>ifnull</td> + <td>Jump if reference is <code>null</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/ifnonnull/"><code>199</code></a></td> + <td>ifnonnull</td> + <td>Jump if reference not <code>null</code></td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/goto_w/"><code>200</code></a></td> + <td>goto_w</td> + <td>Unconditional jump (wide index)</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/jsr_w/"><code>201</code></a></td> + <td>jsr_w</td> + <td>Jump subroutine (wide index)</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/breakpoint/"><code>202</code></a></td> + <td>breakpoint</td> + <td>Reserved for internal usage in debuggers</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/impdep1/"><code>254</code></a></td> + <td>impdep1</td> + <td>Reserved for internal usage in JVM</td> + </tr> + <tr> + <td><a href="https://javaalmanac.io/bytecode/op/impdep2/"><code>255</code></a></td> + <td>impdep2</td> + <td>Reserved for internal usage in JVM</td> + </tr> + </tbody> +</table> + +<div class="datasource"> + <a href="https://data.javaalmanac.io/v1/bytecode/opcodes">Data Source</a> +</div> +</div> +<div class="footer-bar"> +<div class="footer"> + <span style="float:right">© 2018, 2026 Marc R. Hoffmann et al. <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></span> + Content managed on <a href="https://github.com/marchof/java-almanac">GitHub</a>. + Generated with <a href="https://gohugo.io/">Hugo</a>. + Collected with passion. +</div> +</div> + + +<div style="all: initial !important"><template shadowrootmode="open"><div><style></style><div class="app-root"><div id="modals-container"></div></div><style> +.vue-modal-resizer { + display: block; + overflow: hidden; + position: absolute; + width: 12px; + height: 12px; + right: 0; + bottom: 0; + z-index: 9999999; + background: transparent; + cursor: se-resize; +} +.vue-modal-resizer::after { + display: block; + position: absolute; + content: ''; + background: transparent; + left: 0; + top: 0; + width: 0; + height: 0; + border-bottom: 10px solid #ddd; + border-left: 10px solid transparent; +} +.vue-modal-resizer.clicked::after { + border-bottom: 10px solid #369be9; +} + + +.v--modal-block-scroll { + overflow: hidden; + width: 100vw; +} +.v--modal-overlay { + position: fixed; + box-sizing: border-box; + left: 0; + top: 0; + width: 100%; + height: 100vh; + background: rgba(0, 0, 0, 0.2); + z-index: 999; + opacity: 1; +} +.v--modal-overlay.scrollable { + height: 100%; + min-height: 100vh; + overflow-y: auto; + -webkit-overflow-scrolling: touch; +} +.v--modal-overlay .v--modal-background-click { + width: 100%; + min-height: 100%; + height: auto; +} +.v--modal-overlay .v--modal-box { + position: relative; + overflow: hidden; + box-sizing: border-box; +} +.v--modal-overlay.scrollable .v--modal-box { + margin-bottom: 2px; +} +.v--modal { + background-color: white; + text-align: left; + border-radius: 3px; + box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4); + padding: 0; +} +.v--modal.v--modal-fullscreen { + width: 100vw; + height: 100vh; + margin: 0; + left: 0; + top: 0; +} +.v--modal-top-right { + display: block; + position: absolute; + right: 0; + top: 0; +} +.overlay-fade-enter-active, +.overlay-fade-leave-active { + transition: all 0.2s; +} +.overlay-fade-enter, +.overlay-fade-leave-active { + opacity: 0; +} +.nice-modal-fade-enter-active, +.nice-modal-fade-leave-active { + transition: all 0.4s; +} +.nice-modal-fade-enter, +.nice-modal-fade-leave-active { + opacity: 0; + transform: translateY(-20px); +} + + +.vue-dialog div { + box-sizing: border-box; +} +.vue-dialog .dialog-flex { + width: 100%; + height: 100%; +} +.vue-dialog .dialog-content { + flex: 1 0 auto; + width: 100%; + padding: 15px; + font-size: 14px; +} +.vue-dialog .dialog-c-title { + font-weight: 600; + padding-bottom: 15px; +} +.vue-dialog .dialog-c-text { +} +.vue-dialog .vue-dialog-buttons { + display: flex; + flex: 0 1 auto; + width: 100%; + border-top: 1px solid #eee; +} +.vue-dialog .vue-dialog-buttons-none { + width: 100%; + padding-bottom: 15px; +} +.vue-dialog-button { + font-size: 12px !important; + background: transparent; + padding: 0; + margin: 0; + border: 0; + cursor: pointer; + box-sizing: border-box; + line-height: 40px; + height: 40px; + color: inherit; + font: inherit; + outline: none; +} +.vue-dialog-button:hover { + background: rgba(0, 0, 0, 0.01); +} +.vue-dialog-button:active { + background: rgba(0, 0, 0, 0.025); +} +.vue-dialog-button:not(:first-of-type) { + border-left: 1px solid #eee; +} + +.app-download-modal .modal[data-v-7b358a25]{width:80%;height:80%;border-radius:4vmin;background:#272727;padding:3vmin;box-sizing:border-box}.app-download-modal .modal .items[data-v-7b358a25]{height:100%;width:100%;display:grid;gap:2vmin;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-auto-rows:calc(50% - 1.5vmin);overflow:auto}.app-download-modal .modal .items[data-v-7b358a25]::-webkit-scrollbar{width:0;height:0}.app-download-modal .modal .items[data-v-7b358a25]::-webkit-scrollbar-button{width:0px;height:0px}.app-download-modal .modal .items[data-v-7b358a25]::-webkit-scrollbar-thumb{background:var(--scroll-color);border-radius:50px}.app-download-modal .modal .items[data-v-7b358a25]::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.app-download-modal .modal .items[data-v-7b358a25]::-webkit-scrollbar-track:hover{background:rgba(0,0,0,0)}.app-download-modal .modal .items[data-v-7b358a25]::-webkit-scrollbar-track:active{background:rgba(0,0,0,0)}.app-download-modal .modal .items[data-v-7b358a25] ::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}.app-download-modal .modal .items .item[data-v-7b358a25]{overflow:hidden;display:flex;flex-direction:column;gap:1.5vmin;flex-shrink:0;height:100%;box-sizing:border-box;padding:1vmin;background:#3e3e3e;border-radius:2vmin}.app-download-modal .modal .items .item .preview[data-v-7b358a25]{width:100%;height:calc(100% - 7.5vmin);border-radius:1vmin;overflow:hidden;flex-shrink:0}.app-download-modal .modal .items .item .preview video[data-v-7b358a25],.app-download-modal .modal .items .item .preview img[data-v-7b358a25]{width:100%;height:100%;object-fit:cover}.app-download-modal .modal .items .item .button[data-v-7b358a25]{border-radius:1vmin;color:#fff;background:#7671fd;height:6vmin;cursor:pointer;transition:.2s ease;display:flex;align-items:center;justify-content:center;font-size:1.6vmin}.app-download-modal .modal .items .item .button[data-v-7b358a25]:hover{background:rgb(108.2958333333,102.9416666667,252.8583333333)} +.v--modal{background:none !important;width:0 !important;height:0 !important}.v--modal-overlay{background:rgba(0,0,0,0) !important}.modal-enter-active,.modal-leave-active{transition:.2s ease}.modal-enter-active .default-modal .modal,.modal-leave-active .default-modal .modal{transition:.2s ease;transform:translateY(0px);opacity:1}.modal-enter,.modal-leave-to{transition:.2s ease}.modal-enter .default-modal .modal,.modal-leave-to .default-modal .modal{transform:translateY(3vmin);opacity:0}.sidebar-enter-active,.sidebar-leave-active{transition:.2s ease;background:var(--modal-overlay-bg)}.sidebar-enter-active .modal,.sidebar-leave-active .modal{transform:translateY(0px);transition:inherit}.sidebar-enter,.sidebar-leave-to{transition:.2s ease;background:rgba(0,0,0,0)}.sidebar-enter .modal,.sidebar-leave-to .modal{transform:translateX(100%);transition:inherit}.sidebar-overlay-enter-active,.sidebar-overlay-leave-active{transition:.2s ease}.sidebar-overlay-enter-active .default-modal,.sidebar-overlay-leave-active .default-modal{transition:.2s ease}.sidebar-overlay-enter,.sidebar-overlay-leave-to{transition:.2s ease}.sidebar-overlay-enter .default-modal,.sidebar-overlay-leave-to .default-modal{transition:.2s ease;background:rgba(0,0,0,0)}.overlay-enter-active,.overlay-leave-active{transition:.2s ease}.overlay-enter-active .default-modal,.overlay-leave-active .default-modal{transition:.2s ease;opacity:1}.overlay-enter,.overlay-leave-to{transition:.2s ease}.overlay-enter .default-modal,.overlay-leave-to .default-modal{transition:.2s ease;opacity:0}.modal-up-enter-active,.modal-up-leave-active{transition:.2s ease}.modal-up-enter-active .default-modal .modal,.modal-up-leave-active .default-modal .modal{transition:.2s ease;transform:translateY(0px);opacity:1}.modal-up-enter,.modal-up-leave-to{transition:.2s ease}.modal-up-enter .default-modal .modal,.modal-up-leave-to .default-modal .modal{transform:translateY(-3vmin);opacity:0}.default-modal{position:fixed;width:100%;height:100%;top:0;left:0;display:flex;align-items:center;justify-content:center;z-index:10000;background:rgba(0,0,0,.5)}.default-modal .modal{height:auto;position:relative;box-sizing:border-box;background:#1e1e1e;border-radius:3vmin;color:var(--primary-text-color);display:flex;flex-direction:column;transition:all .2s ease-in;overflow:hidden;width:auto;padding:0vmin 4vmin;padding-top:4vmin}.default-modal .modal header{position:relative;flex-shrink:0;padding-bottom:4vmin}.default-modal .modal header .title{color:var(--primary-text-color);font-size:2.2vmin;font-weight:400}.default-modal .modal header .close-btn{position:absolute;top:20px;right:24px;padding:10px;display:flex;cursor:pointer}.default-modal .modal header .close-btn svg{width:16px;height:auto}.default-modal .modal header .close-btn svg path{fill:#000}.default-modal .modal main .controls{position:absolute;bottom:0px;left:0px;width:100%;display:flex;align-items:center;justify-content:flex-end;padding:0vmin 4vmin;padding-right:2.2vmin;padding-bottom:2.2vmin;box-sizing:border-box}.default-modal .modal main .controls .controls-btn{text-align:center;cursor:pointer}.default-modal .modal .close-btn{border:1px solid var(--secondary-btn-border-color);cursor:pointer;position:absolute;height:3.6vmin;width:3.6vmin;border-radius:1.2vmin;display:flex;align-items:center;justify-content:center;z-index:1;top:4vmin;right:4.5vmin}.default-modal .modal .close-btn svg{width:60%;height:auto;fill:#fff}.default-modal .modal .controls{display:flex;align-items:center;justify-content:flex-end;gap:2vmin;padding:4vmin 0;padding-top:4.5vmin;height:7vmin}.default-modal .modal .controls .controls{padding:0}.default-modal .modal .controls.space-between{justify-content:space-between}.default-modal .modal .controls .controls-wrapper{display:flex;align-items:center;justify-content:flex-end;gap:inherit}.default-modal .modal .controls .primary-btn,.default-modal .modal .controls .secondary-btn{padding:2.5vmin 6.5vmin;height:100%}.default-modal .modal .controls .controls-btn{height:100%}.default-modal .modal .controls .d-flex{height:100%}.default-modal .modal .controls .remove-btn{width:46px;min-width:unset;justify-self:start}.default-modal .modal .controls .remove-btn svg{width:16px;height:auto}.default-modal .modal .controls .remove{height:100%;flex-shrink:0}.default-modal .modal .controls .remove svg{height:35%;width:auto;fill:#fff}.default-modal .modal .controls .remove.round{aspect-ratio:1;padding:0}.default-modal .modal .modal-input-section{margin-bottom:15px}.default-modal .modal .modal-input-section .title{font-size:14px;font-weight:500}.default-modal .modal .modal-input-section input{margin-top:8px;font-size:13px;font-weight:100;width:100%}.default-modal .modal .modal-input-section:last-child{margin-bottom:0px}.default-modal .modal .textarea-wrapper{background:#242424;border-radius:1.8vmin;padding:2vmin;width:100%;border:1px solid #282828}.default-modal .modal textarea{background:#242424;color:#fff;border:none;outline:none;resize:none;font-size:1.8vmin;width:100%}.default-modal .modal textarea::-webkit-scrollbar{width:.5vmin;height:.5vmin}.default-modal .modal textarea::-webkit-scrollbar-button{width:0px;height:0px}.default-modal .modal textarea::-webkit-scrollbar-thumb{background:#626262;border-radius:50px}.default-modal .modal textarea::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.default-modal .modal textarea::-webkit-scrollbar-track:hover{background:rgba(0,0,0,0)}.default-modal .modal textarea::-webkit-scrollbar-track:active{background:rgba(0,0,0,0)}.default-modal .modal textarea ::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}.modal.modal-aside{display:flex;flex-direction:row;background:#f9faff;overflow:hidden}.modal.modal-aside aside{display:flex;flex-direction:column;width:22vmin;flex-shrink:0;padding:2vmin;box-shadow:.52671vmin 0px 2.48307vmin rgba(11,26,77,.03);background:#fff}.modal.modal-aside aside header{padding:0}.modal.modal-aside aside header .title{font-size:2vmin;font-weight:400;padding-left:1vmin;padding-bottom:3.6vmin;padding-top:2vmin}.modal.modal-aside aside .menu::-webkit-scrollbar{width:0px;height:0px}.modal.modal-aside aside .menu::-webkit-scrollbar-button{width:0px;height:0px}.modal.modal-aside aside .menu::-webkit-scrollbar-thumb{background:var(--scroll-color);border-radius:50px}.modal.modal-aside aside .menu::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.modal.modal-aside aside .menu::-webkit-scrollbar-track:hover{background:rgba(0,0,0,0)}.modal.modal-aside aside .menu::-webkit-scrollbar-track:active{background:rgba(0,0,0,0)}.modal.modal-aside aside .menu ::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}.modal.modal-aside aside .menu{display:flex;flex-direction:column;overflow:auto;flex-grow:1}.modal.modal-aside aside .menu .menu-item{margin-bottom:.6vmin;display:flex;align-items:center;padding:1.2vmin 2vmin;border-radius:1vmin;cursor:pointer;color:var(--primary-text-color)}.modal.modal-aside aside .menu .menu-item .menu-item-icon{margin-right:1.4vmin;height:2vmin;width:auto}.modal.modal-aside aside .menu .menu-item .menu-item-icon path{stroke:var(--icon-color)}.modal.modal-aside aside .menu .menu-item .menu-item-icon.fill{fill:var(--icon-color)}.modal.modal-aside aside .menu .menu-item .menu-item-icon.fill path{stroke:none}.modal.modal-aside aside .menu .menu-item .menu-item-title{font-size:1.6vmin;font-weight:400;line-height:2}.modal.modal-aside aside .menu .menu-item.active{color:var(--brand-color);background:var(--menu-selected-bg-color)}.modal.modal-aside aside .menu .menu-item.active .menu-item-icon path{stroke:var(--icon-color-active)}.modal.modal-aside aside .menu .menu-item.active .menu-item-icon.fill{fill:var(--icon-color-active)}.modal.modal-aside aside .menu .menu-item.active .menu-item-icon.fill path{stroke:none;fill:var(--icon-color-active)}.modal.modal-aside aside footer{margin-top:1vmin;flex-shrink:0}.modal.modal-aside main{display:flex;flex-direction:column;flex-grow:1;border-radius:inherit}.modal.modal-aside main header{height:auto;padding-top:1vmin}.modal.modal-aside main header .controls{padding:0;position:relative;top:unset;left:unset;right:unset;display:flex;align-items:center;gap:1vmin}.modal.modal-aside main header .controls .button{position:relative;top:unset;left:unset;right:unset;border:1px solid var(--secondary-btn-border-color);cursor:pointer;height:3.6vmin;width:3.6vmin;border-radius:1.2vmin}.modal.modal-aside main header .controls .button svg path{fill:#232b50;stroke:#232b50}.bookmark-modal .modal{width:auto;padding:0vmin 4vmin;padding-top:4vmin;position:relative;background:#1e1e1e}.bookmark-modal .modal header{padding-bottom:3vmin;display:flex;align-items:center;justify-content:space-between}.bookmark-modal .modal header .title.error{color:#ed405b}.bookmark-modal .modal header .header-controls{display:flex;align-items:center;gap:2vmin}.bookmark-modal .modal header .header-controls .button{height:5vmin;width:5vmin;padding:0;border-radius:1.2vmin;color:#444}.bookmark-modal .modal header .header-controls .button svg{fill:#444;height:40%;width:auto}.bookmark-modal .modal header .header-controls .button.close svg{height:30%;fill:#4f4f4f}.bookmark-modal .modal header .header-controls .pin-button.active{color:#3865ff}.bookmark-modal .modal header .header-controls .pin-button.disabled{pointer-events:none;opacity:.8}.bookmark-modal .modal a{color:#fff}.bookmark-modal .modal a:hover{text-decoration:underline}.bookmark-modal .modal .section-block:first-child{margin-top:0}.bookmark-modal .modal .form-input{margin-bottom:3.5vmin}.bookmark-modal .modal .preview-wrap{margin-bottom:50px}.bookmark-modal .modal .preview-wrap .preview-loader-wrap .preview-loader-controls{display:flex}.bookmark-modal .modal .preview-wrap .preview-loader-wrap .preview-loader-controls .load-btn{width:70px;display:flex;align-items:center;justify-content:center;margin-right:10px}.bookmark-modal .modal .preview-wrap .preview-image{display:flex;align-items:center;justify-content:center;border-radius:15px;overflow:hidden;background:var(--background-light-color)}.bookmark-modal .modal .preview-wrap .preview-image .icon{display:flex;justify-content:center;background-size:contain;background-repeat:no-repeat;background-position:center;width:100%;height:100%}.bookmark-modal .modal .preview-wrap .preview-image .fav{width:16px;height:auto}.bookmark-modal .modal .preview-select-wrap .section-block_controls{margin-top:2vmin;width:100%;justify-content:flex-start !important}.bookmark-modal .modal .section-block_title{padding-top:0vmin;font-size:1.6vmin;font-weight:400}.bookmark-modal .modal .controls{padding:4vmin 0;padding-top:7vmin}.bookmark-modal .modal .folder-picker{width:calc(100% - 8vmin);height:43vmin;background:inherit;position:absolute;top:12vmin;overflow:auto}.bookmark-modal .modal .folder-picker::-webkit-scrollbar{width:0;height:0}.bookmark-modal .modal .folder-picker::-webkit-scrollbar-button{width:0px;height:0px}.bookmark-modal .modal .folder-picker::-webkit-scrollbar-thumb{background:var(--scroll-color);border-radius:50px}.bookmark-modal .modal .folder-picker::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.bookmark-modal .modal .folder-picker::-webkit-scrollbar-track:hover{background:rgba(0,0,0,0)}.bookmark-modal .modal .folder-picker::-webkit-scrollbar-track:active{background:rgba(0,0,0,0)}.bookmark-modal .modal .folder-picker ::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}.bookmark-modal .modal .folder-picker .folders{display:flex;flex-direction:column;gap:2vmin}.bookmark-modal .modal .folder-picker .folders .folder{display:flex;align-items:center;gap:2.5vmin;padding:2vmin 2vmin 2vmin 2.5vmin;border-radius:2vmin;cursor:pointer;transition:.2s ease;background:#262626;border:.2vmin solid rgba(0,0,0,0)}.bookmark-modal .modal .folder-picker .folders .folder .logo{font-size:3vmin;display:flex}.bookmark-modal .modal .folder-picker .folders .folder .name{flex-grow:1;font-size:2vmin}.bookmark-modal .modal .folder-picker .folders .folder .items-count{background:#262626;border-radius:1vmin;padding:.6vmin 1vmin;min-width:3.4vmin;display:flex;align-items:center;justify-content:center;font-size:1.8vmin;transition:.2s ease}.bookmark-modal .modal .folder-picker .folders .folder.selected{border-color:#3d3d3d;background:#2a2a2a}.bookmark-modal .modal .folder-picker .folders .folder.selected .items-count{background:#303030}.folder-modal .modal{overflow:visible;width:59vmin}.folder-modal .row{display:flex;gap:1.5vmin}.folder-modal .row .form-input{flex-grow:1}.folder-modal .icon-wrap{aspect-ratio:1;height:8vmin;position:relative;transition:.1s ease;border-radius:1.8vmin;font-size:1.8vmin;box-sizing:border-box;font-weight:500;border:.1vmin solid #1b1b1b;color:#7a7a7a;background:#262626;font-size:3.7vmin;flex-shrink:0}.folder-modal .icon-wrap svg{height:30%;width:auto;display:none}.folder-modal .icon-wrap:hover span{display:none}.folder-modal .icon-wrap:hover svg{display:flex}.folder-modal .colors{display:grid;grid-template-columns:repeat(8, 1fr);gap:1.3vmin;margin-top:3.5vmin}.folder-modal .colors .color{width:100%;aspect-ratio:1;border-radius:50%;border:.4vmin solid rgba(0,0,0,0)}.folder-modal .colors .color.active{border-color:#fff}.folder-modal .colors input[type=color]{width:100%;height:100%}.folder-modal .colors .picker{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#3d3d3d;border-radius:50%;cursor:pointer;position:relative}.folder-modal .colors .picker input{position:absolute;opacity:0}.folder-modal .colors .picker svg{width:2vmin;height:auto;fill:#fff;opacity:.5}.folder-modal .colors .locked{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#3d3d3d;border-radius:50%;cursor:pointer}.folder-modal .colors .locked svg{width:2vmin;height:auto}.folder-modal .colors .app-color-picker{width:100%;height:100%}.folder-modal .colors .app-color-picker .wrapper{width:100%;aspect-ratio:1}.folder-modal .colors .app-color-picker .wrapper .color{height:100%;color:#000;width:100%;aspect-ratio:1;border-radius:50%;border:.4vmin solid rgba(0,0,0,0)}.folder-modal .colors .app-color-picker .wrapper .color svg{width:1.5vmin;height:auto;display:none}.folder-modal .colors .app-color-picker.locked{cursor:default;pointer-events:none}.folder-modal .colors .app-color-picker.locked .wrapper .color svg{display:flex}.folder-modal .controls{padding-top:3.5vmin}.folder-modal .controls .confirm{flex-grow:1}.app-root{font-family:Poppins,sans-serif}svg{outline:none} +</style></div></template></div></body></html>
\ No newline at end of file diff --git a/jars/defs.txt b/jars/defs.txt index 26903ec..0759586 100644 --- a/jars/defs.txt +++ b/jars/defs.txt @@ -1,29 +1,25 @@ -# auto-generated: all org.jetbrains.kotlin 2.2.10 jars (priority order: KGP first) -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/abi-tools-api/2.2.10/d3d684d1dfec17b0c9f0fda875da938d5f304328/abi-tools-api-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-statistics/2.2.10/e826d07e18ad23dc3894d40113fd5e79a94f83b3/kotlin-build-statistics-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-tools-api/2.2.10/eac607420801deb9abcf71e250ab1ea11b049c06/kotlin-build-tools-api-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-tools-impl/2.2.10/6bf34d03b713e0536300b0d507bdd701ba53318c/kotlin-build-tools-impl-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/2.2.10/6882d39ef03b18879c1a5d2a83c2212361bed5fe/kotlin-compiler-embeddable-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-runner/2.2.10/aee5165d5829687acee89311747076622a05d664/kotlin-compiler-runner-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-daemon-client/2.2.10/9de9722b2ab63b00fed168c924c41ea3b2f7d9c5/kotlin-daemon-client-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-daemon-embeddable/2.2.10/212fd3c2c6e4e5d0f4db3c4191233e2b622380cc/kotlin-daemon-embeddable-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/2.2.10/5b7032e3454baa99627177ef48a324dbf33d42a3/kotlin-gradle-plugin-2.2.10-gradle813.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-annotations/2.2.10/45152dbad91398d945afff472498c8610cef5ae5/kotlin-gradle-plugin-annotations-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.2.10/8b990c8b8a53b5179f6a7a43718079cabac9d4c9/kotlin-gradle-plugin-api-2.2.10-gradle813.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.2.10/8b990c8b8a53b5179f6a7a43718079cabac9d4c9/kotlin-gradle-plugin-api-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-idea/2.2.10/a07b350797aa4fe6d4bc6e1be2feecb638e94b13/kotlin-gradle-plugin-idea-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-idea-proto/2.2.10/2caef57b02e64afbcbb276e4f1edb5d9807d8fa4/kotlin-gradle-plugin-idea-proto-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-model/2.2.10/530a4cac0ce3ac72ad548f9128cbae8b5bb22d3e/kotlin-gradle-plugin-model-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-klib-commonizer-api/2.2.10/e7a9a8f5ca3d6027fb86f1df5bb2ce2812b1486a/kotlin-klib-commonizer-api-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-native-utils/2.2.10/6c6650142c8ddaf921ffc46f9757b39681c0c02e/kotlin-native-utils-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/2.2.10/98d0ca9819d98cb3aa5c0a25793830b6659feee2/kotlin-reflect-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-common/2.2.10/87769c03c5456d7c827fc950063664907b192c1c/kotlin-scripting-common-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-compiler-embeddable/2.2.10/25d0e9a886551d4a46ae85d4d5d0088829ef9/kotlin-scripting-compiler-embeddable-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-compiler-impl-embeddable/2.2.10/3f1bcab651be1ab86e8d240b797b1a05dd8b0027/kotlin-scripting-compiler-impl-embeddable-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-jvm/2.2.10/beecd90e2b145845581e953ba8420f1b30cac848/kotlin-scripting-jvm-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/2.2.10/712f9bc08f378c13a4a00f0bbb28c76e59183e83/kotlin-script-runtime-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.2.10/30de6faa127a4a012db8e71bf1b9c0a99b1402b2/kotlin-stdlib-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-tooling-core/2.2.10/685151c03e638207a3b5045002411fbef78fdeb/kotlin-tooling-core-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-io/2.2.10/aa4dc86feb1b0d99f14f0510892ddecf6f6139fd/kotlin-util-io-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-klib/2.2.10/82e5679f8609ebd439f96fd708cc8644b5f06f0/kotlin-util-klib-2.2.10.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-klib-metadata/2.2.10/aae4449834d66cddf14f0fb5b8867eb422bb52f0/kotlin-util-klib-metadata-2.2.10.jar +# auto-generated by tools/gen_jar_lists.py - all org.jetbrains.kotlin 2.4.21 jars, sorted by jar name. +# First jar wins for duplicate class names; the sort keeps kotlin-compiler-* ahead of kotlin-gradle-plugin (which bundles its own copies of some compiler classes - the compiler jar must win, it is what the daemon loads). +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/fus-statistics-gradle-plugin/2.4.21/7c681b78d0a55042d8fbcb0cf71f9b6e9f096690/fus-statistics-gradle-plugin-2.4.21-gradle96.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-statistics/2.4.21/b30a5c617e48175fd04a595a5a4043bc5de51a4c/kotlin-build-statistics-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-tools-api/2.4.21/f5fd68c20ba38519b91ab2411b004a1730453d6f/kotlin-build-tools-api-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-tools-compat/2.4.21/cb4697b622ca0fbc5bfd5ac5521d8603e21dc219/kotlin-build-tools-compat-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-tools-cri-impl/2.4.21/f4d2161fc6a0a6f727bc673b8c90ebb0cad4c479/kotlin-build-tools-cri-impl-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-tools-impl/2.4.21/898086a64b68b1e9131900909e0fc056a782f37f/kotlin-build-tools-impl-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/2.4.21/3cd9c37c505fb9879e03ebeaf91d9c9500ab6eca/kotlin-compiler-embeddable-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-runner/2.4.21/74c995efdbc8e7347b42d33af076920daee81064/kotlin-compiler-runner-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-daemon-client/2.4.21/6fc0b01cd07b02b22ec967a50f6aa7677ea9c0c9/kotlin-daemon-client-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-daemon-embeddable/2.4.21/5d9b0394b3ff65cd3dd33c6c31a2956b1d59885a/kotlin-daemon-embeddable-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/2.4.21/d2b2862980453fbeb168a03dddd488d6191924df/kotlin-gradle-plugin-2.4.21-gradle96.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-annotations/2.4.21/5d64348c7dd8f3736555f3cac0556a177d1d3d5d/kotlin-gradle-plugin-annotations-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.4.21/8789c5d15e46b4e76829f7e6eafaed0857874b3b/kotlin-gradle-plugin-api-2.4.21-gradle96.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-idea/2.4.21/905431b905fbd7c516de862a1179d7ab5fae3955/kotlin-gradle-plugin-idea-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-idea-proto/2.4.21/c4c011b9b4faea9fef5ee3621d1077e7cd00133e/kotlin-gradle-plugin-idea-proto-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-klib-commonizer-api/2.4.21/7c86237fb33c50e8528f8647545dab82b6960ebb/kotlin-klib-commonizer-api-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-native-utils/2.4.21/99bf50b458106ba2be3e3ff2fdf8595a29222009/kotlin-native-utils-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/2.4.21/abc7ff9f7e229cb6bdfadad81e93c871e6cdde41/kotlin-script-runtime-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.4.21/c343e135bd1e7dd94b7ed76b4159068d888d09db/kotlin-stdlib-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-tooling-core/2.4.21/a92e365882e147d1054b6245d2aa822cbaa77ad6/kotlin-tooling-core-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-io/2.4.21/da0390f54b55e09143cf7bd70be6ad96c81a07e/kotlin-util-io-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-klib/2.4.21/13ee113384a48115a7c9d62f17c308c3d8646ab0/kotlin-util-klib-2.4.21.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-klib-metadata/2.4.21/f9877e1572694cae3c27125624cd7a5a753140e/kotlin-util-klib-metadata-2.4.21.jar diff --git a/jars/fallback.txt b/jars/fallback.txt index 915693a..a9e3713 100644 --- a/jars/fallback.txt +++ b/jars/fallback.txt @@ -1,7 +1,11 @@ -# fallback: newer variants for definition lookup only -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/2.4.0/18bfb59ea7d01e0ae925f5a5535e61a98624ed3f/kotlin-gradle-plugin-2.4.0-gradle813.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/2.4.10/54e85b6639aa6819abc9985612e470576540e8ec/kotlin-gradle-plugin-2.4.10-gradle813.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.4.0/75cef3ce6f6086fd3943cc614158c889b84ce5d1/kotlin-gradle-plugin-api-2.4.0-gradle813.jar +# auto-generated by tools/gen_jar_lists.py - org.jetbrains.kotlin KGP-plugin-family jars at other cached versions, newest first. Definition lookup only (fallback.txt is scanned after defs.txt). +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-tooling-core/2.4.10/75970f5a2a9cb4d25557965bbec0a7ccd55bfbcf/kotlin-tooling-core-2.4.10.jar /home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.4.10/57abfa0230a1ffc31556110bff4b946b55967ba3/kotlin-gradle-plugin-api-2.4.10-gradle813.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/2.4.10/54e85b6639aa6819abc9985612e470576540e8ec/kotlin-gradle-plugin-2.4.10-gradle813.jar /home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-tooling-core/2.4.0/75970f5a2a9cb4d25557965bbec0a7ccd55bfbcf/kotlin-tooling-core-2.4.0.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-tooling-core/2.4.10/75970f5a2a9cb4d25557965bbec0a7ccd55bfbcf/kotlin-tooling-core-2.4.10.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.4.0/75cef3ce6f6086fd3943cc614158c889b84ce5d1/kotlin-gradle-plugin-api-2.4.0-gradle813.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/2.4.0/18bfb59ea7d01e0ae925f5a5535e61a98624ed3f/kotlin-gradle-plugin-2.4.0-gradle813.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-tooling-core/2.2.10/685151c03e638207a3b5045002411fbef78fdeb/kotlin-tooling-core-2.2.10.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.2.10/8b990c8b8a53b5179f6a7a43718079cabac9d4c9/kotlin-gradle-plugin-api-2.2.10.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/2.2.10/8b990c8b8a53b5179f6a7a43718079cabac9d4c9/kotlin-gradle-plugin-api-2.2.10-gradle813.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/2.2.10/5b7032e3454baa99627177ef48a324dbf33d42a3/kotlin-gradle-plugin-2.2.10-gradle813.jar diff --git a/jars/scan.txt b/jars/scan.txt index ed6fc9a..8cb7bb9 100644 --- a/jars/scan.txt +++ b/jars/scan.txt @@ -1,7 +1,7 @@ -# AGP 9.4.1 jars on the buildscript classpath (the classes "AGP uses") +# auto-generated by tools/gen_jar_lists.py - AGP 9.4.1 core jars on the buildscript classpath (the classes AGP uses; seed source for full-closure mode). +/home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder/9.4.1/af1135b3a2fd9c7606e2f0e301348147953e49ef/builder-9.4.1.jar +/home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-model/9.4.1/9dd0f1cd71305a2ea484adfc223535ab88aeb72e/builder-model-9.4.1.jar /home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle/9.4.1/41c81edd76f786e79cb4807c3435aba3857eca18/gradle-9.4.1.jar /home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-api/9.4.1/ce1f7c278ac4af318446d43fcec073752a84a00a/gradle-api-9.4.1.jar /home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-common-api/9.4.1/188fc42710d4072ae7f02415b497fe311041b555/gradle-common-api-9.4.1.jar /home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-settings-api/9.4.1/fcfedf9a56578511894c869f71eaecafbf5e49e6/gradle-settings-api-9.4.1.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder/9.4.1/af1135b3a2fd9c7606e2f0e301348147953e49ef/builder-9.4.1.jar -/home/the_jk/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-model/9.4.1/9dd0f1cd71305a2ea484adfc223535ab88aeb72e/builder-model-9.4.1.jar diff --git a/test_project/app/build.gradle.kts b/test_project/app/build.gradle.kts index 7a9492d..8938318 100644 --- a/test_project/app/build.gradle.kts +++ b/test_project/app/build.gradle.kts @@ -42,29 +42,44 @@ dependencies { } // ---- kotlin-proxy: force our compiler stub to the FRONT of the daemon classpath ---- -// KGP seeds the daemon classpath via `kotlinCompilerClasspath` using -// defaultDependencies (kotlin-compiler-embeddable + transitives). Adding ANY -// regular dependency suppresses those defaults - so we re-declare the real -// compiler modules as regular deps WITH our stub jar FIRST. The daemon then -// loads org.jetbrains.kotlin.cli.jvm.K2JVMCompiler from OUR stub, replacing -// the real compiler with our alternative. +// KGP seeds the daemon classpath with hidden defaultDependencies; adding ANY +// regular dependency suppresses those defaults - so we re-declare the same +// modules as regular deps WITH our stub jar FIRST. The daemon then loads +// org.jetbrains.kotlin.cli.jvm.K2JVMCompiler from OUR stub, replacing the +// real compiler with our alternative. +// +// KGP >= 2.3.20 runs JVM compilation through the Build Tools API by default: +// the daemon classpath is the resolved `kotlinBuildToolsApiClasspath` +// (defaults: kotlin-build-tools-compat + kotlin-build-tools-impl, whose +// closure IS the compiler). The older `kotlinCompilerClasspath` still +// feeds the legacy path (kotlin.compiler.runViaBuildToolsApi=false, +// deprecated, removed in KGP 2.5.0). We shadow both. val proxyStub = file("/home/the_jk/source/kotlin_proxy/dist/kotlin-proxy-compiler-stubs.jar") -val realCompilerJars = listOf( - "org.jetbrains.kotlin:kotlin-compiler-embeddable:2.2.10", - "org.jetbrains.kotlin:kotlin-stdlib:2.2.10", - "org.jetbrains.kotlin:kotlin-script-runtime:2.2.10", +val kotlinVersion = libs.versions.kotlin.get() +// legacy path: the kotlinCompilerClasspath default (kotlin-compiler-embeddable +// + its transitive deps). reflect stays at 1.6.10 - the POM pin. +val legacyCompilerJars = listOf( + "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion", + "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion", + "org.jetbrains.kotlin:kotlin-script-runtime:$kotlinVersion", "org.jetbrains.kotlin:kotlin-reflect:1.6.10", - "org.jetbrains.kotlin:kotlin-daemon-embeddable:2.2.10", + "org.jetbrains.kotlin:kotlin-daemon-embeddable:$kotlinVersion", "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.0", "org.jetbrains:annotations:13.0", ) afterEvaluate { try { + val bta = configurations.getByName("kotlinBuildToolsApiClasspath") + bta.dependencies.add(dependencies.create(files(proxyStub))) + bta.dependencies.add(dependencies.create( + "org.jetbrains.kotlin:kotlin-build-tools-compat:$kotlinVersion")) + bta.dependencies.add(dependencies.create( + "org.jetbrains.kotlin:kotlin-build-tools-impl:$kotlinVersion")) val cfg = configurations.getByName("kotlinCompilerClasspath") cfg.dependencies.add(dependencies.create(files(proxyStub))) - realCompilerJars.forEach { cfg.dependencies.add(dependencies.create(it)) } + legacyCompilerJars.forEach { cfg.dependencies.add(dependencies.create(it)) } logger.lifecycle("kotlin-proxy: AGP stub present=" + proxyStub.exists() + - " ORDER=" + cfg.files.joinToString(",") { it.name }) + " BTA ORDER=" + bta.files.joinToString(",") { it.name }) } catch (t: Throwable) { logger.lifecycle("kotlin-proxy: AGP injection FAILED: " + t) } diff --git a/test_project/build.gradle.kts b/test_project/build.gradle.kts index da8ee01..196c760 100644 --- a/test_project/build.gradle.kts +++ b/test_project/build.gradle.kts @@ -13,8 +13,12 @@ buildscript { dependencies { // 1) kotlin-proxy compiler stubs — must come before AGP/KGP classpath(files("../dist/kotlin-proxy-compiler-stubs.jar")) - // 2) AGP (pulls kotlin-gradle-plugin 2.2.10 transitively) - classpath("com.android.tools.build:gradle:9.4.1") + // 2) KGP — AGP 9.x's built-in Kotlin pins its own KGP version; an + // explicit buildscript classpath dep upgrades it (AGP 9.0 release + // notes: "Runtime dependency on Kotlin Gradle plugin") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}") + // 3) AGP + classpath("com.android.tools.build:gradle:${libs.versions.agp.get()}") } } diff --git a/test_project/gradle/libs.versions.toml b/test_project/gradle/libs.versions.toml index 0d165ea..fa1d089 100644 --- a/test_project/gradle/libs.versions.toml +++ b/test_project/gradle/libs.versions.toml @@ -1,5 +1,6 @@ [versions] agp = "9.4.1" +kotlin = "2.4.21" coreKtx = "1.19.1" junit = "4.13.2" junitVersion = "1.3.0" diff --git a/tools/gen_class.py b/tools/gen_class.py index 8e1e0f4..ba0a92f 100755 --- a/tools/gen_class.py +++ b/tools/gen_class.py @@ -495,11 +495,52 @@ def ctor_body(cp, super_name, member, dotname, desc, call_ref, is_enum): return code_attr(cp, max_stack, count_locals(desc, False), b) -def clinit_body(cp, dotname, loaded_ref): +def clinit_body(cp, dotname, loaded_ref, internal, companion=None): b = ldc(cp.string(dotname)) b += bytes([0xb8]) + struct.pack(">H", loaded_ref) + max_stack = 2 + if companion: + # new; dup; aconst_null -> 3 on the stack before invokespecial pops + max_stack = 3 + # mirror the real <clinit>'s companion-object init: + # new Companion; dup; aconst_null; invokespecial Companion.<init>; + # putstatic Companion + # (leaving the static null makes real code touching + # <This>.Companion NPE before any stub method is ever called) + fname, fdesc, cname, ctor = companion + b += bytes([0xbb]) + struct.pack(">H", cp.cls(cname)) # new + b += b"\x59" # dup + b += b"\x01" # aconst_null + b += bytes([0xb7]) + struct.pack( + ">H", cp.methodref(cname, "<init>", ctor)) # invokespecial + b += bytes([0xb3]) + struct.pack( + ">H", cp.fieldref(internal, fname, fdesc)) # putstatic b += b"\xb1" # return - return code_attr(cp, 2, 0, b) + return code_attr(cp, max_stack, 0, b) + + +def companion_init(name, info, defs): + """If class `name` (internal) declares a static `<name>$Companion` field, + describe how to instantiate it in <clinit>. Returns + (field_name, field_desc, companion_internal, ctor_desc) or None. + Kotlin companion objects are built by the enclosing class's real + <clinit> through the synthetic DefaultConstructorMarker ctor.""" + marker_ctor = "(Lkotlin/jvm/internal/DefaultConstructorMarker;)V" + for f in info.get("fields", []): + if not (f["access"] & A_STATIC): + continue + t = f["desc"][1:-1] + if t != name + "$Companion" or len(f["desc"]) <= 2: + continue + cname = t + ce = defs.get(cname) + ctors = {mm["desc"] for mm in ce[1].get("methods", []) + if mm["name"] == "<init>"} if ce else set() + if marker_ctor in ctors: + return (f["name"], f["desc"], cname, marker_ctor) + if "()V" in ctors: + return (f["name"], f["desc"], cname, "()V") + return None def bridge_body(cp, dotname, name, target_desc, is_static): @@ -538,7 +579,7 @@ def field_bytes(cp, name, desc, access): # ---------------------------------------------------------------------- # class emission # ---------------------------------------------------------------------- -def emit_class(cp, name, info, is_iface, dotname): +def emit_class(cp, name, info, is_iface, dotname, companion=None): this_idx = cp.cls(name) super_name = (info.get("super") or OBJ) if not is_iface else OBJ super_idx = cp.cls(super_name) @@ -604,10 +645,12 @@ def emit_class(cp, name, info, is_iface, dotname): call_ref, is_enum) methods.append(method_bytes(cp, "<init>", "()V", A_PUBLIC, body)) - # synthesized static initializer -> KotlinProxyLog.loaded(name) + # synthesized static initializer -> KotlinProxyLog.loaded(name), + # plus the companion-object init when the class has one methods.append(method_bytes(cp, "<clinit>", "()V", A_STATIC | A_PRIVATE, - clinit_body(cp, dotname, loaded_ref))) + clinit_body(cp, dotname, loaded_ref, + name, companion))) out = bytearray() out += struct.pack(">IHH", MAGIC, MINOR, MAJOR) @@ -727,6 +770,9 @@ def main(): pass for s in seeds: s0.add(s) + bad = sorted(s for s in seeds if s not in defs) + if bad: + sys.exit("error: seed(s) not found in def jars:\n " + "\n ".join(bad)) # transitive closure (skipped with --no-closure: emit exactly the seed set) closure = set(s0) @@ -782,7 +828,8 @@ def main(): else: _, info = e is_iface = bool(info["access"] & A_INTERFACE) - data = emit_class(cp, name, info, is_iface, dot) + companion = None if is_iface else companion_init(name, info, defs) + data = emit_class(cp, name, info, is_iface, dot, companion) n_full += 1 if is_iface: n_iface += 1 diff --git a/tools/gen_jar_lists.py b/tools/gen_jar_lists.py new file mode 100644 index 0000000..06ab026 --- /dev/null +++ b/tools/gen_jar_lists.py @@ -0,0 +1,235 @@ +#!/usr/bin/env python3 +""" +Regenerate the jar list files in jars/ (the input to gen_class.py). + +These files used to be written by hand; this script scans the local Gradle +module cache and rewrites them deterministically, so a Kotlin/AGP upgrade is: + + 1. bump the version in test_project (gradle/libs.versions.toml) and + Makefile (KOTLIN_VERSION / AGP_VERSION), + 2. run the test_project once so Gradle populates the cache with the new + jars (even a red build resolves everything), + 3. run this script (or just `make` - it regenerates the lists when the + pinned versions drift from jars/.stamp). + +Files written (one jar path per line, '#' comments allowed downstream): + + defs.txt every org.jetbrains.kotlin jar at the pinned Kotlin version, + sorted by jar name. gen_class.py takes the FIRST jar that + contains a class (first-wins), and the KGP jar bundles its + own copies of some compiler classes (e.g. K2JVMCompiler) + that DIFFER from the ones in kotlin-compiler-embeddable; + alphabetical order keeps kotlin-compiler-* ahead of + kotlin-gradle-plugin, which is the ordering the daemon + actually sees. + scan.txt the AGP core jars at the pinned AGP version (the classes + "AGP uses" - seed source for the full-closure mode). + fallback.txt KGP-plugin-family jars at OTHER cached versions, newest + first - definition lookup only, for classes missing from + the pinned set. + +Also writes <out-dir>/.stamp as "<kotlin-version> <agp-version>" so the +Makefile can detect version drift without parsing the lists. +""" + +import argparse +import os +import re +import sys + +# AGP core jars on the buildscript classpath (seed sources for +# gen_class.py's full-closure mode). A fixed allowlist rather than "every +# com.android.tools.build jar" so aaptcompiler/lint/... don't bloat S0. +SCAN_ARTIFACTS = [ + "gradle", + "gradle-api", + "gradle-common-api", + "gradle-settings-api", + "builder", + "builder-model", +] + +# KGP plugin family used for fallback definition lookup (other versions of +# the plugin that the build actually runs with). +FALLBACK_ARTIFACTS = [ + "kotlin-gradle-plugin", + "kotlin-gradle-plugin-api", + "kotlin-tooling-core", +] + +KOTLIN_GROUP = "org.jetbrains.kotlin" +AGP_GROUP = "com.android.tools.build" + + +def ver_key(v): + """Sortable key for a version string: numeric parts first, then text + (so 2.4.10 > 2.4.9 and 2.4.21-rc1 sorts near 2.4.21).""" + m = re.match(r"(\d+(?:\.\d+)*)", v) + nums = [int(p) for p in m.group(1).split(".")] if m else [] + return (nums, v) + + +def find_jars(cache, group, artifact, version): + """All .jar files for group:artifact:version in the cache layout + <cache>/<group>/<artifact>/<version>/<sha1>/<name>.jar.""" + base = os.path.join(cache, group, artifact, version) + if not os.path.isdir(base): + return [] + out = [] + for sha in os.listdir(base): + d = os.path.join(base, sha) + if not os.path.isdir(d): + continue + for f in os.listdir(d): + # binary jars only - skip -sources.jar / -javadoc.jar + if (f.endswith(".jar") and os.path.isfile(os.path.join(d, f)) + and "-sources" not in f and "-javadoc" not in f): + out.append(os.path.join(d, f)) + return out + + +def all_versions(cache, group, artifact): + base = os.path.join(cache, group, artifact) + if not os.path.isdir(base): + return [] + return sorted( + (v for v in os.listdir(base) + if os.path.isdir(os.path.join(base, v)) and v[0].isdigit()), + key=ver_key, + ) + + +def write_if_changed(path, lines): + content = "\n".join(lines) + "\n" + old = None + if os.path.exists(path): + with open(path) as fh: + old = fh.read() + if old == content: + print(f"unchanged {os.path.basename(path)} ({len(lines)} lines)") + return False + with open(path, "w") as fh: + fh.write(content) + print(f"wrote {os.path.basename(path)} ({len(lines)} lines)") + return True + + +def main(): + ap = argparse.ArgumentParser( + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + ap.add_argument("--kotlin-version", required=True, + help="pinned Kotlin/KGP version, e.g. 2.4.21") + ap.add_argument("--agp-version", required=True, + help="pinned AGP version, e.g. 9.4.1") + ap.add_argument("--gradle-cache", + default=os.path.expanduser( + "~/.gradle/caches/modules-2/files-2.1"), + help="Gradle module cache root " + "(default: %(default)s)") + ap.add_argument("--out-dir", default="jars", + help="directory for defs.txt/scan.txt/fallback.txt " + "(default: %(default)s)") + args = ap.parse_args() + cache = args.gradle_cache + if not os.path.isdir(cache): + sys.exit(f"error: Gradle cache not found: {cache}") + + # ---- defs.txt: all org.jetbrains.kotlin jars at the pinned version ---- + defs = [] + missing = [] + for artifact in sorted(os.listdir(os.path.join(cache, KOTLIN_GROUP)) + if os.path.isdir(os.path.join(cache, KOTLIN_GROUP)) + else []): + jars = find_jars(cache, KOTLIN_GROUP, artifact, args.kotlin_version) + if not jars: + continue + defs.extend(jars) + # Sanity-check the core artifacts (we can't know the full expected + # artifact set; these three must be there or the lists are useless). + for core in ("kotlin-compiler-embeddable", "kotlin-gradle-plugin", + "kotlin-stdlib"): + if not find_jars(cache, KOTLIN_GROUP, core, args.kotlin_version): + missing.append(f"{KOTLIN_GROUP}:{core}:{args.kotlin_version}") + defs.sort(key=os.path.basename) + if missing: + sys.exit( + "error: cache is missing " + + ", ".join(missing) + + f"\n run the test_project once with Kotlin {args.kotlin_version} " + "so Gradle downloads the jars, then re-run this script.") + + defs_lines = [ + f"# auto-generated by tools/gen_jar_lists.py - all {KOTLIN_GROUP} " + f"{args.kotlin_version} jars, sorted by jar name.", + "# First jar wins for duplicate class names; the sort keeps " + "kotlin-compiler-* ahead of kotlin-gradle-plugin (which bundles " + "its own copies of some compiler classes - the compiler jar must " + "win, it is what the daemon loads).", + *defs, + ] + + # ---- scan.txt: AGP core jars at the pinned AGP version ---- + scan = [] + missing_scan = [] + for artifact in SCAN_ARTIFACTS: + jars = find_jars(cache, AGP_GROUP, artifact, args.agp_version) + if jars: + scan.extend(jars) + else: + missing_scan.append(f"{AGP_GROUP}:{artifact}:{args.agp_version}") + scan.sort(key=os.path.basename) + if missing_scan: + sys.exit( + "error: cache is missing " + + ", ".join(missing_scan) + + f"\n run the test_project once with AGP {args.agp_version} " + "so Gradle downloads the jars, then re-run this script.") + + scan_lines = [ + f"# auto-generated by tools/gen_jar_lists.py - AGP " + f"{args.agp_version} core jars on the buildscript classpath " + "(the classes AGP uses; seed source for full-closure mode).", + *scan, + ] + + # ---- fallback.txt: KGP family at other versions, newest first ---- + fb = [] + for artifact in FALLBACK_ARTIFACTS: + for v in all_versions(cache, KOTLIN_GROUP, artifact): + if v == args.kotlin_version: + continue + fb.extend((v, j) for j in + find_jars(cache, KOTLIN_GROUP, artifact, v)) + fb.sort(key=lambda t: (t[0], os.path.basename(t[1])), reverse=True) + fb_lines = [ + f"# auto-generated by tools/gen_jar_lists.py - {KOTLIN_GROUP} " + f"KGP-plugin-family jars at other cached versions, newest first. " + f"Definition lookup only (fallback.txt is scanned after defs.txt).", + *(j for _, j in fb), + ] + if not fb: + print("note: no other KGP-plugin versions in cache; " + "fallback.txt will be empty") + + # ---- write ---- + os.makedirs(args.out_dir, exist_ok=True) + write_if_changed(os.path.join(args.out_dir, "defs.txt"), defs_lines) + write_if_changed(os.path.join(args.out_dir, "scan.txt"), scan_lines) + write_if_changed(os.path.join(args.out_dir, "fallback.txt"), fb_lines) + + stamp = os.path.join(args.out_dir, ".stamp") + stamp_content = f"{args.kotlin_version} {args.agp_version}\n" + old = None + if os.path.exists(stamp): + with open(stamp) as fh: + old = fh.read() + if old != stamp_content: + with open(stamp, "w") as fh: + fh.write(stamp_content) + print(f"wrote .stamp ({stamp_content.strip()})") + else: + print("unchanged .stamp") + + +if __name__ == "__main__": + main() |
