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

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

Issue 8585049: Add an interface for retrieving the value of unsigned 64-bit integers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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) 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 /** \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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 /** 595 /**
596 * Gets the value of an Integer. 596 * Gets the value of an Integer.
597 * 597 *
598 * The integer must fit into a 64-bit signed integer, otherwise an error occurs. 598 * The integer must fit into a 64-bit signed integer, otherwise an error occurs.
599 * 599 *
600 * \param integer An Integer. 600 * \param integer An Integer.
601 * \param value Returns the value of the Integer. 601 * \param value Returns the value of the Integer.
602 * 602 *
603 * \return A valid handle if no error occurs during the operation. 603 * \return A valid handle if no error occurs during the operation.
604 */ 604 */
605 DART_EXPORT Dart_Handle Dart_IntegerValue(Dart_Handle integer, int64_t* value); 605 DART_EXPORT Dart_Handle Dart_IntegerToInt64(Dart_Handle integer,
606 int64_t* value);
607
608 /**
609 * Gets the value of an Integer.
610 *
611 * The integer must fit into a 64-bit unsigned integer, otherwise an
612 * error occurs.
613 *
614 * \param integer An Integer.
615 * \param value Returns the value of the Integer.
616 *
617 * \return A valid handle if no error occurs during the operation.
618 */
619 DART_EXPORT Dart_Handle Dart_IntegerToUint64(Dart_Handle integer,
620 uint64_t* value);
606 621
607 /** 622 /**
608 * Gets the value of an integer as a hexadecimal C string. 623 * Gets the value of an integer as a hexadecimal C string.
609 * 624 *
610 * \param integer An Integer. 625 * \param integer An Integer.
611 * \param value Returns the value of the Integer as a hexadecimal C 626 * \param value Returns the value of the Integer as a hexadecimal C
612 * string. This C string is scope allocated and is only valid until 627 * string. This C string is scope allocated and is only valid until
613 * the next call to Dart_ExitScope. 628 * the next call to Dart_ExitScope.
614 * 629 *
615 * \return A valid handle if no error occurs during the operation. 630 * \return A valid handle if no error occurs during the operation.
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 1195
1181 // --- Profiling support ---- 1196 // --- Profiling support ----
1182 1197
1183 // External pprof support for gathering and dumping symbolic 1198 // External pprof support for gathering and dumping symbolic
1184 // information that can be used for better profile reports for 1199 // information that can be used for better profile reports for
1185 // dynamically generated code. 1200 // dynamically generated code.
1186 DART_EXPORT void Dart_InitPprofSupport(); 1201 DART_EXPORT void Dart_InitPprofSupport();
1187 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1202 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
1188 1203
1189 #endif // INCLUDE_DART_API_H_ 1204 #endif // INCLUDE_DART_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698