| Index: runtime/lib/typed_data.cc
|
| ===================================================================
|
| --- runtime/lib/typed_data.cc (revision 23089)
|
| +++ runtime/lib/typed_data.cc (working copy)
|
| @@ -110,6 +110,7 @@
|
| return Bool::True().raw();
|
| }
|
|
|
| +
|
| DEFINE_NATIVE_ENTRY(TypedData_setRange, 5) {
|
| GET_NON_NULL_NATIVE_ARGUMENT(Instance, dst, arguments->NativeArgAt(0));
|
| GET_NON_NULL_NATIVE_ARGUMENT(Smi, dst_start, arguments->NativeArgAt(1));
|
| @@ -255,13 +256,7 @@
|
| args.SetAt(0, error); \
|
| Exceptions::ThrowByType(Exceptions::kArgument, args); \
|
| } \
|
| - Integer& result = Integer::Handle(); \
|
| - if (value > static_cast<uint64_t>(Mint::kMaxValue)) { \
|
| - result = BigintOperations::NewFromUint64(value); \
|
| - } else { \
|
| - result = Integer::New(value); \
|
| - } \
|
| - return result.raw(); \
|
| + return Integer::NewFromUint64(value); \
|
| } \
|
|
|
|
|
| @@ -405,10 +400,7 @@
|
| } else {
|
| value = Utils::HostToBigEndian64(value);
|
| }
|
| - if (value > static_cast<uint64_t>(Mint::kMaxValue)) {
|
| - return BigintOperations::NewFromUint64(value);
|
| - }
|
| - return Integer::New(value);
|
| + return Integer::NewFromUint64(value);
|
| }
|
|
|
|
|
|
|