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

Side by Side Diff: runtime/include/dart_api.h

Issue 8382017: Add Dart_GetNativeArgumentCount() and a test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 #ifdef __cplusplus 8 #ifdef __cplusplus
9 #define DART_EXTERN_C extern "C" 9 #define DART_EXTERN_C extern "C"
10 #else 10 #else
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 int number_of_arguments, 347 int number_of_arguments,
348 Dart_Handle* arguments); 348 Dart_Handle* arguments);
349 DART_EXPORT Dart_Result Dart_InvokeClosure(Dart_Handle closure, 349 DART_EXPORT Dart_Result Dart_InvokeClosure(Dart_Handle closure,
350 int number_of_arguments, 350 int number_of_arguments,
351 Dart_Handle* arguments); 351 Dart_Handle* arguments);
352 352
353 353
354 // Interaction with native methods. 354 // Interaction with native methods.
355 DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, 355 DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args,
356 int index); 356 int index);
357 DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args);
357 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, 358 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args,
358 Dart_Handle retval); 359 Dart_Handle retval);
359 360
360 // Library. 361 // Library.
361 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); 362 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object);
362 DART_EXPORT Dart_Result Dart_LibraryUrl(Dart_Handle library); 363 DART_EXPORT Dart_Result Dart_LibraryUrl(Dart_Handle library);
363 DART_EXPORT Dart_Result Dart_LibraryImportLibrary(Dart_Handle library, 364 DART_EXPORT Dart_Result Dart_LibraryImportLibrary(Dart_Handle library,
364 Dart_Handle import); 365 Dart_Handle import);
365 366
366 DART_EXPORT Dart_Result Dart_LookupLibrary(Dart_Handle url); 367 DART_EXPORT Dart_Result Dart_LookupLibrary(Dart_Handle url);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // External pprof support for gathering and dumping symbolic information 436 // External pprof support for gathering and dumping symbolic information
436 // that can be used for better profile reports for dynamically generated 437 // that can be used for better profile reports for dynamically generated
437 // code. 438 // code.
438 DART_EXPORT void Dart_InitPprofSupport(); 439 DART_EXPORT void Dart_InitPprofSupport();
439 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 440 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
440 441
441 // Check set vm flags. 442 // Check set vm flags.
442 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name); 443 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name);
443 444
444 #endif // INCLUDE_DART_API_H_ 445 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698