Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: runtime/lib/double.cc

Issue 2827873002: Move runtime functions to the more logical runtime_entry.cc. (Closed)
Patch Set: sort Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698