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

Side by Side Diff: src/shared/natives.h

Issue 1375373004: Use the event-handler for timers. (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Fletch 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #ifndef SRC_SHARED_NATIVES_H_ 5 #ifndef SRC_SHARED_NATIVES_H_
6 #define SRC_SHARED_NATIVES_H_ 6 #define SRC_SHARED_NATIVES_H_
7 7
8 namespace fletch { 8 namespace fletch {
9 9
10 #define NATIVES_DO(N) \ 10 #define NATIVES_DO(N) \
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 N(ProcessSpawn, "Process", "_spawn") \ 128 N(ProcessSpawn, "Process", "_spawn") \
129 N(ProcessQueueGetMessage, "Process", "_queueGetMessage") \ 129 N(ProcessQueueGetMessage, "Process", "_queueGetMessage") \
130 N(ProcessQueueGetChannel, "Process", "_queueGetChannel") \ 130 N(ProcessQueueGetChannel, "Process", "_queueGetChannel") \
131 \ 131 \
132 N(CoroutineCurrent, "Coroutine", "_coroutineCurrent") \ 132 N(CoroutineCurrent, "Coroutine", "_coroutineCurrent") \
133 N(CoroutineNewStack, "Coroutine", "_coroutineNewStack") \ 133 N(CoroutineNewStack, "Coroutine", "_coroutineNewStack") \
134 \ 134 \
135 N(StopwatchFrequency, "Stopwatch", "_frequency") \ 135 N(StopwatchFrequency, "Stopwatch", "_frequency") \
136 N(StopwatchNow, "Stopwatch", "_now") \ 136 N(StopwatchNow, "Stopwatch", "_now") \
137 \ 137 \
138 N(TimerScheduleTimeout, "_FletchTimer", "_scheduleTimeout") \
139 \
138 N(ForeignLibraryLookup, "ForeignLibrary", "_lookupLibrary") \ 140 N(ForeignLibraryLookup, "ForeignLibrary", "_lookupLibrary") \
139 N(ForeignLibraryClose, "ForeignLibrary", "_closeLibrary") \ 141 N(ForeignLibraryClose, "ForeignLibrary", "_closeLibrary") \
140 N(ForeignLibraryGetFunction, "ForeignLibrary", "_lookupFunction") \ 142 N(ForeignLibraryGetFunction, "ForeignLibrary", "_lookupFunction") \
141 N(ForeignLibraryBundlePath, "ForeignLibrary", "bundleLibraryName") \ 143 N(ForeignLibraryBundlePath, "ForeignLibrary", "bundleLibraryName") \
142 \ 144 \
143 N(ForeignBitsPerWord, "Foreign", "_bitsPerMachineWord") \ 145 N(ForeignBitsPerWord, "Foreign", "_bitsPerMachineWord") \
144 N(ForeignErrno, "Foreign", "_errno") \ 146 N(ForeignErrno, "Foreign", "_errno") \
145 N(ForeignPlatform, "Foreign", "_platform") \ 147 N(ForeignPlatform, "Foreign", "_platform") \
146 N(ForeignArchitecture, "Foreign", "_architecture") \ 148 N(ForeignArchitecture, "Foreign", "_architecture") \
147 N(ForeignConvertPort, "Foreign", "_convertPort") \ 149 N(ForeignConvertPort, "Foreign", "_convertPort") \
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 enum Native { 247 enum Native {
246 #define N(e, c, n) k##e, 248 #define N(e, c, n) k##e,
247 NATIVES_DO(N) 249 NATIVES_DO(N)
248 #undef N 250 #undef N
249 kNumberOfNatives 251 kNumberOfNatives
250 }; 252 };
251 253
252 } // namespace fletch 254 } // namespace fletch
253 255
254 #endif // SRC_SHARED_NATIVES_H_ 256 #endif // SRC_SHARED_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698