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/bigint_operations.h" | 5 #include "vm/bigint_operations.h" |
6 #include "vm/object.h" | 6 #include "vm/object.h" |
7 #include "vm/object_store.h" | 7 #include "vm/object_store.h" |
8 #include "vm/snapshot.h" | 8 #include "vm/snapshot.h" |
9 #include "vm/symbols.h" | 9 #include "vm/symbols.h" |
10 #include "vm/visitor.h" | 10 #include "vm/visitor.h" |
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 for (intptr_t i = 0; i < len; ++i) { | 1963 for (intptr_t i = 0; i < len; ++i) { |
1964 result.SetAt(i, reader->Read<ElementT>()); | 1964 result.SetAt(i, reader->Read<ElementT>()); |
1965 } | 1965 } |
1966 return result.raw(); | 1966 return result.raw(); |
1967 } | 1967 } |
1968 | 1968 |
1969 | 1969 |
1970 #define BYTEARRAY_TYPE_LIST(V) \ | 1970 #define BYTEARRAY_TYPE_LIST(V) \ |
1971 V(Int8, int8, int8_t) \ | 1971 V(Int8, int8, int8_t) \ |
1972 V(Uint8, uint8, uint8_t) \ | 1972 V(Uint8, uint8, uint8_t) \ |
| 1973 V(Uint8Clamped, uint8, uint8_t) \ |
1973 V(Int16, int16, int16_t) \ | 1974 V(Int16, int16, int16_t) \ |
1974 V(Uint16, uint16, uint16_t) \ | 1975 V(Uint16, uint16, uint16_t) \ |
1975 V(Int32, int32, int32_t) \ | 1976 V(Int32, int32, int32_t) \ |
1976 V(Uint32, uint32, uint32_t) \ | 1977 V(Uint32, uint32, uint32_t) \ |
1977 V(Int64, int64, int64_t) \ | 1978 V(Int64, int64, int64_t) \ |
1978 V(Uint64, uint64, uint64_t) \ | 1979 V(Uint64, uint64, uint64_t) \ |
1979 V(Float32, float32, float) \ | 1980 V(Float32, float32, float) \ |
1980 V(Float64, float64, double) \ | 1981 V(Float64, float64, double) \ |
1981 | 1982 |
1982 | 1983 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2210 // Write out the class and tags information. | 2211 // Write out the class and tags information. |
2211 writer->WriteIndexedObject(kWeakPropertyCid); | 2212 writer->WriteIndexedObject(kWeakPropertyCid); |
2212 writer->WriteIntptrValue(writer->GetObjectTags(this)); | 2213 writer->WriteIntptrValue(writer->GetObjectTags(this)); |
2213 | 2214 |
2214 // Write out all the other fields. | 2215 // Write out all the other fields. |
2215 writer->Write<RawObject*>(ptr()->key_); | 2216 writer->Write<RawObject*>(ptr()->key_); |
2216 writer->Write<RawObject*>(ptr()->value_); | 2217 writer->Write<RawObject*>(ptr()->value_); |
2217 } | 2218 } |
2218 | 2219 |
2219 } // namespace dart | 2220 } // namespace dart |
OLD | NEW |