Skip to content

Types is missing deoptimizeMethod #386

@mal-tee

Description

@mal-tee

Although the function Java.deoptimizeMethod is exported for JS bindings,

export function deoptimizeMethod (vm, env, method) {
requestDeoptimization(vm, env, kSelectiveDeoptimization, method);
}

the types def. do not include it:

function registerClass(spec: ClassSpec): Wrapper;
/**
* Forces the VM to execute everything with its interpreter. Necessary to
* prevent optimizations from bypassing method hooks in some cases, and
* allows ART's Instrumentation APIs to be used for tracing the runtime.
*/
function deoptimizeEverything(): void;
/**
* Similar to deoptimizeEverything but only deoptimizes boot image code.
* Use with `dalvik.vm.dex2oat-flags --inline-max-code-units=0` for best
* results.
*/
function deoptimizeBootImage(): void;
const vm: VM;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions