Skip to content

Commit

Permalink
Replace bind variable this with $node.
Browse files Browse the repository at this point in the history
  • Loading branch information
woess committed Dec 5, 2024
1 parent f9ddbba commit 3f04314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Object doIntIndex(JSDynamicObject target, int index, Object receiver, Object def
@Specialization(guards = {"!isJSProxy(target)", "index >= 0"}, replaces = {"doIntIndex"}, limit = "1")
Object doArrayIndex(JSDynamicObject target, @SuppressWarnings("unused") Object key, Object receiver, Object defaultValue,
@Cached @SuppressWarnings("unused") ToArrayIndexNoToPropertyKeyNode toArrayIndexNode,
@Bind("toArrayIndexNode.executeLong(this, key)") long index,
@Bind("toArrayIndexNode.executeLong($node, key)") long index,
@Cached @Shared JSClassProfile jsclassProfile) {
assert JSRuntime.isArrayIndex(index) : index;
return JSObject.getOrDefault(target, index, receiver, defaultValue, jsclassProfile, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void doIntIndex(JSDynamicObject target, int index, Object value, Object receiver
@Specialization(guards = {"!isJSProxy(target)", "index >= 0"}, replaces = {"doIntIndex"}, limit = "1")
void doArrayIndex(JSDynamicObject target, @SuppressWarnings("unused") Object key, Object value, Object receiver,
@Cached @SuppressWarnings("unused") ToArrayIndexNoToPropertyKeyNode toArrayIndexNode,
@Bind("toArrayIndexNode.executeLong(this, key)") long index,
@Bind("toArrayIndexNode.executeLong($node, key)") long index,
@Cached @Shared JSClassProfile jsclassProfile) {
assert JSRuntime.isArrayIndex(index) : index;
doArrayIndexLong(target, index, value, receiver, jsclassProfile.getJSClass(target));
Expand Down

0 comments on commit 3f04314

Please sign in to comment.