Skip to content

Commit f4623ee

Browse files
committed
use profiles in TypedArrayPrototypeBuiltins
1 parent 9a83cb1 commit f4623ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/builtins/TypedArrayPrototypeBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ private void setFastArray(DynamicObject thisObj, DynamicObject array, int offset
384384
assert JSArray.isJSFastArray(array);
385385
boolean sourceCondition = JSArray.isJSArray(array);
386386
boolean targetCondition = JSArrayBufferView.isJSArrayBufferView(thisObj);
387-
ScriptArray sourceArray = arrayGetArrayType(array, sourceCondition);
388-
TypedArray targetArray = JSArrayBufferView.typedArrayGetArrayType(thisObj, targetCondition);
387+
ScriptArray sourceArray = sourceArrayProf.profile(arrayGetArrayType(array, sourceCondition));
388+
TypedArray targetArray = targetArrayProf.profile(JSArrayBufferView.typedArrayGetArrayType(thisObj, targetCondition));
389389
long sourceLen = sourceArray.length(array, sourceCondition);
390390
rangeCheck(0, sourceLen, offset, targetArray.length(thisObj, targetCondition));
391391

0 commit comments

Comments
 (0)