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

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

Issue 10690027: Add Dart_CurrentIsolateData(). (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 | 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) 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 DART_EXPORT void Dart_ShutdownIsolate(); 703 DART_EXPORT void Dart_ShutdownIsolate();
704 // TODO(turnidge): Document behavior when there is no current isolate. 704 // TODO(turnidge): Document behavior when there is no current isolate.
705 705
706 /** 706 /**
707 * Returns the current isolate. Will return NULL if there is no 707 * Returns the current isolate. Will return NULL if there is no
708 * current isolate. 708 * current isolate.
709 */ 709 */
710 DART_EXPORT Dart_Isolate Dart_CurrentIsolate(); 710 DART_EXPORT Dart_Isolate Dart_CurrentIsolate();
711 711
712 /** 712 /**
713 * Returns the callback data which was passed to the isolate when it
714 * was created.
715 */
716 DART_EXPORT void* Dart_CurrentIsolateData();
717
718 /**
713 * Returns the debugging name for the current isolate. 719 * Returns the debugging name for the current isolate.
714 * 720 *
715 * This name is unique to each isolate and should only be used to make 721 * This name is unique to each isolate and should only be used to make
716 * debugging messages more comprehensible. 722 * debugging messages more comprehensible.
717 */ 723 */
718 DART_EXPORT Dart_Handle Dart_DebugName(); 724 DART_EXPORT Dart_Handle Dart_DebugName();
719 725
720 /** 726 /**
721 * Enters an isolate. After calling this function, 727 * Enters an isolate. After calling this function,
722 * the current isolate will be set to the provided isolate. 728 * the current isolate will be set to the provided isolate.
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 // information that can be used for better profile reports for 2392 // information that can be used for better profile reports for
2387 // dynamically generated code. 2393 // dynamically generated code.
2388 DART_EXPORT void Dart_InitPprofSupport(); 2394 DART_EXPORT void Dart_InitPprofSupport();
2389 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2395 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2390 2396
2391 // Support for generating flow graph compiler debugging output into a file. 2397 // Support for generating flow graph compiler debugging output into a file.
2392 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes); 2398 typedef void (*FileWriterFunction)(const char* buffer, int64_t num_bytes);
2393 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function); 2399 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function);
2394 2400
2395 #endif // INCLUDE_DART_API_H_ 2401 #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