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

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

Issue 134893003: Add internal operation that converts a growable list to a fixed list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Import correct dartjs helper library Created 6 years, 10 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
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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 V(TypedefMirror_referent, 1) \ 330 V(TypedefMirror_referent, 1) \
331 V(TypedefMirror_declaration, 1) \ 331 V(TypedefMirror_declaration, 1) \
332 V(VariableMirror_type, 2) \ 332 V(VariableMirror_type, 2) \
333 V(GrowableList_allocate, 2) \ 333 V(GrowableList_allocate, 2) \
334 V(GrowableList_getIndexed, 2) \ 334 V(GrowableList_getIndexed, 2) \
335 V(GrowableList_setIndexed, 3) \ 335 V(GrowableList_setIndexed, 3) \
336 V(GrowableList_getLength, 1) \ 336 V(GrowableList_getLength, 1) \
337 V(GrowableList_getCapacity, 1) \ 337 V(GrowableList_getCapacity, 1) \
338 V(GrowableList_setLength, 2) \ 338 V(GrowableList_setLength, 2) \
339 V(GrowableList_setData, 2) \ 339 V(GrowableList_setData, 2) \
340 V(GrowableList_toFixedLength, 1) \
340 V(WeakProperty_new, 2) \ 341 V(WeakProperty_new, 2) \
341 V(WeakProperty_getKey, 1) \ 342 V(WeakProperty_getKey, 1) \
342 V(WeakProperty_getValue, 1) \ 343 V(WeakProperty_getValue, 1) \
343 V(WeakProperty_setValue, 2) \ 344 V(WeakProperty_setValue, 2) \
344 V(Uri_isWindowsPlatform, 0) \ 345 V(Uri_isWindowsPlatform, 0) \
345 346
346 class BootstrapNatives : public AllStatic { 347 class BootstrapNatives : public AllStatic {
347 public: 348 public:
348 static Dart_NativeFunction Lookup(Dart_Handle name, 349 static Dart_NativeFunction Lookup(Dart_Handle name,
349 int argument_count, 350 int argument_count,
350 bool* auto_setup_scope); 351 bool* auto_setup_scope);
351 352
352 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 353 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
353 static void DN_##name(Dart_NativeArguments args); 354 static void DN_##name(Dart_NativeArguments args);
354 355
355 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 356 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
356 357
357 #undef DECLARE_BOOTSTRAP_NATIVE 358 #undef DECLARE_BOOTSTRAP_NATIVE
358 }; 359 };
359 360
360 } // namespace dart 361 } // namespace dart
361 362
362 #endif // VM_BOOTSTRAP_NATIVES_H_ 363 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698