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

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

Issue 117723002: Allow the native resolver to setup whether it needs the Dart API scope to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/vm/benchmark_test.cc ('k') | runtime/vm/bootstrap_natives.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) 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 V(GrowableList_setLength, 2) \ 311 V(GrowableList_setLength, 2) \
312 V(GrowableList_setData, 2) \ 312 V(GrowableList_setData, 2) \
313 V(WeakProperty_new, 2) \ 313 V(WeakProperty_new, 2) \
314 V(WeakProperty_getKey, 1) \ 314 V(WeakProperty_getKey, 1) \
315 V(WeakProperty_getValue, 1) \ 315 V(WeakProperty_getValue, 1) \
316 V(WeakProperty_setValue, 2) \ 316 V(WeakProperty_setValue, 2) \
317 V(Uri_isWindowsPlatform, 0) \ 317 V(Uri_isWindowsPlatform, 0) \
318 318
319 class BootstrapNatives : public AllStatic { 319 class BootstrapNatives : public AllStatic {
320 public: 320 public:
321 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); 321 static Dart_NativeFunction Lookup(Dart_Handle name,
322 int argument_count,
323 bool* auto_setup_scope);
322 324
323 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 325 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
324 static void DN_##name(Dart_NativeArguments args); 326 static void DN_##name(Dart_NativeArguments args);
325 327
326 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 328 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
327 329
328 #undef DECLARE_BOOTSTRAP_NATIVE 330 #undef DECLARE_BOOTSTRAP_NATIVE
329 }; 331 };
330 332
331 } // namespace dart 333 } // namespace dart
332 334
333 #endif // VM_BOOTSTRAP_NATIVES_H_ 335 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/bootstrap_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698