| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "platform/math.h" | 7 #include "platform/math.h" |
| 8 | 8 |
| 9 #include "vm/code_generator.h" // DartModulo. | |
| 10 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 11 #include "vm/double_conversion.h" | 10 #include "vm/double_conversion.h" |
| 12 #include "vm/double_internals.h" | 11 #include "vm/double_internals.h" |
| 13 #include "vm/exceptions.h" | 12 #include "vm/exceptions.h" |
| 14 #include "vm/native_entry.h" | 13 #include "vm/native_entry.h" |
| 15 #include "vm/object.h" | 14 #include "vm/object.h" |
| 15 #include "vm/runtime_entry.h" // DartModulo. |
| 16 #include "vm/symbols.h" | 16 #include "vm/symbols.h" |
| 17 | 17 |
| 18 namespace dart { | 18 namespace dart { |
| 19 | 19 |
| 20 DECLARE_FLAG(bool, trace_intrinsified_natives); | 20 DECLARE_FLAG(bool, trace_intrinsified_natives); |
| 21 | 21 |
| 22 DEFINE_NATIVE_ENTRY(Double_doubleFromInteger, 2) { | 22 DEFINE_NATIVE_ENTRY(Double_doubleFromInteger, 2) { |
| 23 ASSERT(TypeArguments::CheckedHandle(arguments->NativeArgAt(0)).IsNull()); | 23 ASSERT(TypeArguments::CheckedHandle(arguments->NativeArgAt(0)).IsNull()); |
| 24 const Integer& value = Integer::CheckedHandle(arguments->NativeArgAt(1)); | 24 const Integer& value = Integer::CheckedHandle(arguments->NativeArgAt(1)); |
| 25 if (FLAG_trace_intrinsified_natives) { | 25 if (FLAG_trace_intrinsified_natives) { |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 DEFINE_NATIVE_ENTRY(Double_flipSignBit, 1) { | 309 DEFINE_NATIVE_ENTRY(Double_flipSignBit, 1) { |
| 310 const Double& arg = Double::CheckedHandle(arguments->NativeArgAt(0)); | 310 const Double& arg = Double::CheckedHandle(arguments->NativeArgAt(0)); |
| 311 const double in_val = arg.value(); | 311 const double in_val = arg.value(); |
| 312 const int64_t bits = bit_cast<int64_t, double>(in_val) ^ kSignBitDouble; | 312 const int64_t bits = bit_cast<int64_t, double>(in_val) ^ kSignBitDouble; |
| 313 return Double::New(bit_cast<double, int64_t>(bits)); | 313 return Double::New(bit_cast<double, int64_t>(bits)); |
| 314 } | 314 } |
| 315 | 315 |
| 316 // Add here only functions using/referring to old-style casts. | 316 // Add here only functions using/referring to old-style casts. |
| 317 | 317 |
| 318 } // namespace dart | 318 } // namespace dart |
| OLD | NEW |