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

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

Issue 771993003: Add Isolate.current getter, returning the current isolate as an Isolate object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | sdk/lib/_internal/compiler/js_lib/isolate_helper.dart » ('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) 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 V(Int32x4_getFlagY, 1) \ 287 V(Int32x4_getFlagY, 1) \
288 V(Int32x4_getFlagZ, 1) \ 288 V(Int32x4_getFlagZ, 1) \
289 V(Int32x4_getFlagW, 1) \ 289 V(Int32x4_getFlagW, 1) \
290 V(Int32x4_setFlagX, 2) \ 290 V(Int32x4_setFlagX, 2) \
291 V(Int32x4_setFlagY, 2) \ 291 V(Int32x4_setFlagY, 2) \
292 V(Int32x4_setFlagZ, 2) \ 292 V(Int32x4_setFlagZ, 2) \
293 V(Int32x4_setFlagW, 2) \ 293 V(Int32x4_setFlagW, 2) \
294 V(Int32x4_select, 3) \ 294 V(Int32x4_select, 3) \
295 V(Isolate_spawnFunction, 3) \ 295 V(Isolate_spawnFunction, 3) \
296 V(Isolate_spawnUri, 5) \ 296 V(Isolate_spawnUri, 5) \
297 V(Isolate_getPortAndCapabilitiesOfCurrentIsolate, 0) \
297 V(Isolate_sendOOB, 2) \ 298 V(Isolate_sendOOB, 2) \
298 V(Mirrors_evalInLibraryWithPrivateKey, 2) \ 299 V(Mirrors_evalInLibraryWithPrivateKey, 2) \
299 V(Mirrors_makeLocalClassMirror, 1) \ 300 V(Mirrors_makeLocalClassMirror, 1) \
300 V(Mirrors_makeLocalTypeMirror, 1) \ 301 V(Mirrors_makeLocalTypeMirror, 1) \
301 V(Mirrors_makeLocalMirrorSystem, 0) \ 302 V(Mirrors_makeLocalMirrorSystem, 0) \
302 V(Mirrors_mangleName, 2) \ 303 V(Mirrors_mangleName, 2) \
303 V(MirrorReference_equals, 2) \ 304 V(MirrorReference_equals, 2) \
304 V(InstanceMirror_invoke, 5) \ 305 V(InstanceMirror_invoke, 5) \
305 V(InstanceMirror_invokeGetter, 3) \ 306 V(InstanceMirror_invokeGetter, 3) \
306 V(InstanceMirror_invokeSetter, 4) \ 307 V(InstanceMirror_invokeSetter, 4) \
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 static void DN_##name(Dart_NativeArguments args); 391 static void DN_##name(Dart_NativeArguments args);
391 392
392 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 393 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
393 394
394 #undef DECLARE_BOOTSTRAP_NATIVE 395 #undef DECLARE_BOOTSTRAP_NATIVE
395 }; 396 };
396 397
397 } // namespace dart 398 } // namespace dart
398 399
399 #endif // VM_BOOTSTRAP_NATIVES_H_ 400 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | sdk/lib/_internal/compiler/js_lib/isolate_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698