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

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

Issue 8383029: Implement external strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fully displace external string metadata Created 9 years, 1 month 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 #include "vm/class_finalizer.h" 5 #include "vm/class_finalizer.h"
6 6
7 #include "vm/flags.h" 7 #include "vm/flags.h"
8 #include "vm/heap.h" 8 #include "vm/heap.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 cls = object_store->object_class(); 196 cls = object_store->object_class();
197 ASSERT(Instance::InstanceSize() == cls.instance_size()); 197 ASSERT(Instance::InstanceSize() == cls.instance_size());
198 cls = object_store->smi_class(); 198 cls = object_store->smi_class();
199 ASSERT(Smi::InstanceSize() == cls.instance_size()); 199 ASSERT(Smi::InstanceSize() == cls.instance_size());
200 cls = object_store->one_byte_string_class(); 200 cls = object_store->one_byte_string_class();
201 ASSERT(OneByteString::InstanceSize() == cls.instance_size()); 201 ASSERT(OneByteString::InstanceSize() == cls.instance_size());
202 cls = object_store->two_byte_string_class(); 202 cls = object_store->two_byte_string_class();
203 ASSERT(TwoByteString::InstanceSize() == cls.instance_size()); 203 ASSERT(TwoByteString::InstanceSize() == cls.instance_size());
204 cls = object_store->four_byte_string_class(); 204 cls = object_store->four_byte_string_class();
205 ASSERT(FourByteString::InstanceSize() == cls.instance_size()); 205 ASSERT(FourByteString::InstanceSize() == cls.instance_size());
206 cls = object_store->external_one_byte_string_class();
207 ASSERT(ExternalOneByteString::InstanceSize() == cls.instance_size());
208 cls = object_store->external_two_byte_string_class();
209 ASSERT(ExternalTwoByteString::InstanceSize() == cls.instance_size());
210 cls = object_store->external_four_byte_string_class();
211 ASSERT(ExternalFourByteString::InstanceSize() == cls.instance_size());
206 cls = object_store->double_class(); 212 cls = object_store->double_class();
207 ASSERT(Double::InstanceSize() == cls.instance_size()); 213 ASSERT(Double::InstanceSize() == cls.instance_size());
208 cls = object_store->mint_class(); 214 cls = object_store->mint_class();
209 ASSERT(Mint::InstanceSize() == cls.instance_size()); 215 ASSERT(Mint::InstanceSize() == cls.instance_size());
210 cls = object_store->bigint_class(); 216 cls = object_store->bigint_class();
211 ASSERT(Bigint::InstanceSize() == cls.instance_size()); 217 ASSERT(Bigint::InstanceSize() == cls.instance_size());
212 cls = object_store->bool_class(); 218 cls = object_store->bool_class();
213 ASSERT(Bool::InstanceSize() == cls.instance_size()); 219 ASSERT(Bool::InstanceSize() == cls.instance_size());
214 cls = object_store->array_class(); 220 cls = object_store->array_class();
215 ASSERT(Array::InstanceSize() == cls.instance_size()); 221 ASSERT(Array::InstanceSize() == cls.instance_size());
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 ASSERT(msg_buffer != NULL); 1090 ASSERT(msg_buffer != NULL);
1085 va_list args; 1091 va_list args;
1086 va_start(args, format); 1092 va_start(args, format);
1087 OS::VSNPrint(msg_buffer, kBufferLength, format, args); 1093 OS::VSNPrint(msg_buffer, kBufferLength, format, args);
1088 va_end(args); 1094 va_end(args);
1089 isolate->long_jump_base()->Jump(1, msg_buffer); 1095 isolate->long_jump_base()->Jump(1, msg_buffer);
1090 UNREACHABLE(); 1096 UNREACHABLE();
1091 } 1097 }
1092 1098
1093 } // namespace dart 1099 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698