Skip to content

Commit a861ebb

Browse files
fhinkelCommit Bot
authored andcommitted
[runtime] Delete extra variables
No need to reassign those JSTypedArrays. Bug: v8:6704 Change-Id: Ide1f8bb119285b57ea85b8e710358c917244f801 Reviewed-on: https://chromium-review.googlesource.com/641474 Commit-Queue: Benedikt Meurer <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]> Cr-Commit-Position: refs/heads/master@{#47693}
1 parent a1aa3b2 commit a861ebb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/runtime/runtime-typedarray.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,10 @@ RUNTIME_FUNCTION(Runtime_TypedArraySetFastCases) {
240240
return Smi::FromInt(TYPED_ARRAY_SET_NON_TYPED_ARRAY);
241241
}
242242

243-
CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, target_obj, 0);
244-
CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, source_obj, 1);
243+
CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, target, 0);
244+
CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, source, 1);
245245
CONVERT_NUMBER_ARG_HANDLE_CHECKED(offset_obj, 2);
246246

247-
Handle<JSTypedArray> target(JSTypedArray::cast(*target_obj));
248-
Handle<JSTypedArray> source(JSTypedArray::cast(*source_obj));
249247
size_t offset = 0;
250248
CHECK(TryNumberToSize(*offset_obj, &offset));
251249
size_t target_length = target->length_value();

0 commit comments

Comments
 (0)