Files
sdk/benchmarks/BigIntParsePrint/dart/native_version.dart
Mayank Patke 0947f85299 [benchmarks] Migrate off package:js
This also allows the BigIntParsePrint benchmark to actually run on
dart2wasm.

Bug: #61550
Change-Id: I6a6a6964d95195e8e06fcecbcad776045dddc733
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/453682
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2025-10-15 15:38:35 -07:00

24 lines
566 B
Dart

// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class NativeBigIntMethods<T> {
bool get enabled;
T parse(String string);
String toStringMethod(T value);
T fromInt(int i);
T get one;
T get eight;
int bitLength(T value);
bool isEven(T value);
T add(T left, T right);
T shiftLeft(T value, T count);
T shiftRight(T value, T count);
T subtract(T left, T right);
}