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

Side by Side Diff: runtime/vm/raw_object_snapshot.cc

Issue 11437028: Added Uint8ClampedList. COmpielr optimziations to follow in next CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/raw_object.cc ('k') | runtime/vm/symbols.h » ('j') | 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 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 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 for (intptr_t i = 0; i < len; ++i) { 1964 for (intptr_t i = 0; i < len; ++i) {
1965 result.SetAt(i, reader->Read<ElementT>()); 1965 result.SetAt(i, reader->Read<ElementT>());
1966 } 1966 }
1967 return result.raw(); 1967 return result.raw();
1968 } 1968 }
1969 1969
1970 1970
1971 #define BYTEARRAY_TYPE_LIST(V) \ 1971 #define BYTEARRAY_TYPE_LIST(V) \
1972 V(Int8, int8, int8_t) \ 1972 V(Int8, int8, int8_t) \
1973 V(Uint8, uint8, uint8_t) \ 1973 V(Uint8, uint8, uint8_t) \
1974 V(Uint8Clamped, uint8, uint8_t) \
1974 V(Int16, int16, int16_t) \ 1975 V(Int16, int16, int16_t) \
1975 V(Uint16, uint16, uint16_t) \ 1976 V(Uint16, uint16, uint16_t) \
1976 V(Int32, int32, int32_t) \ 1977 V(Int32, int32, int32_t) \
1977 V(Uint32, uint32, uint32_t) \ 1978 V(Uint32, uint32, uint32_t) \
1978 V(Int64, int64, int64_t) \ 1979 V(Int64, int64, int64_t) \
1979 V(Uint64, uint64, uint64_t) \ 1980 V(Uint64, uint64, uint64_t) \
1980 V(Float32, float32, float) \ 1981 V(Float32, float32, float) \
1981 V(Float64, float64, double) \ 1982 V(Float64, float64, double) \
1982 1983
1983 1984
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 // Write out the class and tags information. 2212 // Write out the class and tags information.
2212 writer->WriteIndexedObject(kWeakPropertyCid); 2213 writer->WriteIndexedObject(kWeakPropertyCid);
2213 writer->WriteIntptrValue(writer->GetObjectTags(this)); 2214 writer->WriteIntptrValue(writer->GetObjectTags(this));
2214 2215
2215 // Write out all the other fields. 2216 // Write out all the other fields.
2216 writer->Write<RawObject*>(ptr()->key_); 2217 writer->Write<RawObject*>(ptr()->key_);
2217 writer->Write<RawObject*>(ptr()->value_); 2218 writer->Write<RawObject*>(ptr()->value_);
2218 } 2219 }
2219 2220
2220 } // namespace dart 2221 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698