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

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

Issue 12534006: Port SIMD types from dart:scalarlist to dart:typeddata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
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/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/bootstrap.h" 9 #include "vm/bootstrap.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 obj->ptr()->num_variables_ = num_variables; 450 obj->ptr()->num_variables_ = num_variables;
451 return obj; 451 return obj;
452 } 452 }
453 453
454 454
455 RawClass* SnapshotReader::NewClass(intptr_t class_id) { 455 RawClass* SnapshotReader::NewClass(intptr_t class_id) {
456 ASSERT(kind_ == Snapshot::kFull); 456 ASSERT(kind_ == Snapshot::kFull);
457 ASSERT(isolate()->no_gc_scope_depth() != 0); 457 ASSERT(isolate()->no_gc_scope_depth() != 0);
458 if (class_id < kNumPredefinedCids) { 458 if (class_id < kNumPredefinedCids) {
459 ASSERT((class_id >= kInstanceCid) && 459 ASSERT((class_id >= kInstanceCid) &&
460 (class_id <= kExternalTypedDataFloat64ArrayCid)); 460 (class_id <= kExternalTypedDataFloat32x4ArrayCid));
461 return isolate()->class_table()->At(class_id); 461 return isolate()->class_table()->At(class_id);
462 } 462 }
463 cls_ = Object::class_class(); 463 cls_ = Object::class_class();
464 RawClass* obj = reinterpret_cast<RawClass*>( 464 RawClass* obj = reinterpret_cast<RawClass*>(
465 AllocateUninitialized(cls_, Class::InstanceSize())); 465 AllocateUninitialized(cls_, Class::InstanceSize()));
466 Instance fake; 466 Instance fake;
467 obj->ptr()->handle_vtable_ = fake.vtable(); 467 obj->ptr()->handle_vtable_ = fake.vtable();
468 cls_ = obj; 468 cls_ = obj;
469 cls_.set_id(kIllegalCid); 469 cls_.set_id(kIllegalCid);
470 isolate()->class_table()->Register(cls_); 470 isolate()->class_table()->Register(cls_);
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 UnmarkAll(); 1401 UnmarkAll();
1402 isolate->set_long_jump_base(base); 1402 isolate->set_long_jump_base(base);
1403 } else { 1403 } else {
1404 isolate->set_long_jump_base(base); 1404 isolate->set_long_jump_base(base);
1405 ThrowException(exception_type(), exception_msg()); 1405 ThrowException(exception_type(), exception_msg());
1406 } 1406 }
1407 } 1407 }
1408 1408
1409 1409
1410 } // namespace dart 1410 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698