Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ function _getArtMethodSpec (vm) {
const entrypointFieldSize = (apiLevel <= 21) ? 8 : pointerSize;

const expectedAccessFlags = kAccPublic | kAccStatic | kAccFinal | kAccNative;
const relevantAccessFlagsMask = ~(kAccFastInterpreterToInterpreterInvoke | kAccPublicApi | kAccNterpInvokeFastPathFlag) >>> 0;
const relevantAccessFlagsMask = ~(kAccFastInterpreterToInterpreterInvoke | kAccPublicApi | kAccNterpInvokeFastPathFlag | kAccNterpEntryPointFastPathFlag) >>> 0;

let jniCodeOffset = null;
let accessFlagsOffset = null;
Expand Down Expand Up @@ -4866,15 +4866,14 @@ function recompileExceptionClearForArm64 (buffer, pc, exceptionClearImpl, nextFu

const writer = new Arm64Writer(buffer, { pc });

writer.putBLabel('performTransition');

const invokeCallback = pc.add(writer.offset);
writer.putPushAllXRegisters();
writer.putCallAddressWithArguments(callback, ['x0']);
writer.putPopAllXRegisters();
writer.putRet();
writer.flush();

writer.putLabel('performTransition');
const performEntry = pc.add(writer.offset);

let foundCore = false;
let threadReg = null;
Expand Down Expand Up @@ -5004,7 +5003,7 @@ function recompileExceptionClearForArm64 (buffer, pc, exceptionClearImpl, nextFu
throwThreadStateTransitionParseError();
}

return new NativeFunction(pc, 'void', ['pointer'], nativeFunctionOptions);
return new NativeFunction(performEntry, 'void', ['pointer'], nativeFunctionOptions);
}

function throwThreadStateTransitionParseError () {
Expand Down