| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
| 10 #include "vm/exceptions.h" | 10 #include "vm/exceptions.h" |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 value = bit_cast<double>( | 434 value = bit_cast<double>( |
| 435 Utils::HostToLittleEndian64(bit_cast<uint64_t>(value))); | 435 Utils::HostToLittleEndian64(bit_cast<uint64_t>(value))); |
| 436 } else { | 436 } else { |
| 437 value = bit_cast<double>( | 437 value = bit_cast<double>( |
| 438 Utils::HostToBigEndian64(bit_cast<uint64_t>(value))); | 438 Utils::HostToBigEndian64(bit_cast<uint64_t>(value))); |
| 439 } | 439 } |
| 440 return Double::New(value); | 440 return Double::New(value); |
| 441 } | 441 } |
| 442 | 442 |
| 443 } // namespace dart | 443 } // namespace dart |
| OLD | NEW |