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

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

Issue 14383016: Move negative length checks from Dart into the native. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | « runtime/vm/flow_graph_builder.h ('k') | no next file » | 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 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #ifndef VM_INTRINSIFIER_H_ 6 #ifndef VM_INTRINSIFIER_H_
7 #define VM_INTRINSIFIER_H_ 7 #define VM_INTRINSIFIER_H_
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 59021935) \ 98 V(_Uint8ClampedArray, _new, TypedData_Uint8ClampedArray_new, 59021935) \
99 V(_Int16Array, _new, TypedData_Int16Array_new, 465688649) \ 99 V(_Int16Array, _new, TypedData_Int16Array_new, 465688649) \
100 V(_Uint16Array, _new, TypedData_Uint16Array_new, 169304657) \ 100 V(_Uint16Array, _new, TypedData_Uint16Array_new, 169304657) \
101 V(_Int32Array, _new, TypedData_Int32Array_new, 947562951) \ 101 V(_Int32Array, _new, TypedData_Int32Array_new, 947562951) \
102 V(_Uint32Array, _new, TypedData_Uint32Array_new, 85066537) \ 102 V(_Uint32Array, _new, TypedData_Uint32Array_new, 85066537) \
103 V(_Int64Array, _new, TypedData_Int64Array_new, 775415132) \ 103 V(_Int64Array, _new, TypedData_Int64Array_new, 775415132) \
104 V(_Uint64Array, _new, TypedData_Uint64Array_new, 536384146) \ 104 V(_Uint64Array, _new, TypedData_Uint64Array_new, 536384146) \
105 V(_Float32Array, _new, TypedData_Float32Array_new, 723829075) \ 105 V(_Float32Array, _new, TypedData_Float32Array_new, 723829075) \
106 V(_Float64Array, _new, TypedData_Float64Array_new, 111654177) \ 106 V(_Float64Array, _new, TypedData_Float64Array_new, 111654177) \
107 V(_Float32x4Array, _new, TypedData_Float32x4Array_new, 984763738) \ 107 V(_Float32x4Array, _new, TypedData_Float32x4Array_new, 984763738) \
108 V(_Int8Array, ., TypedData_Int8Array_factory, 974805301) \ 108 V(_Int8Array, ., TypedData_Int8Array_factory, 1168404493) \
109 V(_Uint8Array, ., TypedData_Uint8Array_factory, 839639001) \ 109 V(_Uint8Array, ., TypedData_Uint8Array_factory, 2094565809) \
110 V(_Uint8ClampedArray, ., TypedData_Uint8ClampedArray_factory, 1947193032) \ 110 V(_Uint8ClampedArray, ., TypedData_Uint8ClampedArray_factory, 1449285088) \
111 V(_Int16Array, ., TypedData_Int16Array_factory, 1492289327) \ 111 V(_Int16Array, ., TypedData_Int16Array_factory, 1430476167) \
112 V(_Uint16Array, ., TypedData_Uint16Array_factory, 358109132) \ 112 V(_Uint16Array, ., TypedData_Uint16Array_factory, 996241892) \
113 V(_Int32Array, ., TypedData_Int32Array_factory, 1238390459) \ 113 V(_Int32Array, ., TypedData_Int32Array_factory, 360797715) \
114 V(_Uint32Array, ., TypedData_Uint32Array_factory, 1091191177) \ 114 V(_Uint32Array, ., TypedData_Uint32Array_factory, 995053409) \
115 V(_Int64Array, ., TypedData_Int64Array_factory, 569474614) \ 115 V(_Int64Array, ., TypedData_Int64Array_factory, 570248142) \
116 V(_Uint64Array, ., TypedData_Uint64Array_factory, 1778132384) \ 116 V(_Uint64Array, ., TypedData_Uint64Array_factory, 1114332856) \
117 V(_Float32Array, ., TypedData_Float32Array_factory, 630024167) \ 117 V(_Float32Array, ., TypedData_Float32Array_factory, 1719636031) \
118 V(_Float64Array, ., TypedData_Float64Array_factory, 740945295) \ 118 V(_Float64Array, ., TypedData_Float64Array_factory, 1896334311) \
119 V(_Float32x4Array, ., TypedData_Float32x4Array_factory, 1881134784) \ 119 V(_Float32x4Array, ., TypedData_Float32x4Array_factory, 1768466392) \
120 120
121 // TODO(srdjan): Implement _FixedSizeArrayIterator, get:current and 121 // TODO(srdjan): Implement _FixedSizeArrayIterator, get:current and
122 // _FixedSizeArrayIterator, moveNext. 122 // _FixedSizeArrayIterator, moveNext.
123 123
124 // Forward declarations. 124 // Forward declarations.
125 class Assembler; 125 class Assembler;
126 class Function; 126 class Function;
127 127
128 class Intrinsifier : public AllStatic { 128 class Intrinsifier : public AllStatic {
129 public: 129 public:
(...skipping 11 matching lines...) Expand all
141 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 141 CORE_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
142 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 142 MATH_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
143 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION) 143 TYPED_DATA_LIB_INTRINSIC_LIST(DECLARE_FUNCTION)
144 144
145 #undef DECLARE_FUNCTION 145 #undef DECLARE_FUNCTION
146 }; 146 };
147 147
148 } // namespace dart 148 } // namespace dart
149 149
150 #endif // VM_INTRINSIFIER_H_ 150 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698