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

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

Issue 9363023: Add support for big integers to the native message format (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from asiva@ Created 8 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
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.h » ('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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 * data outside the Dart heap. These objects are totally detached from 542 * data outside the Dart heap. These objects are totally detached from
543 * the Dart heap. Only a subset of the Dart objects have a 543 * the Dart heap. Only a subset of the Dart objects have a
544 * representation as a Dart_CObject. 544 * representation as a Dart_CObject.
545 */ 545 */
546 struct Dart_CObject { 546 struct Dart_CObject {
547 enum Type { 547 enum Type {
548 kNull = 0, 548 kNull = 0,
549 kBool, 549 kBool,
550 kInt32, 550 kInt32,
551 kInt64, 551 kInt64,
552 kBigint,
552 kDouble, 553 kDouble,
553 kString, 554 kString,
554 kArray, 555 kArray,
555 kByteArray, 556 kByteArray,
556 kNumberOfTypes 557 kNumberOfTypes
557 }; 558 };
558 Type type; 559 Type type;
559 union { 560 union {
560 bool as_bool; 561 bool as_bool;
561 int32_t as_int32; 562 int32_t as_int32;
562 int64_t as_int64; 563 int64_t as_int64;
563 double as_double; 564 double as_double;
564 char* as_string; 565 char* as_string;
566 char* as_bigint;
565 struct { 567 struct {
566 int length; 568 int length;
567 Dart_CObject** values; 569 Dart_CObject** values;
568 } as_array; 570 } as_array;
569 struct { 571 struct {
570 int length; 572 int length;
571 uint8_t* values; 573 uint8_t* values;
572 } as_byte_array; 574 } as_byte_array;
573 } value; 575 } value;
574 }; 576 };
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 1470
1469 // --- Profiling support ---- 1471 // --- Profiling support ----
1470 1472
1471 // External pprof support for gathering and dumping symbolic 1473 // External pprof support for gathering and dumping symbolic
1472 // information that can be used for better profile reports for 1474 // information that can be used for better profile reports for
1473 // dynamically generated code. 1475 // dynamically generated code.
1474 DART_EXPORT void Dart_InitPprofSupport(); 1476 DART_EXPORT void Dart_InitPprofSupport();
1475 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1477 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
1476 1478
1477 #endif // INCLUDE_DART_API_H_ 1479 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698