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

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

Issue 1307363005: Add optional message argument to assert statements in the VM. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: More tests. Created 4 years 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
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 RUNTIME_VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef RUNTIME_VM_BOOTSTRAP_NATIVES_H_
6 #define RUNTIME_VM_BOOTSTRAP_NATIVES_H_ 6 #define RUNTIME_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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 V(Math_log, 1) \ 151 V(Math_log, 1) \
152 V(Math_doublePow, 2) \ 152 V(Math_doublePow, 2) \
153 V(Random_nextState, 1) \ 153 V(Random_nextState, 1) \
154 V(Random_setupSeed, 1) \ 154 V(Random_setupSeed, 1) \
155 V(Random_initialSeed, 0) \ 155 V(Random_initialSeed, 0) \
156 V(SecureRandom_getBytes, 1) \ 156 V(SecureRandom_getBytes, 1) \
157 V(DateTime_currentTimeMicros, 0) \ 157 V(DateTime_currentTimeMicros, 0) \
158 V(DateTime_timeZoneName, 1) \ 158 V(DateTime_timeZoneName, 1) \
159 V(DateTime_timeZoneOffsetInSeconds, 1) \ 159 V(DateTime_timeZoneOffsetInSeconds, 1) \
160 V(DateTime_localTimeZoneAdjustmentInSeconds, 0) \ 160 V(DateTime_localTimeZoneAdjustmentInSeconds, 0) \
161 V(AssertionError_throwNew, 2) \ 161 V(AssertionError_throwNew, 3) \
162 V(Async_rethrow, 2) \ 162 V(Async_rethrow, 2) \
163 V(StackTrace_current, 0) \ 163 V(StackTrace_current, 0) \
164 V(TypeError_throwNew, 5) \ 164 V(TypeError_throwNew, 5) \
165 V(FallThroughError_throwNew, 1) \ 165 V(FallThroughError_throwNew, 1) \
166 V(AbstractClassInstantiationError_throwNew, 2) \ 166 V(AbstractClassInstantiationError_throwNew, 2) \
167 V(Stopwatch_now, 0) \ 167 V(Stopwatch_now, 0) \
168 V(Stopwatch_frequency, 0) \ 168 V(Stopwatch_frequency, 0) \
169 V(Timeline_getIsolateNum, 0) \ 169 V(Timeline_getIsolateNum, 0) \
170 V(Timeline_getNextAsyncId, 0) \ 170 V(Timeline_getNextAsyncId, 0) \
171 V(Timeline_getTraceClock, 0) \ 171 V(Timeline_getTraceClock, 0) \
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 #ifndef PRODUCT 427 #ifndef PRODUCT
428 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 428 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
429 #endif 429 #endif
430 430
431 #undef DECLARE_BOOTSTRAP_NATIVE 431 #undef DECLARE_BOOTSTRAP_NATIVE
432 }; 432 };
433 433
434 } // namespace dart 434 } // namespace dart
435 435
436 #endif // RUNTIME_VM_BOOTSTRAP_NATIVES_H_ 436 #endif // RUNTIME_VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698