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

Side by Side Diff: runtime/vm/bootstrap_natives.h

Issue 199263005: - Avoid exposing the 64-bit state of the PRNG to Dart code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« runtime/lib/math.cc ('K') | « runtime/lib/math_patch.dart ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef VM_BOOTSTRAP_NATIVES_H_
6 #define VM_BOOTSTRAP_NATIVES_H_ 6 #define VM_BOOTSTRAP_NATIVES_H_
7 7
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 9
10 // bootstrap dart natives used in the core dart library. 10 // bootstrap dart natives used in the core dart library.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 V(Math_cos, 1) \ 113 V(Math_cos, 1) \
114 V(Math_tan, 1) \ 114 V(Math_tan, 1) \
115 V(Math_asin, 1) \ 115 V(Math_asin, 1) \
116 V(Math_acos, 1) \ 116 V(Math_acos, 1) \
117 V(Math_atan, 1) \ 117 V(Math_atan, 1) \
118 V(Math_atan2, 2) \ 118 V(Math_atan2, 2) \
119 V(Math_exp, 1) \ 119 V(Math_exp, 1) \
120 V(Math_log, 1) \ 120 V(Math_log, 1) \
121 V(Math_doublePow, 2) \ 121 V(Math_doublePow, 2) \
122 V(Random_nextState, 1) \ 122 V(Random_nextState, 1) \
123 V(Random_setupSeed, 2) \ 123 V(Random_setupSeed, 1) \
124 V(Random_initialSeed, 0) \ 124 V(Random_initialSeed, 0) \
125 V(DateNatives_currentTimeMillis, 0) \ 125 V(DateNatives_currentTimeMillis, 0) \
126 V(DateNatives_timeZoneName, 1) \ 126 V(DateNatives_timeZoneName, 1) \
127 V(DateNatives_timeZoneOffsetInSeconds, 1) \ 127 V(DateNatives_timeZoneOffsetInSeconds, 1) \
128 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \ 128 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \
129 V(AssertionError_throwNew, 2) \ 129 V(AssertionError_throwNew, 2) \
130 V(TypeError_throwNew, 5) \ 130 V(TypeError_throwNew, 5) \
131 V(FallThroughError_throwNew, 1) \ 131 V(FallThroughError_throwNew, 1) \
132 V(AbstractClassInstantiationError_throwNew, 2) \ 132 V(AbstractClassInstantiationError_throwNew, 2) \
133 V(Stacktrace_getFullStacktrace, 1) \ 133 V(Stacktrace_getFullStacktrace, 1) \
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 static void DN_##name(Dart_NativeArguments args); 358 static void DN_##name(Dart_NativeArguments args);
359 359
360 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 360 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
361 361
362 #undef DECLARE_BOOTSTRAP_NATIVE 362 #undef DECLARE_BOOTSTRAP_NATIVE
363 }; 363 };
364 364
365 } // namespace dart 365 } // namespace dart
366 366
367 #endif // VM_BOOTSTRAP_NATIVES_H_ 367 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« runtime/lib/math.cc ('K') | « runtime/lib/math_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698