| OLD | NEW |
| 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 #include "vm/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 15033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15044 1, // kTypedDataUint8ClampedArrayCid. | 15044 1, // kTypedDataUint8ClampedArrayCid. |
| 15045 2, // kTypedDataInt16ArrayCid. | 15045 2, // kTypedDataInt16ArrayCid. |
| 15046 2, // kTypedDataUint16ArrayCid. | 15046 2, // kTypedDataUint16ArrayCid. |
| 15047 4, // kTypedDataInt32ArrayCid. | 15047 4, // kTypedDataInt32ArrayCid. |
| 15048 4, // kTypedDataUint32ArrayCid. | 15048 4, // kTypedDataUint32ArrayCid. |
| 15049 8, // kTypedDataInt64ArrayCid. | 15049 8, // kTypedDataInt64ArrayCid. |
| 15050 8, // kTypedDataUint64ArrayCid. | 15050 8, // kTypedDataUint64ArrayCid. |
| 15051 4, // kTypedDataFloat32ArrayCid. | 15051 4, // kTypedDataFloat32ArrayCid. |
| 15052 8, // kTypedDataFloat64ArrayCid. | 15052 8, // kTypedDataFloat64ArrayCid. |
| 15053 16, // kTypedDataFloat32x4ArrayCid. | 15053 16, // kTypedDataFloat32x4ArrayCid. |
| 15054 16, // kTypedDataUint32x4ArrayCid. |
| 15054 }; | 15055 }; |
| 15055 | 15056 |
| 15056 | 15057 |
| 15057 RawTypedData* TypedData::New(intptr_t class_id, | 15058 RawTypedData* TypedData::New(intptr_t class_id, |
| 15058 intptr_t len, | 15059 intptr_t len, |
| 15059 Heap::Space space) { | 15060 Heap::Space space) { |
| 15060 if (len < 0 || len > TypedData::MaxElements(class_id)) { | 15061 if (len < 0 || len > TypedData::MaxElements(class_id)) { |
| 15061 FATAL1("Fatal error in TypedData::New: invalid len %" Pd "\n", len); | 15062 FATAL1("Fatal error in TypedData::New: invalid len %" Pd "\n", len); |
| 15062 } | 15063 } |
| 15063 TypedData& result = TypedData::Handle(); | 15064 TypedData& result = TypedData::Handle(); |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15596 return "_MirrorReference"; | 15597 return "_MirrorReference"; |
| 15597 } | 15598 } |
| 15598 | 15599 |
| 15599 | 15600 |
| 15600 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 15601 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 15601 JSONObject jsobj(stream); | 15602 JSONObject jsobj(stream); |
| 15602 } | 15603 } |
| 15603 | 15604 |
| 15604 | 15605 |
| 15605 } // namespace dart | 15606 } // namespace dart |
| OLD | NEW |