Commit ee9c34c5 authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Replace custom type with constexpr String in TypedArray.p.sort

R=jgruber@chromium.org

Change-Id: Ibb35c1ae090cd8e79e48c977735af1188414f531
Reviewed-on: https://chromium-review.googlesource.com/1105054Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#53821}
parent 52e2b5aa
......@@ -4,10 +4,8 @@
module typed_array {
extern runtime TypedArraySortFast(Context, Object): JSTypedArray;
type MethodName;
const kTypedArrayProtoSort: MethodName = '\"%TypedArray%.prototype.sort\"';
extern macro ValidateTypedArray(Context, Object, MethodName): JSTypedArray;
extern macro ValidateTypedArray(
Context, Object, constexpr String): JSTypedArray;
extern macro LoadFixedTypedArrayElementAsTagged(
RawPtr, Smi, constexpr ElementsKind, constexpr ParameterMode): Object;
......@@ -271,7 +269,7 @@ module typed_array {
// 3. Let buffer be ? ValidateTypedArray(obj).
// ValidateTypedArray currently returns the array, not the ViewBuffer.
let array: JSTypedArray =
ValidateTypedArray(context, obj, kTypedArrayProtoSort);
ValidateTypedArray(context, obj, '%TypedArray%.prototype.sort');
// Default sorting is done in C++ using std::sort
if (comparefn_obj == Undefined) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment