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

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

Issue 10694163: Added a comment for Dart_LoadSource. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | no next file » | 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 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 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 // TODO(turnidge): Consider returning Dart_Null() when the library is 2527 // TODO(turnidge): Consider returning Dart_Null() when the library is
2528 // not found to distinguish that from a true error case. 2528 // not found to distinguish that from a true error case.
2529 2529
2530 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url, 2530 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url,
2531 Dart_Handle source); 2531 Dart_Handle source);
2532 2532
2533 2533
2534 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library, 2534 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library,
2535 Dart_Handle import); 2535 Dart_Handle import);
2536 2536
2537 /**
2538 * Loads a source string into a library.
2539 *
2540 * \param library A library
2541 * \param url A url identifying the origin of the source
2542 * \param source A string of Dart source
2543 *
2544 * \return A valid handle if no error occurs during the operation.
2545 */
2537 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, 2546 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
2538 Dart_Handle url, 2547 Dart_Handle url,
2539 Dart_Handle source); 2548 Dart_Handle source);
2540 // TODO(turnidge): Rename to Dart_LibraryLoadSource? 2549 // TODO(turnidge): Rename to Dart_LibraryLoadSource?
2541 2550
2542 /** 2551 /**
2543 * Sets the callback used to resolve native functions for a library. 2552 * Sets the callback used to resolve native functions for a library.
2544 * 2553 *
2545 * \param library A library. 2554 * \param library A library.
2546 * \param resolver A native entry resolver. 2555 * \param resolver A native entry resolver.
(...skipping 11 matching lines...) Expand all
2558 // information that can be used for better profile reports for 2567 // information that can be used for better profile reports for
2559 // dynamically generated code. 2568 // dynamically generated code.
2560 DART_EXPORT void Dart_InitPprofSupport(); 2569 DART_EXPORT void Dart_InitPprofSupport();
2561 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2570 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2562 2571
2563 // Support for generating flow graph compiler debugging output into a file. 2572 // Support for generating flow graph compiler debugging output into a file.
2564 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes); 2573 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes);
2565 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function); 2574 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function);
2566 2575
2567 #endif // INCLUDE_DART_API_H_ 2576 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698