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

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

Issue 509153003: New bigint implementation in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_NATIVE_API_H_ 7 #ifndef INCLUDE_DART_NATIVE_API_H_
8 #define INCLUDE_DART_NATIVE_API_H_ 8 #define INCLUDE_DART_NATIVE_API_H_
9 9
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } Dart_CObject_Type; 45 } Dart_CObject_Type;
46 46
47 typedef struct _Dart_CObject { 47 typedef struct _Dart_CObject {
48 Dart_CObject_Type type; 48 Dart_CObject_Type type;
49 union { 49 union {
50 bool as_bool; 50 bool as_bool;
51 int32_t as_int32; 51 int32_t as_int32;
52 int64_t as_int64; 52 int64_t as_int64;
53 double as_double; 53 double as_double;
54 char* as_string; 54 char* as_string;
55 char* as_bigint; 55 struct {
56 bool neg;
57 intptr_t used;
58 struct _Dart_CObject* digits;
59 } as_bigint;
56 Dart_Port as_send_port; 60 Dart_Port as_send_port;
57 struct { 61 struct {
58 intptr_t length; 62 intptr_t length;
59 struct _Dart_CObject** values; 63 struct _Dart_CObject** values;
60 } as_array; 64 } as_array;
61 struct { 65 struct {
62 Dart_TypedData_Type type; 66 Dart_TypedData_Type type;
63 intptr_t length; 67 intptr_t length;
64 uint8_t* values; 68 uint8_t* values;
65 } as_typed_data; 69 } as_typed_data;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 147
144 /** 148 /**
145 * Forces all loaded classes and functions to be compiled eagerly in 149 * Forces all loaded classes and functions to be compiled eagerly in
146 * the current isolate.. 150 * the current isolate..
147 * 151 *
148 * TODO(turnidge): Document. 152 * TODO(turnidge): Document.
149 */ 153 */
150 DART_EXPORT Dart_Handle Dart_CompileAll(); 154 DART_EXPORT Dart_Handle Dart_CompileAll();
151 155
152 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ 156 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/lib/array.cc » ('j') | runtime/lib/bigint.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698