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

Side by Side Diff: runtime/vm/bootstrap_natives.h

Issue 9195031: Add ByteArray interface and provide internal and external implementations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fewer templates Created 8 years, 11 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 // 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 VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef VM_BOOTSTRAP_NATIVES_H_
6 #define VM_BOOTSTRAP_NATIVES_H_ 6 #define VM_BOOTSTRAP_NATIVES_H_
7 7
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 9
10 // bootstrap dart natives used in the core dart library. 10 // bootstrap dart natives used in the core dart library.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 V(DateNatives_getMonth, 2) \ 97 V(DateNatives_getMonth, 2) \
98 V(DateNatives_getDay, 2) \ 98 V(DateNatives_getDay, 2) \
99 V(DateNatives_getHours, 2) \ 99 V(DateNatives_getHours, 2) \
100 V(DateNatives_getMinutes, 2) \ 100 V(DateNatives_getMinutes, 2) \
101 V(DateNatives_getSeconds, 2) \ 101 V(DateNatives_getSeconds, 2) \
102 V(AssertionError_throwNew, 2) \ 102 V(AssertionError_throwNew, 2) \
103 V(TypeError_throwNew, 4) \ 103 V(TypeError_throwNew, 4) \
104 V(FallThroughError_throwNew, 1) \ 104 V(FallThroughError_throwNew, 1) \
105 V(Clock_now, 0) \ 105 V(Clock_now, 0) \
106 V(Clock_frequency, 0) \ 106 V(Clock_frequency, 0) \
107 V(ByteBuffer_allocate, 1) \ 107 V(ByteArray_getLength, 1) \
108 V(ByteBuffer_getLength, 1) \ 108 V(InternalByteArray_allocate, 1) \
109 V(ByteBuffer_getInt8, 2) \ 109 V(InternalByteArray_getInt8, 2) \
110 V(ByteBuffer_setInt8, 3) \ 110 V(InternalByteArray_setInt8, 3) \
111 V(ByteBuffer_getUint8, 2) \ 111 V(InternalByteArray_getUint8, 2) \
112 V(ByteBuffer_setUint8, 3) \ 112 V(InternalByteArray_setUint8, 3) \
113 V(ByteBuffer_getInt16, 2) \ 113 V(InternalByteArray_getInt16, 2) \
114 V(ByteBuffer_setInt16, 3) \ 114 V(InternalByteArray_setInt16, 3) \
115 V(ByteBuffer_getUint16, 2) \ 115 V(InternalByteArray_getUint16, 2) \
116 V(ByteBuffer_setUint16, 3) \ 116 V(InternalByteArray_setUint16, 3) \
117 V(ByteBuffer_getInt32, 2) \ 117 V(InternalByteArray_getInt32, 2) \
118 V(ByteBuffer_setInt32, 3) \ 118 V(InternalByteArray_setInt32, 3) \
119 V(ByteBuffer_getUint32, 2) \ 119 V(InternalByteArray_getUint32, 2) \
120 V(ByteBuffer_setUint32, 3) \ 120 V(InternalByteArray_setUint32, 3) \
121 V(ByteBuffer_getInt64, 2) \ 121 V(InternalByteArray_getInt64, 2) \
122 V(ByteBuffer_setInt64, 3) \ 122 V(InternalByteArray_setInt64, 3) \
123 V(ByteBuffer_getUint64, 2) \ 123 V(InternalByteArray_getUint64, 2) \
124 V(ByteBuffer_setUint64, 3) \ 124 V(InternalByteArray_setUint64, 3) \
125 V(ByteBuffer_getFloat32, 2) \ 125 V(InternalByteArray_getFloat32, 2) \
126 V(ByteBuffer_setFloat32, 3) \ 126 V(InternalByteArray_setFloat32, 3) \
127 V(ByteBuffer_getFloat64, 2) \ 127 V(InternalByteArray_getFloat64, 2) \
128 V(ByteBuffer_setFloat64, 3) \ 128 V(InternalByteArray_setFloat64, 3) \
129 V(ExternalByteArray_getInt8, 2) \
130 V(ExternalByteArray_setInt8, 3) \
131 V(ExternalByteArray_getUint8, 2) \
132 V(ExternalByteArray_setUint8, 3) \
133 V(ExternalByteArray_getInt16, 2) \
134 V(ExternalByteArray_setInt16, 3) \
135 V(ExternalByteArray_getUint16, 2) \
136 V(ExternalByteArray_setUint16, 3) \
137 V(ExternalByteArray_getInt32, 2) \
138 V(ExternalByteArray_setInt32, 3) \
139 V(ExternalByteArray_getUint32, 2) \
140 V(ExternalByteArray_setUint32, 3) \
141 V(ExternalByteArray_getInt64, 2) \
142 V(ExternalByteArray_setInt64, 3) \
143 V(ExternalByteArray_getUint64, 2) \
144 V(ExternalByteArray_setUint64, 3) \
145 V(ExternalByteArray_getFloat32, 2) \
146 V(ExternalByteArray_setFloat32, 3) \
147 V(ExternalByteArray_getFloat64, 2) \
148 V(ExternalByteArray_setFloat64, 3) \
129 149
130 150
131 BOOTSTRAP_NATIVE_LIST(DECLARE_NATIVE_ENTRY) 151 BOOTSTRAP_NATIVE_LIST(DECLARE_NATIVE_ENTRY)
132 152
133 } // namespace dart 153 } // namespace dart
134 154
135 #endif // VM_BOOTSTRAP_NATIVES_H_ 155 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698